Return codes

Client-Library return codes begin with “CS_”. The codes returned to each Client-Library function are listed on the reference pages for that function, under “Return value.”

Gateway-Library return codes all begin with “TDS_”. However, on the mainframe, a few TDS_XXX return codes are returned to functions. Some are returned to both Gateway-Library and Client-Library functions.

TDS_XXX return codes that are returned to specific functions are only documented on the reference pages for those functions, under “Return value.” Programs using these functions should check for these codes.

Some TDS_XXX return codes can be returned to any function under certain circumstances.

You can find a list of all TDS_XXX codes in the Mainframe Connect Client Option and Server Option Messages and Codes.