|
High-Level Language SWSDECON (SWCPDC) FunctionRelated Topics
SWSDECON is the Web Server API function used to "de-concatenate" a DDName that was previously concatenated using the SWSCONCT command. The format of this command is similar in features and functions to the TSO/E DECONCAT command. A text string is used as input in order to provide the parameters necessary to define the file to be concatenated. Files may be concatenated using the SWSCONCT command.
SWCPDC Call ArgumentsThe SWSDECON (SWCPDC) function arguments are described in the table which follows. Only two of the three arguments are required.
Return ValuesSWSDECON always sets a signed numeric return code value. Possible values are:
Supported De-concatenation KeywordsThe SWSDECON (SWCPDC) interface supports the following dataset de-concatenation request parameters:
PL/I Example%INCLUDE SPCPHD . . . . DCL COMMAND CHAR(80) /* DE-CONCAT COMMAND*/ INIT('DDN(INFILE)'); DCL CMDLEN FIXED BIN(31); /* COMMAND LENGTH */ DCL RC FIXED BIN(31); /* RETURN CODE */ CMDLEN = LENGTH(COMMAND); /* SET COMMAND LEN */ /* DE-CONCATENATE THE INPUT FILE */ CALL SWSDECON(CMDLEN, /* COMMAND LENGTH */ COMMAND, /* COMMAND */ SWSASB); /* ALLOCATION STATUS BLOCK */ RC = PLIRETV(); /* GET RETURN CODE */ IF RC ^= SWS_SUCCESS THEN /* EXIT PROGRAM IF BAD RC */ EXIT;
C ExampleSWS_ALLOCATION_STATUS_BLOCK swsASB; /* response area */ . . . . long RC; /* return code */ char szCommand[] = "DDN(INFILE)"; /* De-concatenate the input file */ rc = SWSDECON(strlen(szCommand), /* Command Length */ szCommand, /* Command */ swsASB); /* Response area */ if (rc ^= SWS_SUCCESS) do printf(swsASB.Error_Message); return rc; end COBOL Example* NEON API COPY BOOK COPY SBCPHD. . . . . 77 COMMAND-LENGTH PIC S9(5) COMP. 77 COMMAND PIC X(80) VALUE 'DDN(INFILE)'. * DE-CONCATENATE THE INPUT FILE. MOVE 80 TO COMMAND-LENGTH. CALL SWSDECON USING COMMAND-LENGTH, COMMAND, SWS-ALLOCATION-STATUS-BLOCK. MOVE RETURN-CODE TO WS-SWSAPI-RETURN-CODE. IF NOT SWS-SUCCESS DISPLAY 'INFILE DE-CONCATENATION FAILED.' UPON CONSOLE DISPLAY SWSASB-ERROR-MESSAGE UPON CONSOLE GOBACK. |