Common Variables
Common Variables
Posted by Marc
e.g. important for pgm. DATA.CAPTURE to update batch totals when changing an not authorised record
VM = Fieldmarker
see pgm. SIGN.ON for updating (hardcoded or by text-record in conncection with language code)
When record will be authorised and field no. 3 and 4 are empty and therefore not displayed
special OVERRIDE.CLASSes
AF = 3, AV = 1, AS = 5
Example: Fields to be displayed are no. 1, 2, 3.1 (first subfield), 3.2 (2nd subfield), 5 Values of A, AF, AV are
= 1 = not cleared
Standard input is only in pgm 'INP' and Input is transferred with COMI
COMI.DEFAULT = 1 = COMmon Input was DEFAULTed
= 0 or "" otherwise
preliminary value for T.ENRI, will be transferred to T.ENRI at the same time COMI is moved to R.NEW
CONTROL.MODULO = 0
Variable COMI
When input was in SINGLE.MODE then ETEXT will be stored in T.ETEXT and displayed in connection with the
whole page
When input was in MULTI.MODE then ETEXT will be transferred to E and immediately displayed in last line
FUNCTION = A, B, C, D, E, F, H, I, L, P, Q, R, S, V = possible
Used when displaying History records to be able to go forward and backward with controlwords
= 'Y' = using 'ALL'-option: Authorising, deleting or reversing all ID's (up to now only used for DATA.CAPTURE)
ID.AUT = 0 = no problem
not used
normally the same value like ID.NEW only after entering a new FUNCTION, ID.NEW.LAST is "" and ID.NEW is
still unchanged
= "" means that there is no ID for protocol line or as a base for displaying more records when SCREEN.MODE is
multi)
Digit 1 = 'A' = after displaying a full page continuation has to be signaled in action line
Input in action line may contain several inputs divided by a blank Pgm. 'INP' looks at first to INPUT.BUFFER and
takes this char. instead of waiting for an input
may be calculated 'L = MOD(A-1,20-L1ST)+L1ST' and - also often used - when calculating next page 'NEXTP =
INT((A+19-L1ST)/(20-L1ST))'
LANG.NO = The current language number being processed when entry is made into a language field. i.e
or 'LASTP = INT((V+19-L1ST)/(20-L1ST))'
= 1 = Normal work
LIVE.RECORD.MANDATORY = 0
pgm is in some cases faster for some values can be calculated in advance (without reading records)
with CONCATFILE(x)
e.g. 'F.MNEMONIC.CUSTOMER'
= 'U' = no History-file
e.g. 'F.VERSION', 'F.VERSION$NAU
= 'nn' = number of task (TNO, terminal, vdu) starting this phantom run
= "OPEN"
TIME.STAMP = TIMEDATE()
to use an unique time, when e.g. authorising more than 1 record at the same time
TNO = Terminal NO. (Task number, Wire connection no.) resp. User no. (including Phantoms)