Start S/36 Procedure (STRS36PRC)

Where allowed to run: All environments (*ALL)
Threadsafe: No
Parameters
Examples
Error messages

The Start System/36 Procedure (STRS36PRC) command starts a System/36 procedure. It is valid whether or not the System/36 Environment is active, but it is not valid if a System/36 procedure is already running. It cannot be placed in a procedure or in a program that is called by a procedure.

Top

Parameters

Keyword Description Choices Notes
PRC Procedure Name Required, Positional 1
CURLIB Current library Name, *SAME Optional, Positional 2
PARM Procedure parameters Character value Optional, Positional 3
Top

Procedure (PRC)

Specifies the name of the System/36 procedure to run. The procedure is a member of source physical file QS36PRC. The library search order for locating QS36PRC is:

  1. current library (*CURLIB)
  2. #LIBRARY
  3. job library list (*LIBL)

This is a required parameter.

Top

Current library (CURLIB)

Specifies the current library to use to run the System/36 procedure.

*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 for the current library while running the System/36 procedure.
Top

Procedure parameters (PARM)

Specifies procedure parameters for the procedure. Procedure parameters allow information to be passed to the procedure. If no parameters are specified, no parameters are passed to the procedure.

Top

Examples

Example 1: Changing the Current Library

STRS36PRC   PRC(PROC1)  CURLIB(MYLIB)

This command changes the current library to MYLIB and runs procedure PROC1.

Example 2: Listing Files Used by the System

STRS36PRC   PRC(CATALOG)  PARM('ALL,F1')

This command lists all files used by the System/36 environment.

Top

Error messages

*ESCAPE Messages

SSP0010
System/36 job ended abnormally.
Top