1.5.3.1.1 Syntax

int svc99(__S99parms *string);

This table shows elements contained by __S99parms.

Table 1-10 __S99parms Elements

Field Value Stored Supported
__S99RBLN SVC99 length of request block Yes
__S99VERB SVC99 verb code Yes
__S99FLAG1 SVC99 Flags 1 field Ignored
__S99ERROR SVC99 error code field Yes
__S99INFO SVC99 information code Yes
__S99TXTPP SVC99 pointer to a list of text unit pointers Yes
__S99S99X SVC99 pointer to the Request Extension Block Ignored
__S99FLAG2 SVC99 Flags 2 field for APF authorized programs Ignored

Data type definition in C program is as below:

Listing Data Type Definition in C Program

struct __S99struc {
 unsigned char       __S99RBLN;       /* Length of the request block               */
 unsigned char       __S99VERB;       /* Action verb                               */
 unsigned short      __S99FLAG1;      /* Flags 1 field                             */
 unsigned short      __S99ERROR;      /* Error Code                                */
 unsigned short      __S99INFO;       /* Info Code                                 */
 struct S99TU**      __S99TXTPP;      /* Pointer to text pointer array             */
 void **             __S99S99X;      / * Pointer to the Request Extension Block    */
 unsigned int        __S99FLAG2;      /* FLags 2 field for APF authorized programs */
};
typedef struct __S99struc __S99parms;

Data type definition in COBOL program is as below:

Listing Data Type Definition in COBOL Program
01 s99rb.
      03 s99rb-len                   pic x(1).  
      03 s99rb-verb                  pic x(1).
      03 s99rb-flag11                pic x(1).
      03 s99rb-flag12                pic x(1).  
      03 s99rb-error                 pic 9(4) comp-5.
      03 s99rb-info                  pic 9(4) comp-5.
      03 s99rb-s99tu-array-ptr       pointer.
      03 s99rb-rbx                   pointer.
      03 s99rb-flag21                pic x(1).
      03 s99rb-flag22                pic x(1).
      03 s99rb-flag23                pic x(1).
      03 s99rb-flag24                pic x(1).