Commands Reference


Below are the list of EXEC CICS commands categorized according to the function they perform -

Abend support


CommandDescription
ABEND Terminates a task abnormally.
HANDLE ABEND Handles an abnormal termination exit.

BMS


CommandDescription
RECEIVE MAP Used to receive the screen input entered by the user into application program data area.
SEND CONTROL Used to send the control to the terminal without map or text data.
SEND MAP Used to send the output data to a terminal.
SEND TEXT Used to send data to the terminal without any predefined BMS maps.

Exception support


CommandDescription
HANDLE CONDITION Used to specify the control passing label or paragraph if a condition occurs.
IGNORE CONDITION Used to specify that no action is taken if a condition occurs.
POP HANDLE Used to restore the current effect of the HANDLE CONDITION, IGNORE CONDITION, HANDLE ABEND and HANDLE AID commands to the before state a PUSH HANDLE command was executed at the current link level.
PUSH HANDLE Used to suspend the current effect of the HANDLE CONDITION, IGNORE CONDITION, HANDLE ABEND and HANDLE AID commands.

File control services


CommandDescription
DELETE Deletes a record from a file on a KSDS or a path over a KSDS or an RRDS.
ENDBR Ends a browsing of a file on a local or a remote CICS region.
READ Reads a record from a file on a local or a remote system.
READNEXT Used repeatedly to read records in sequential order from a file on a local or a remote system.
READPREV Used repeatedly to read records in reverse sequential order from a VSAM file on a local or a remote system.
RESETBR Specifies the browse to be repositioned when browsing a file on a local or a remote system.
REWRITE Updates a record in a file on a local or a remote system.
STARTBR Specifies where the record browsing to start in a file on a local or a remote system.
UNLOCK Releases the exclusive control established by read command with the UPDATE option.
WRITE Writes a new record to a file.

Interval control services


CommandDescription
ASKTIME Gets the current date and time of day.
CANCEL Cancel interval control requests.
DELAY Delay the task processing.
FORMATTIME Converts absolute date and time into a specified format.

Program control


CommandDescription
LINK Used to call the other programs expecting return in CICS environment.
LOAD Used to load application program from disk memory to main memory.
RELEASE Releases a loaded program, table, or mapset previously loaded by a LOAD command from the main memory.
RETURN Returns the program control back.
XCTL Used to call the other programs in CICS environment but it won’t expect the control back to the calling program.
CALL Used an alternative to LINK/XCTL commands.

Storage control


CommandDescription
FREEMAINReleases main storage that was acquired by using a GETMAIN request.
GETMAIN Gets a main storage area of the size indicated by the FLENGTH option.

Sync point


CommandDescription
SYNCPOINT Divides a task into smaller units of work.
SYNCPOINT ROLLBACK Back out to last sync point.

Temporary storage control


CommandDescription
DELETEQ TS Deletes all the data associated with a temporary storage queue.
READQ TS Retrieves data from a temporary storage queue that is stored in either main or auxiliary storage.
WRITEQ TS Writes data records in a temporary storage queue that stores in main or auxiliary storage.

Transient data


CommandDescription
DELETEQ TD Deletes all the data associated with a particular intra-partition destination transient.
READQ TD Reads data from a transient data queue.
WRITEQ TD Writes data to a predefined symbolic destination queue.