SNAX/HLS Application Programming Manual

SCOBOLX Applications
SNAX/HLS Programming Standards
1–14 104707 Tandem Computers Incorporated
Section RETURN^CODE^DEFINITIONS
Use the following statement to include the RETURN^CODE^DEFINITIONS section of
the copybook in your program:
?source HLSDDT( return^code^definitions )
It provides the basic value definitions for the return codes used by SNAX/HLS. For
example, the code for RC-OK is defined by:
LITERAL rc^ok = 0;
All return codes are literals named
RC^xxx
. The lowest value used for return codes is
RC^^FIRST, and the highest value is RC^^LAST.
Section DATA^TYPE^DEFINITIONS
Use the following statement to include the DATA^TYPE^DEFINITIONS section of the
copybook in your program:
?source HLSDDT( data^type^definitions )
It provides the basic value definitions for the data-type codes. For example, the data-
type code for SSCP messages is defined by:
LITERAL dt^sscp^data = 2;
All data-type codes are literals of the form
DT^xxx
. The lowest value used for data
types is DT^^FIRST, and the highest is DT^^LAST. Note that the lowest value is -1,
corresponding to
dt^fm^header
.
Section VERBS
Use the following statement to include the VERBS section of the copybook in your
program:
?source HLSDDT( VERBS )
It defines the SNAX/HLS verb request and reply structures. The names of the
structure definitions are derived from the verb name: The request structure is
name^REQUEST, and the reply structure is name^REPLY.
Section USEREXITS
Use the following statement to include the USEREXITS section of the copybook in
your program:
?source HLSDDT(userexits)
It defines the data structures used by the customization routines. See Section 7,
“Customization” for more information about customization routines.
Section RC^NAMS
Use the following statement to include the RC^NAMS section of the copybook in your
program: