DNE
Data Name in Error
This system variable returns a 30-character string that contains the name of a data element that was assigned an invalid value (either an error 166 or 167 condition), or was determined to be corrupt (an error 169 condition).
Syntax
Section titled “Syntax”DNERemarks
Section titled “Remarks”An ERR=166 is produced when trying to store a string into a numeric data name.
An ERR=167 is produced when the value is invalid according to the data element’s attributes.
An ERR=169 is produced when a corrupt data element, one with an invalid combination of attributes, is encountered.
Examples
Section titled “Examples”00100 SETERR 08000; #DNFFMT.NUMBER=S$ . . .08000 D$=DNEIf S$=“AAA”, D$ receives the value “#DNFFMT.NUMBER”.
00100 SETERR 08000 #DNFFMT.NUMBER = 999999 . . .08000 D$ = DNEIf the data element “NUMBER” is defined to be length 5 and precision 0, D$ receives the value “#DNFFMT.NUMBER”.
00100 SETERR 08000 #DNFFMT. STRING = "STRING-1" . . .08000 D$=DNEIf the data element “STRING” is defined to be length 20 and input type 1 (optional and fixed length), D$ receives the value “#DNFFMT.STRING”.
See also
Section titled “See also”ATR, FMD, and FMT functions
FORMAT INCLUDE directive
From the Thoroughbred Basic Language Reference, Volume I: A–E, version 8.9.1. Open this page in the PDF