Start S/36 Session (STRS36)
Where allowed to run: Interactive environments (*INTERACT *IPGM *IREXX *EXEC) Threadsafe: No |
Parameters Examples Error messages |
The Start System/36 (STRS36) command starts a System/36 environment session (if one is not active already). 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 the command ends, the System/36 environment returns to the active or inactive state from which this command is issued.
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.
Top |
Parameters
Keyword | Description | Choices | Notes |
---|---|---|---|
MENU | Menu | Name, *SAME | Optional, Positional 1 |
CURLIB | Current library | Name, *SAME | Optional, Positional 2 |
PRC | Procedure or program | Name, *NONE | Optional, Positional 3 |
FRCMNU | Force menu | *NO, *YES | Optional |
Top |
Menu (MENU)
Specifies the first menu that is shown when the System/36 environment is started.
The possible values are:
- *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 first menu shown when the System/36 environment is started.
Top |
Current library (CURLIB)
Specifies the current library to use in the System/36 environment.
The possible values are:
- *SAME
- The current library does not change. If the current library is *CRTDFT and *SAME is specified, the current library is set to #LIBRARY.
- library-name
- Specify the name of the library you want to use as the current library in the System/36 environment.
Top |
Procedure or program (PRC)
Specifies the name of the procedure or program to run before the menu is shown.
The possible values are:
- *NONE
- No procedure or program runs.
- procedure-name
- Specify the name of the procedure or program to run.
Top |
Force menu (FRCMNU)
Specifies whether a menu is shown and what this command does in an active System/36 environment.
The possible values are:
- *NO
- The specified menu is not shown if the System/36 environment is active when this command is issued. 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 issued. The current library is set and the program or procedure is run as specified in this command.
Top |
Examples
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
Top |
Error messages
*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.
Top |