Previous Topic: Messages Returned to TSO

Next Topic: Examples of Requests Using NMCMD


Return Codes from $USTSFTS

Various return codes are set by procedure $USTSFTS depending upon the outcome of the request. These are returned to TSO and can be used to terminate an NMCMD session if the MAXRC value of NMCMD is exceeded. In this case the procedure return code (a number in the range 0 to 99) is increased by 500 (producing a number in the range 500 to 599), which becomes the actual return code of NMCMD on termination.

The following return codes are produced by $USTSFTS. All nonzero return codes are accompanied by one or more messages.

0

Request was processed successfully.

8

Attempt to supply a FRCMD or TOCMD (command for execution in the From or To region after a transmission completes successfully) for a private definition. The definition is rejected because this facility is restricted to system definitions.

12

An attempt to delete a definition that does not exist. The request is rejected.

14

An FTSXMIT request was issued but was not successful. The reason for the failure is found in an accompanying message.

16

An attempt to create a new definition was rejected because a definition of that name already exists.

20

An FTSDEF or FTSSEND request specified the name of a definition to copy but this definition did not exist. The request is rejected.

24

A VFS file error or some other severe logic error has occurred. Processing cannot continue.