Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • It is assumed that the field #REPMODE (report production mode) is defined in the dictionary. There is no need to define it in this program. It probably has a default value of B (batch production).
  • The system variables *PROCESS and *FUNCTION used in the SUBMIT commands ensure that this (ie: the current) process/function is invoked by the batch job.
  • The system variables *BATCHJOB and *NIGHTJOB are used as the JOBQ (job queue) parameter values in the SUBMIT commands.

It is assumed that these have been previously set up as LANSA system variables prior to coding the program. By using this form to identify the job queue there is no need to "hard code" the job queue names into the program.

Additionally, the actual values used can be changed externally without having to modify or re-compile the program.

  • The built-in function CLR_MESSAGES is used to clear/remove the operating system message which results from executing a SUBMIT command. A more "user friendly" message is issued to replace it.