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.