The CALL-PROCEDURE command starts a stored command sequence (procedure). During processing, symbolic parameters contained in the sequence are replaced by the values specified in the command call (PROCEDURE-PARAMETERS operand).
Note
This command is a component part of BS2000/OSD-BC (status of description: V7.0). In contrast to the SDF-P commands, the caller requires the STD-PROCESSING or HARDWARE-MAINTENANCE privilege.
CALL-PROCEDURE Alias: CL / CLP  | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
  | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Return codes
The following command return codes can only be returned if the called procedure does not supply any command return code itself (e.g. EXIT-PROCEDURE not executed due to an error).Command return codes whose maincode begins with "SSM" can only be returned when a non-S procedure is called.
Command return codes whose maincode begins with "SDP" can only be returned when an S procedure is called.
(SC2)  | SC1  | Maincode  | Meaning  | 
| 0 | CMD0001 | No error | |
| 2 | 0 | SSM2058 | Protocol type error | 
| 2 | 0 | SSM2065 | EOF on procedure file, /END-PROC simulated | 
| 1 | SSM2036 | Incomplete operand | |
| 1 | SSM2054 | Symbolic operand error | |
| 1 | SSM2055 | Symbolic operand error in /BEGIN-PROC | |
| 1 | SDP0138 | Error in pre-analysis of text procedure, or object procedure invalid | |
| 1 | CMD0202 | Syntax error | |
| 3 | CMD2203 | Incorrect syntax file | |
| 32 | CMD0221 | System error (internal error) | |
| 64 | SDP0093 | Non-S procedure can only be type J element | |
| 64 | SDP0144 | Error on parameter transfer | |
| 64 | SSM2052 | DMS error (Open error) | |
| 64 | SSM2053 | Not a SAM/ISAM file or file does not begin with /BEGIN-PROC or /PROC | |
| 64 | SSM2056 | /CALL-PROC and /BEGIN-PROC parameters incompatible | |
| 64 | SSM2061 | Error on accessing library element | |
| 64 | SSM2064 | Procedure file cannot be fetched by remote processor | |
| 64 | SDP0099 | No further address space available | |
xx  | xx  | xxxxxxx  | Other return codes from the called procedure  |