DCL:MATH1:SYSLIB : Internal Variable Management and Message Output: Explanation of Subroutines
Inquires/changes an internal variable used in MATH1 (and the whole DCL). (GLpSTX allows changes by a runtime option.) All internal variables can be inquired, but system-dependent internal variables cannot be changed.
CALL GLpGET(CP,IPARA)
CALL GLpSET(CP,IPARA)
CALL GLpSTX(CP,IPARA)
CP (C*8) Name of an internal variable IPARA (I,R,L) Value of an internal variable
The following is a list of names that can be specified as CP.
'NBITSPW' (I) Bit length of 1 word. System-dependent (usually 32) 'NCHRSPW' (I) Character length of 1 word. System-dependent (usually 4) 'INTMAX' (I) The maximum integer that can be expressed by 1 word. System-dependent (See Notes.) 'REALMAX' (R) The maximum floating-point number that can be expressed by 1 word. System-dependent (See Notes.) 'REALMIN' (R) The minimum positive floating-point number that can be expressed by 1 word. System-dependent (See Notes.) 'IIUNIT' (I) Number of the standard input device. System-dependent (usually 5) 'IOUNIT' (I) Number of the standard output device. System-dependent (usually 6). 'MSGUNIT' (I) The output device for message output. (Initial value same as 'IOUNIT'). 'MAXMSG' (I) The maximum number of messages (Initial value: 20) 'MSGLEV' (I) If the output message level is below 0, will output all messages. If 1, will output warning and error messages. Above 2, will only output error message. (Initial value: 0) 'NLNSIZE' (I) The maximum number of characters in a message printed in a single line (Initial value: 78). When a message is printed, the first column of each line begins with a blank, so the actual number of characters for each line is 'NLNSIZE'+1. 'LMISS' (L) Specifies whether missing-value handling will be performed. Performed when .TRUE., and not performed when .FALSE.. (Initial value: .FALSE.). 'IMISS' (I) Specifies the integer-type missing value for missing-value handling. (Initial value: 999) 'RMISS' (R) Specifies the floating-point-number-type missing value for missing-value handling. (Initial value: 999.0) 'IUNDEF' (I) Integer-type value indicating 'not specified'. (Initial value: -999) 'RUNDEF' (I) Floating-point-number-type value indicating 'not specified'. (Initial value: -999.0) 'LEPSL' (L) Specifies whether error is included when comparing floating-point numbers .(See Chapters 8,9,10,11.) If .TRUE., error is included; if .FALSE., error is not included. (Initial value: .FALSE.) 'REPSL' (R) The standard value of relative error in comparison including error. System-dependent (see Notes). 'RFACT' (R) A scaling factor (Initial value: 1.0) that is multiplied with the standard value of relative error in comparison including error. 'REPSL'*'RFACT' is used as the relative error.
GLPQNP(NCP) Calculates the total number NCP of internal variables GLPQID(CP,IDX) Determines the position IDX of an internal variable CP GLPQCP(IDX,CP) Inquires the name CP of an internal variable at position IDX GLPQVL(IDX,IPARA) Inquires the value IPARA of an internal variable at position IDX GLPSVL(IDX,IPARA) Changes the value IPARA of an internal variable at position IDX
Mainframe UNIX 'INTMAX' 2147483647 2147483647 'REALMAX' 0.7237005E+76 3.4028236E+38 'REALMIN' 0.5397605E-78 1.1754944E-38 'REPSL' 0.95E-5 1.2E-6
DCL:MATH1:SYSLIB : Internal Variable Management and Message Output: Explanation of Subroutines