General information about functions

Each entry on the following pages includes a functional description, the syntax (including the datatype of each argument), an example, possible return codes, and a list of related function, topics, and documentation. All arguments of each function are required unless designated as optional.

Most examples in this chapter are taken from the sample programs in the appendices. These programs show how individual functions are coded in context. Refer to the appendices to learn how to set up your WORKING STORAGE SECTION and to see examples of complete programs.

Your application must include a set of constants supplied with Open ServerConnect. These are standard argument options and return values for the COBOL Gateway-Library interface. To include these constants in a COBOL program, include the copybook SYGWCOB in the program.

When you use Gateway-Library functions, be aware of the following information:

NoteFor numeric and alphabetic lists of all return codes, including descriptions, see Mainframe Connect Client Option and Server Option Messages and Codes.