|
The SWSEXINI FunctionRelated Topics
The REXX-language SWSEXINI built-in function is used to initialize a CICS EXCI interface between Shadow for CICS and CICS v4.1 and above. Upon return from the call, the following Rexx variables are populated with data:
SWSEXINI SyntaxThe general form for a REXX-language invocation of SWSEXINI is: rc = swsexini(Connection Type, , Connection Name)
SWSEXINI Examplescontype = 'EXCI' /* Connection Type */ conname = 'EWST' /* Connection Name from DEFINE */ cicstran = 'EXCI' /* CICS Transaction Code */ cicspgm = 'DFH$AXCS' /* CICS Program Name */ address swssend /*-----------------------------------------------------------*/ /* Initialize the user */ /*-----------------------------------------------------------*/ rc = swsexini(contype,conname) /*-----------------------------------------------------------*/ /* Allocate a pipe */ /*-----------------------------------------------------------*/ rc = swsexcon(contype,conname,EXCI.USERTOKN) /*-----------------------------------------------------------*/ /* Issue DPL Request */ /*-----------------------------------------------------------*/ parm = '00000001'x||'FILEA 000001' rc = swsexdpl(contype,conname,cicstran,cicspgm, , parm,EXCI.USERTOKN,EXCI.PIPETOKN) pgmrc = substr(EXCI.COMMAREA.1,1,4) pgmrc = c2x(pgmrc) parm = substr(EXCI.COMMAREA.1,5,14) parm = '00000002'x||parm data = substr(EXCI.COMMAREA.1,19,80) /*-----------------------------------------------------------*/ /* Disconnect the pipe */ /*-----------------------------------------------------------*/ rc = swsexdis(contype,conname,EXCI.USERTOKN,EXCI.PIPETOKN) |