Allows you to enter a value in one of the cells of the merge file created by the CRF command.
The entry of the value will always be in the current line.
Syntax
CHGVAR |
VAR(&CMD) VALUE('VAL') |
CHGVAR |
VAR(&PARM1) VALUE('column_name) |
CHGVAR |
VAR(&PARM2) VALUE('value') |
CALL |
PGM(LNCCMD) PARM(&HANDLE &CMD &OPT &PARM1 + &PARM2 &RESULT) |
Parameters
Parameters |
|
Parm1 |
Name
of the column or number of the column
|
Parm2 |
Value to be entered.
|
Example
LNCOPEN
LNCCMD CMD(CRF) PARM1('C:\A\fusion2.txt')
LNCCMD CMD(NCL) PARM1('Nom')
LNCCMD CMD(NCL) PARM1('Prenom')
LNCCMD CMD(NCL) PARM1('Identifiant')
LNCCMD CMD(NLN)
LNCCMD CMD(VAL) PARM1('Nom') PARM2('Redfall')
LNCCMD CMD(VAL) PARM1('Prenom') PARM2('Robert')
LNCCMD CMD(VAL) PARM1('Identifiant') PARM2('1')
LNCCMD CMD(ENF)
LNCCLOSE
In this example, the file 'fusion2.txt' is created in the directory "C: \ A".
See also
• CRF
• ENF
• NCL
• NLN