STRS36 (Start System/36)
Purpose
The Start System/36 (STRS36) command starts a System/36 environment session (if one is not already active). Even if the System/36 environment is active, this command allows the user to show a menu or run a program or procedure before showing a menu.
When this command ends, the System/36 environment returns to the active or inactive state from which this command is run.
- If the System/36 environment is active when this command is issued, the environment remains active when the command ends. You can press the Exit or Previous key at the menu to return to the point at which the command was issued.
- If the System/36 environment is inactive when this command is issued, the environment again becomes inactive when the command ends. You must use the End System/36 (ENDS36) command to exit from the menu.
Restrictions: This command cannot be used if a System/36 procedure is already in process. This command cannot be placed in a procedure or in a program that is started by a procedure.
Optional Parameters
- MENU
- Specifies the first menu that is shown when the System/36 environment is started.
*SAME: The menu specified in the job does not change. If no menu is specified in the job, the initial menu specified in the user profile is shown.
menu-name: Specify the name of the menu that is shown first when the System/36 environment is started.
- CURLIB
- Specifies the name of the library to use for the current library in the System/36 environment.
*SAME: The current library does not change. If the current library is *CRTDFT, the current library is set to #LIBRARY.
library-name: Specify the name of the library to use for the current library in the System/36 environment.
- PRC
- Specifies the name of the procedure or program to run before the menu is shown.
*NONE: No procedure or program runs.
procedure-name: Specify the name of the procedure or program to run.
- FRCMENU
- Specifies whether a menu is shown and what this command does in an active System/36 environment.
*NO: The specified menu is not shown if the System/36 environment is active when this command is run. This command does nothing, and the user is returned to the point at which the command was issued.
*YES: The specified menu is shown even if the System/36 environment is active when this command is run. The current library is set and the program or procedure is run as specified in this command.
Example for STRS36
STRS36 MENU(user) CURLIB(MYLIB) PRC(INITPROC)This command starts a System/36 environment session. This command:
- Displays the user menu
- Changes the current library to MYLIB
- Runs procedure INITPROC before showing the user menu
Error messages for STRS36
*ESCAPE Messages
- CPF3709
- Tape devices do not support same densities.
- CPF3738
- Device &1 used for save or restore is damaged.
- CPF3767
- Device &1 not found.