Hi All,
I created the program with below 3 parameters and calling the program from command line as -
CALL PGM(MYPROGRAM) PARM('ABCDEFGHIJ' '/ROOT/HOME/MYNAME.TXT' 'ABCDEF')
DCL VAR(&A) TYPE(*CHAR) LEN(10) VALUE(' ')
DCL VAR(&B) TYPE(*CHAR) LEN(255) VALUE(' ')
DCL VAR(&C) TYPE(*CHAR) LEN(05) VALUE(' ')
Here the issue is with the value coming into the variable &B. the actual value I am passing value to the variable &B thru call command is ?/ROOT/HOME/MYNAME.TXT'. But the value coming into the program for variable &B is as below.
EVAL &B
&B =
....5...10...15...20...25...30...35...40...45...50 ...55...60
1 '/ROOT/HOME/MYNAME.TXT ABCDEF '
61 ' '
121 ' '
181 ' '
241 ' '
I am not sure why the value of &B is coming along with &c value in to the program
Please clarify me what I am doing wrong here .
Regards,
Girish
I created the program with below 3 parameters and calling the program from command line as -
CALL PGM(MYPROGRAM) PARM('ABCDEFGHIJ' '/ROOT/HOME/MYNAME.TXT' 'ABCDEF')
DCL VAR(&A) TYPE(*CHAR) LEN(10) VALUE(' ')
DCL VAR(&B) TYPE(*CHAR) LEN(255) VALUE(' ')
DCL VAR(&C) TYPE(*CHAR) LEN(05) VALUE(' ')
Here the issue is with the value coming into the variable &B. the actual value I am passing value to the variable &B thru call command is ?/ROOT/HOME/MYNAME.TXT'. But the value coming into the program for variable &B is as below.
EVAL &B
&B =
....5...10...15...20...25...30...35...40...45...50 ...55...60
1 '/ROOT/HOME/MYNAME.TXT ABCDEF '
61 ' '
121 ' '
181 ' '
241 ' '
I am not sure why the value of &B is coming along with &c value in to the program
Please clarify me what I am doing wrong here .
Regards,
Girish
Comment