This works when entered from the command line:
CHGSPLFA PR025RF 514834/PSOMERS/QPADEV0004 1 PRTSEQ(*NEXT) RESTART(1)
This following CL program fails with the message CPD0078: Value '514834/PSO' for parameter JOB not a valid name:
PGM
DCL VAR(&JOB_NAME) TYPE(*CHAR) LEN(27) +
VALUE('514834/PSOMERS/QPADEV0004')
CHGSPLFA PR025RF &JOB_NAME 1 PRTSEQ(*NEXT) +
RESTART(3)
ENDPGM
What am I missing?
The CL program will be called from an RPG program with the JOB parameter being passed.
CHGSPLFA PR025RF 514834/PSOMERS/QPADEV0004 1 PRTSEQ(*NEXT) RESTART(1)
This following CL program fails with the message CPD0078: Value '514834/PSO' for parameter JOB not a valid name:
PGM
DCL VAR(&JOB_NAME) TYPE(*CHAR) LEN(27) +
VALUE('514834/PSOMERS/QPADEV0004')
CHGSPLFA PR025RF &JOB_NAME 1 PRTSEQ(*NEXT) +
RESTART(3)
ENDPGM
What am I missing?
The CL program will be called from an RPG program with the JOB parameter being passed.
Comment