CDS557
Set View Field Maintenance Option |
Last Revised: 02/25/14 |
This routine can be called to change a View Field Maintenance Option for the active View being processed by CDS550. It is needed when you need to skip or not-skip a field when entering through all fields in the view.
It is preferred to call CDS557 to alter the View Field Maintenance Option as opposed to modifying the SMS_CDS550_MAINT global manually. The primary advantage is using CDS557 is that it will continue to work if the sequence of fields in the view are changed, since you pass the field name to CDS557 and not the field number of the field in the view.
This change applies to the current record only and will be reset to default values for the next record processed.
Calling Format:
CALL "CDS557",FLDNAM$,VAL$
CDS557 Arguments | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Argument | Passed To/From | Description | ||||||||||
FLDNAM$
|
To | Termplated field name excluding $ but including optional index indicator in format [IND] . Examples: CUSTNO, SALES, CODE[2] . |
||||||||||
VAL$
|
To | Maintenance Option. The value is typically taken from the View Properties, unless changed using CDS557.
|
||||||||||
Error Messages | Displayed |
|
Example |
IF CM040.NEW=0 THEN CALL "CDS557","ADDR2","S"
|