M@SYSNUM System Variable Failure
Posted: Fri Jan 19, 2018 9:34 am
Having a problem getting a System Variable working on the iSeries. It works fine on my local windows box.
I have a System Variable autonumber defined as such: And I am using it like this
When running on Windows this works fine, but when running on the iSeries, execution seems to stop at the #EmployeeId := *AUTONUM08PTOEMPLOY line and no error log is created.
Tracing the output shows the last thing it did was try to use the System Variable Looking at the Master x_err.log shows nothing I've confirmed the system variable IS on the iSeries.
Am I missing something to make them work? I have used them before and don't recall having a problem like this.
I have a System Variable autonumber defined as such: And I am using it like this
Code: Select all
#SYS_APPLN.TraceMessageData( "Generating Employee Id" )
#EmployeeId := *AUTONUM08PTOEMPLOY
#SYS_APPLN.TraceMessageData( "Inserting Employee with Id: &1" #EmployeeId )
insert fields(#EmployeeInsertFields) to_file(PTOEmployee) io_error(*NEXT)
#SYS_APPLN.TraceMessageData( "Employee &1 Inserted. Status: &2" #EmployeeId #IO$STS )
if_status is_not(*OKAY)
return
endif
Tracing the output shows the last thing it did was try to use the System Variable Looking at the Master x_err.log shows nothing I've confirmed the system variable IS on the iSeries.
Am I missing something to make them work? I have used them before and don't recall having a problem like this.