Allows to create a new column in the source file created with the CRF command.
The column will be inserted to the right of the existing columns.
Syntax
CHGVAR |
VAR(&CMD) VALUE('NCL') |
CHGVAR |
VAR(&PARM1) VALUE('NameColumn') |
CHGVAR |
VAR(&PARM2) VALUE(' ') |
CALL |
PGM(LNCCMD) PARM(&HANDLE &CMD &OPT &PARM1 + &PARM2 &RESULT) |
Parameters
Parameters |
|
Parm1 |
Name of the column to create. |
|
Example
CHGVAR |
VAR(&CMD) VALUE('NCL') |
CHGVAR |
VAR(&PARM1) VALUE('Column1') |
CHGVAR |
VAR(&PARM2) VALUE(' ') |
CALL |
PGM(LNCCMD) PARM(&HANDLE &CMD &OPT &PARM1 + &PARM2 &RESULT) |
See also
• CRF
• ENF
• NLN
• VAL