Versions Compared

Key

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

...

If the command to be executed is:

...

   EXEC_OS400 COMMAND('CALL PGM001 (#BATCH #TRANS)')

where #BATCH is a numeric field (7 0) and #TRANS is an alphanumeric field of length 10, this table indicates the actual command executed for various values of #BATCH and #TRANS:

...

Note that the command specified must be enclosed in quotes. This means that if the command itself must contain quotes then 2 will have to be used instead of one. For details of quotes and quoted strings, read the section on handling Quotes and Quoted Strings.

OS400 Authority Considerations

Commands executed via EXEC_OS400 adopt the authority of the LANSA system owner user profile, and the user profile of any other entries in the call stack with USRPRF(*OWNER) as long as the "chain" is not broken by an entry in the call stack with USEADPAUT(*NO).

...