3GL system variable not supported

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
angelo
Posts: 9
Joined: Thu May 05, 2016 12:00 am

3GL system variable not supported

Post by angelo »

Has anyone ever received this error?

I'm trying to get the date and job from the server, via a CALL_SERVER_FUNCTION exchangeing *DATETIMEC , *JOBNAME

Thanks in advance




Process : *SSERVER
S/SERVER SERVICE
Function : FIINI01
Statement : 0
Message : (0158) - 3GL system variable evaluation programs are not currently supported.
Routine : X_Vec_Set_from_SysVar
User avatar
Dino
Posts: 472
Joined: Fri Jul 19, 2019 7:49 am
Location: Robbinsville, NC
Contact:

Re: 3GL system variable not supported

Post by Dino »

probably an error with your system variables, not really a call_server_function error, as you send fields, no system variables.

test your system variables with a simple program like assigning a value to a field, showing the value in the field, check what program is your system variable calling, if that does not help, create a case with lansa support to review the issue.
angelo
Posts: 9
Joined: Thu May 05, 2016 12:00 am

Re: 3GL system variable not supported

Post by angelo »

Ciao Dino,

is a very simple function, there is error only when *SSERVER_CONNECTED otherwise it works.

But i have the same identical function in another partition under the same ..\X_WIN95\X_LANSA and there it works 🤦‍♂️

i will try to recompile...

if you come up with any ideas let me know
thank you




Function Options(*DIRECT *HEAVYUSAGE)

Define Field(£JOBNMBA) Type(*CHAR) Length(10)
Define Field(£CDUTEBA) Type(*CHAR) Length(10)
Define Field(£JOBNRBA) Type(*CHAR) Length(6)
Define Field(£JOBDATTIM) Type(*CHAR) Length(014)

Group_By Name(£PARAMETRI) Fields(£JOBNMBA £CDUTEBA £JOBNRBA £JOBDATTIM)

* Se collegato sottomette la routine sull'as
If Cond('(*ON_CLIENT_SYSTEM *EQ Y) *AND (*SSERVER_CONNECTED *EQ Y)')
Use Builtin(CALL_SERVER_FUNCTION) With_Args(*SSERVER_SSN *FUNCTION Y Y) To_Get(£RET_CODE)
Else
Change Field(£JOBDATTIM) To(*DATETIMEC)
Change Field(£JOBNMBA) To(*JOBNAME)
Change Field(£CDUTEBA) To(*USER)
Change Field(£JOBNRBA) To(*JOBNBR)
Endif

Exchange Fields(£PARAMETRI)

Return
Post Reply