2.4.4 RTPGET/RTCGET

1.
Function
Gets an internal variable from runtime option.
2.
Call
CALL RTPGET(CPFIX,CP,IPARA,N)
CALL RTCGET(CPFIX,CP,CPARA,N)
3.
Explanation of Parameters
CPFIX (C*(*)) Prefix for a variable name
CP (C(*)*8) Name of a variable
IPARA (I,R,L(*)) Value of a variable.
CPARA (C(*)*80) Value of a variable
N (I) Number of internal variables
4.
Notes
(a)
Prefixes consist of a combination of the  'xx' portion of xxpGET/xxpSET , and ':', for example,  'GL:' of the variable managed by GLpGET/GLpSET.
(b)
The character-type array specified as CP, CPARA must have lengths of 8 and 80 characters, respectively, for 1 element.
(c)
If no variable corresponding to the runtime option is not specified, IPARA, CPARA cannot be changed.
(d)
It is assumed that a runtime option is basically gotten though environmental variables, command line arguments, and an external file, but the actual implementation is machine-dependent. Therefore, on the presumption that the OSLIB (See Chapter 3) is correctly installed, the following routines actually carry out the operation.
RTPENV(CPFIX,CP,IPARA) Gets the value of an environmental variable
RTPOPT(CPFIX,CP,IPARA) Gets the value of an command line option
RTPXFL(CPFIX,CP,IPARA) Gets the option value from an external file
RTCENV(CPFIX,CP,CVAL) Gets the value of an environmental variable (character type)
RTCOPT(CPFIX,CP,CVAL) Gets the value of an command line option (character type)
RTCXFL(CPFIX,CP,CVAL) Gets the option value (character type) from an external file
(e)
When environmental variables, command line arguments, and an external file can be used to specify runtime options, their effect in descending order is command line arguments, environmental variables, and external file (if all three types are specified, the specification by the command line arguments is adopted).
(f)
For machines on which runtime options cannot be specified, the runtime option is considered as 'not specified'.