GDSX Manual

User Exit Descriptions
Extended General Device Support (GDSX) Manual134303
9-15
USER^COMMANDS
#FRAME
#PUSH err
SINK [#ARGUMENT/VALUE err/NUMBER]
[#RESULT SPI error: [#CASE [err]
|-1| Invalid buffer format
|-2| Illegal parameter value
|-3| Missing parameter
|-4| Illegal parameter address
|-5| Buffer full
|-6| Invalid checksum
|-7| Internal error
|-8| List token not found
|-9| Illegal token code or map
|-10| Invalid subsystem id
|-11| Operation not supported
|-12| Insufficient stack space
|OTHERWISE| Unknown error [err]
]
]
#UNFRAME
?SECTION leave^routine MACRO
== Exit the the current routine with an error message
== Callable only from within a routine
#OUTPUT %*% == Display any message that was passed
#UNFRAME == Clean up the stack
#RETURN == Exit to routine's caller
?SECTION gds^error ROUTINE
==
== Routine to return the text of an GDSX error
==
#FRAME
#PUSH err
SINK [#ARGUMENT/VALUE err/NUMBER]
[#RESULT GDSX error: [#CASE [err]
|1| Object name unknown
|2| Object state invalid
|3| Attempt to add too many objects
|4| Attribute value invalid
|5| Attribute value already defined
|6| Modifier given twice
|7| SELECT modifier is invalid
|8| Attempt to delete a line with SU still defined
|9| No Memory space
|10| File-system error on START LINE or START SU
|11| LINE or SU not started
|12| LINE can not be stopped while SU's are open
|13| No backup running
|14| CASE modifier has invalid name
|15| Invalid backup CPU
|16| Trace not started
|17| SELECT option value incorrect
|18| Trace file name missing
|19| Opens already permitted
|20| Opens already prohibitted
|-5| GDSX User Defined command
|OTHERWISE| Unknown error [err]
]
]
#UNFRAME
Example 9-1. Listing of TELLGDS File (page 2 of 4)