|
High-Level Language SWSExciInitUsr (SWCPEI) FunctionRelated Topics
SWSExciInitUsr is the Web Server API function used to initialize a CICS EXCI Connection. In order to execute a CICS Transaction using this interface, you will need to execute the following API calls in the sequence listed below
SWCPEI Call ArgumentsThe SWSExciInitUsr (SWCPEI) function arguments are described in the table which follows. All parameters are required.
Return ValuesSWSExciInitUsr always sets a signed numeric return code value. Possible values are:
PL/I Example%INCLUDE DFHXCPLL %INCLUDE DFHXCRCL %INCLUDE SPCPHD . . . . DCL STMTHDL FIXED BIN(31); /* Statement Handle */ DCL USER_TOKEN FIXED BIN(31); /* User Token */ DCL CONNECTION_NAME CHAR(4); /* Connection Name */ DCL RC FIXED BIN(31); /* RETURN CODE */ CONNECTION_NAME = 'EWST' /* SET name */ CALL SWSEXCIINITUSR(STMTHDL, /* STATEMENT HANDLE */ SWS_CICS_TYPE_EXCI, /* connection type */ CONNECTION_NAME, /* connection name */ EXCI_RETURN_CODE, /* cics exci return area */ USER_TOKEN) /* user token */ RC = PLIRETV(); /* GET RETURN CODE */ IF RC ^= SWS_SUCCESS THEN /* EXIT PROGRAM IF BAD RC */ EXIT;
C ExampleNOTE: The Neon Header file must be included after the CICS EXCI headers. #include "dfhxcplh.h" /* CICS Return Area header */ #include "dfhxcrch.h" /* CICS Response Codes */ #include "sccphd.h" /* Neon headers */ exci_return_code exciRET; /* cics exci return area */ . . . . long RC; /* return code */ long stmtHDL; /* statement handle */ long userTOKEN; /* user token */ char connection_name[] = "EWST"; /* Connection Name */ CALL SWSExciInitUsr(stmtHDL, /* statement handle */ SWS_CICS_TYPE_EXCI, /* connection type */ connection_name, /* connection name */ exciRET, /* cics exci return area */ userTOKEN) /* user token */ if (rc ^= SWS_SUCCESS) return rc; COBOL ExampleCOPY DFHXCPLO. CICS EXCI Return Areas COPY DFHXCRCO. CICS EXCI Response Codes COPY SBCPHD. Neon Copybook . . . . 77 CONNECTION-NAME PIC X(4) VALUE IS 'EWST'. 77 STATEMENT-HANDLE USAGE IS POINTER. 77 USER-TOKEN PIC S9(5) COMP VALUE IS ZERO. . . . . SET SWS-CICS-TYPE-EXCI TO TRUE. CALL 'SWCPEI' USING STATEMENT-HANDLE SWS-CICS-TYPE CONNECTION-NAME EXCI-RETURN-CODE USER-TOKEN. MOVE RETURN-CODE TO WS-SWSAPI-RETURN-CODE. IF NOT SWS-SUCCESS GOBACK. |