MOVE 'TOLOWER' | TO | |
MOVE +5 |
| TO |
MOVE 'THIS IS A TEST' TO | ||
EXEC CICS LINK PROGRAM('BEAPRERQ') | ||
| ||
| LENGTH(LENGTH OF | |
| ||
IF RETURNCD = 0 |
| |
MOVE | 'SUCCESSFUL CALL, RETURN DATA IS IN | |
TO |
| |
ELSE |
|
|
MOVE | 'PROCESS ERROR OCCURRED, RETURN CODE EQUAL ' | |
TO |
| |
MOVE | RETURNCD TO | |
|
|
EXEC CICS SEND TEXT
EXEC CICS RETURN
The following is an example of a C CICS client program.
Listing 5-4 C CICS Client Program Example
long resp, resp2; unsigned short int lmsg; struct CMAREA carea;
carea.CltHdr.DataLen = strlen(sendbuf); memcpy(carea.CltHdr.SvcName, “ECHO”, 4); carea.CltHdr.RequestCd = BEA_REQUEST_RESPONSE; memcpy(carea.Request_data, “This is a test”, 14); lmsg=sizeof(carea);
/* Use the name defined during installation */
Oracle Tuxedo Mainframe Adapter for TCP - CICS User Guide |