Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

Restrictions for macros

&pagelevel(4)&pagelevel

Each process created by call for the fork function has a SYSFILE environment but no SYSCMD system file (with the exception of rlogin sessions). As a result any attempts to access the SYSCMD system file are rejected with a return code. In every other case, BS2000 commands can be entered via CMD macros. Note the following requirements:

  • A CMD macro requires subsequent SDF initialization of the task generated by fork. This has a detrimental effect on performance.

  • The following commands are not permitted in CMD macros:

    • All commands which are already prohibited in BS2000 (see the "Executive Macros" [30] manual); for example, the /HOLD-PROGRAM command is prohibited.

    • Macros from commands which access the SYSCMD system file, for example the AID %TRACE command

As in BS2000, the BS2000 commands /EXIT-JOB and /LOGOFF terminate the task and return you to the parent process.