|
High-Level Language SWSFCNT (SWPFFC) FunctionRelated Topics
SWSFCNT (entry point "SWPFFC") is a high level function used to determine the number of files sent to the server in a File Post operation. Because multiple files can be presented in a single Post method, SWSFCNT returns the number of files present. The protocol for sending files in a Post operation is described in RCF 1867. To determine the number of files sent, you can either:
SWSPostFileCount is the "c" definition for the entry point. SWSPOSTFILECOUNT is the "COBOL" definition for the entry point. SWSFCNT is the "PL/I" definition for the entry point. SWSFCNT will return zero if no files are present in the current Post.
CALL ArgumentsThe SWSFCNT (entry point "SWPFFC") function takes two arguments. Both arguments must be specified on the call.
Return ValuesSWSFCNT:
Possible values are:
The SWSFCNT operation is logged to the Server's wrap-around trace file with the returned value and completion code.
PL/I ExampleDCL SCONN PTR; /* Connection Handle */ DCL FICNT FIXED BIN(31); /* Header length */ ADDR(SCONN)->DMHX=0; /* Zero connection handle */ CALL SWSFCNT(SCONN /* Get the file count */ FICNT); RC=PLIRETV(); /* Get return code */ IF RC ^=SWS_SUCCESS THEN /* exit if bad RC */ EXIT;
C ExampleHDBC sConn = NULL; /* Connection Handle */ long FICNT; /* file count */ long RC; /* return code */ rc = SWSPostFileCount(&sConn, /* Get the file count */ &FICNT); If(rc ^=SWS_SUCCESS) return; /* exit if bad rc */
COBOL Example77 SCONN USAGE IS POINTER. 77 FICNT PIC S9(5) COMP. CALL SWSPOSTFILECOUNT USING SCONN, FICNT. MOVE RETURN CODE TO WS-SWSAPI-RETURN-CODE. IF NOT SWS-SUCCESS GOBACK.
|