CL内建函数

System Function Command Command Function
Change Procedure
Control
CALL (Call) 调用一个程序
CALLPRC (Call Procedure) 调用过程
RETURN (Return) Returns to the command following the command that caused a program or procedure to be run

CL Procedure 界限符
PGM (Program) CL程序的起始标志
ENDPGM (End Program) CL程序的结束标志

CL Procedure 逻辑
IF (If) Processes commands based on the value of a logical expression
ELSE (Else) Defines the action to be taken for the else (false) condition of an IF command
DO (Do) Indicates the start of a Do group
ENDDO (End Do) Indicates the end of a Do group
GOTO (Go To) Branches to another command

CL Procedure变量
CHGVAR (Change Variable)改变CL变量
DCL (Declare) 宣称一个变量
Conversion CHGVAR (Change Variable) Changes the value of a CL variable
CVTDAT (Convert Date) 改变一个日期变量的日期格式

数据区
CHGDTAARA (Change Data Area) 改变数据区
CRTDTAARA (Create Data Area) Creates a data area
DLTDTAARA (Delete Data Area) Deletes a data area
DSPDTAARA (Display Data Area) Displays a data area
RTVDTAARA (Retrieve Data Area) 拷贝数据区的内容到一个CL变量中

System Function Command Command Function
文件
ENDRCV (End Receive)   Cancels a request for input previously issued by a RCVF, SNDF, or SNDRCVF command to a display file
DCLF (Declare File)   Declares a display or database file
RCVF (Receive File)   Reads a record from a display or database file
RTVMBRD (Retrieve Member Description) Retrieves a description of a specific member of a database file
SNDF (Send File) Writes a record to a display file
SNDRCVF (Send/Receive File) Writes a record to a display file and reads that record after the user has replied
WAIT (Wait) Waits for data to be received from an SNDF, RCVF, or SNDRCVF command issued to a display file

消息
MONMSG (Monitor Message) Monitors for escape, status, and notify messages sent to a program’s message queue
RCVMSG (Receive Message) Copies a message from a message queue into CL variables in a CL procedure
RMVMSG (Remove Message) Removes a specified message from a specified message queue
RTVMSG (Retrieve Message) Copies a predefined message from a message file into CL procedure variables
SNDPGMMSG (Send Program Message) Sends a program message to a message queue
SNDRPY (Send Reply) Sends a reply message to the sender of an inquiry message
SNDUSRMSG (Send User Message) Sends an informational or inquiry message to a display station or system operator
Miscellaneous
Commands
CHKOBJ (Check Object) Checks for the existence of an object and, optionally, the
necessary authority to use the object
PRTCMDUSG (Print Command
Usage)
Produces a cross-reference list for a specified group of
commands used in a specified group of CL procedures
RTVCFGSRC (Retrieve Configuration
Source)
Generates CL command source for creating existing
configuration objects and places the source in a source
file member
RTVCFGSTS (Retrieve Configuration
Status) 1
Gives applications the capability to retrieve configuration
status from three configuration objects: line, controller,
and device.
RTVJOBA (Retrieve Job Attributes) 1 Retrieves the value of one or more job attributes and
places the values in a CL variable
RTVSYSVAL (Retrieve System Value)
1
Retrieves a system value and places it into a CL variable
RTVUSRPRF (Retrieve User Profile)
1
Retrieves user profile attributes and places them into CL
variables
Program Creation
Commands
CRTCLMOD (Create CL Module) Creates a CL module
DLTMOD (Delete Module) Deletes a module
DLTPGM (Delete Program) Deletes a program
CRTBNDCL (Create Bound Control
Language Program)
Creates a bound CL program.
CRTCLPGM (Create CL Program) Creates an OPM CL program.
CRTPGM (Create Program) Creates a program from one or more modules.
CRTSRVPGM (Create Service
Program)
Creates a service program from one or more modules.

原文地址:https://www.cnblogs.com/wildfish/p/1031832.html