SEND generates a CICS SEND MAP command to send screen data to a terminal for user response, as well as a CICS RETURN command to return control to CICS.
[TP-]SEND screen[(mapsetname)] errorpara|* ... [TRANSID(name)] ... [NORETURN] [NOERASE] ... [CICSoption [CICSoption] ...]
mapsetname |
Mapset containing the screen(s) the program receives; must be a literal (maximum 7 characters). When not specified, generates a default mapset name as per NTRY. |
|
errorpara|* |
User-defined error routine to perform when an abnormal condition occurs. Errorpara is positional; if omitted, code an asterisk (*) in its place. |
|
TRANSID (name) |
Transaction code identifying the program where control returns; can be a literal (maximum 4 characters) or COBOL data name (minimum 5 characters). |
|
NORETURN |
Suppress the default generation of CICS RETURN (after a generated CICS SEND MAP call). |
|
NOERASE |
Suppress the default generation of ERASE. |
Send screen map SCRA.
Program Painter source:
SEND SCRA
Generated source:
EXEC CICS SEND MAP( 'SCRA') FROM(AA00-RECORD) MAPSET( 'SCRASET') CURSOR ERASE FREEKB END-EXEC. EXEC CICS RETURN TRANSID( 'SCRA') COMMAREA(TP-COMMAREA) LENGTH(169) END-EXEC. GO TO APS-USER-MAIN-PARA--EXIT.
Generate a CICS SEND MAP for map SCRA in mapset SCRASET; return to CICS with transaction code WXYZ. Override the default TRANSID specified in the Screen Painter.
Program Painter source:
SEND SCRA(SCRASET) * TRANSID('WXYZ')
Generated source:
EXEC CICS SEND MAP( 'SCRA') FROM(AA00-RECORD) MAPSET( 'SCRASET') CURSOR ERASE FREEKB END-EXEC. EXEC CICS RETURN TRANSID( 'WXYZ') COMMAREA(TP-COMMAREA) LENGTH(169) END-EXEC. GO TO APS-USER-MAIN-PARA--EXIT.
Generate a CICS SEND MAP for map SCRA.
Program Painter source:
SEND SCRA * NORETURN
Generated source:
EXEC CICS SEND MAP( 'SCRA') FROM(AA00-RECORD) MAPSET( 'SCRASET') END-EXEC.
Display screen data for end user response.
[TP-]SEND screen errorpara|* ... [CONTINUE|NOCONTINUE]
APS-TP-SEND-RC PIC 9(08). 88 OK-ON-SEND VALUE 0. 88 NTF-ON-SEND VALUE 4. 88 END-ON-SEND VALUE 8. 88 AB-ON-SEND VALUE 12 16 20
errorpara|* |
User-defined error routine to perform when an abnormal condition occurs. Errorpara is positional; if omitted, code an asterisk (*) in its place. |
|
CONTINUE |
Execute the next instruction after the call. |
|
NOCONTINUE |
Default. Return control to the top of the program. |
NTRY SCRA IF TP-PROGRAM-INVOKED PERFORM INITIALIZE-SCREEN-FIELDS ELSE-IF TP-SCREEN-INVOKED IF END-ON-SEND ... OR SCRA-FUNCTION = 'E' /* USER ENTERED END OR RETURN TERM ELSE-IF OK-ON-SEND PERFORM PROCESS-SCREEN-DATA ELSE SCRA-SYSMSG = 'INVALID OPTION' SEND SCRA * NOCONTINUE
REPEAT SEND SCRA * CONTINUE UNTIL APS-TP-SEND-RC > 0 PERFORM PROCESS-SCREEN-DATA TERM
Send screen messages, in screen or record layout form, to terminals or printers.
[TP-]SEND screenname|recordname errorpara|* ... [lterm] ... [keyword[+keyword] ...]
SYM1 % &recordname-TRANCODE = "trancode"
EXPRESS=YESMODIFY=YESALTRESP=YES
If any parameters are missing, a message warns you that, if an error occurs after successful database updates, AMB does not send a message to the originating terminal--the program simply terminates and performs a rollback of the updates.
screenname |
Screen name; must be literal (maximum 8 characters). |
|
recordname |
User-defined I/O area in Working-Storage. |
|
errorpara|* |
User-defined error routine to perform when an abnormal condition occurs. Errorpara is positional; if omitted, code an asterisk (*) in its place. |
|
lterm |
Logical terminal or printer where program sends message; can be a literal (maximum 8 characters) or COBOL data name (maximum 9 characters). Default is device that sends an input message to the program. |
|
keyword |
Valid keywords are: |
|
NOALTRESP |
Default. Use an IO PCB, not an alternate response IO PCB to send a response to the terminal. |
|
ALTRESP |
Use an alternate response IO PCB to send a response to the terminal. |
|
NOCONT |
Default. Control returns to top of the Procedure Division of the sending program. |
|
CONT |
Control returns to the instruction following call execution, that is, the next statement after the MSG-SW. |
|
CONTCOND |
TP-CONTCOND determines if control passes to the next instruction or returns to the top of the program. |
|
NOEXPRESS |
Default. Do not send a message for abnormal program termination. |
|
EXPRESS |
Send a message at program termination. |
|
NOENDCONV |
Default. Do not blank out the TRANCODE in the SPA. |
|
ENDCONV |
Blank out the TRANCODE in the SPA. |
|
SCREEN |
Default. Input is a AMB-painted screen. Multisegment screens are not supported. |
|
RECORD |
Input is recordname. See also Considerations below. |
|
NOPURG |
Send all messages to the same destination as one multi-segmented message. Default with NOEXPRESS keyword. |
|
PURG |
After inserting the message, send it as one single-segmented message. Default with EXPRESS keyword. |
SEND
SEND SCRA
SEND SCRA * * EXPRESS
SEND SCRA * * CONT+ALTRESP