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).

If this does not suit your site security policy, issue the commands:

...

   CHGPGM PGM(M@CPEXEC) USRPRF(<your value>) USEADPAUT(<your value>)

...


CHGPGM PGM(M@OSEXEC) USRPRF(<your value>) USEADPAUT(<your value>)

If either of these commands fail, contact your LANSA product vendor. You should also examine these values after any form of upgrade to your LANSA system.