Hi!
I created a source for a command, woth the name MYCMD
CMD
PARM KWD(YEARMI1) TYPE(*DEC) LEN(8 0)
PARM KWD(YEARMF1) TYPE(*DEC) LEN(8 0)
PARM KWD(YEARMI2) TYPE(*DEC) LEN(8 0)
PARM KWD(YEARMF2) TYPE(*DEC) LEN(8 0)
CRTCMD CMD(MYLIB/MYCMD) PGM(MYLIB/MYCLPGM) SRCFILE(MYLIB/QCMDS
RC)
Then i created a CL program, with the name MYCLPGM, that make's de sbmjob of that command :
PGM
DCLF FILE(MYDSPF)
DCL VAR(&YEARMI1) TYPE(*DEC) LEN(8 0)
DCL VAR(&YEARMF1) TYPE(*DEC) LEN(8 0)
DCL VAR(&YEARMI2) TYPE(*DEC) LEN(8 0)
DCL VAR(&YEARMF2) TYPE(*DEC) LEN(8 0)
SNDRCVF RCDFMT(RMYDSPF)
SBMJOB CMD(MYCMD YEARMI1(&YEARMI1) +
YEARMF1(&YEARMF1) YEARMI2(&YEARMI2) +
YEARMF2(&YEARMF2))
ENDPGM
When i execute the CL program, apears in the spool a log:
The number of parameters in the definition of the command does not correspond to the
number of parameters in the processing of the command or in the program of the verifiyer of the validity
MYCLPGM in the library MYLIB.
I have already wasted much time whit this CL and i cannot see where's the problem. Is the command not be executed correctly?
Need help, urgently
I created a source for a command, woth the name MYCMD
CMD
PARM KWD(YEARMI1) TYPE(*DEC) LEN(8 0)
PARM KWD(YEARMF1) TYPE(*DEC) LEN(8 0)
PARM KWD(YEARMI2) TYPE(*DEC) LEN(8 0)
PARM KWD(YEARMF2) TYPE(*DEC) LEN(8 0)
CRTCMD CMD(MYLIB/MYCMD) PGM(MYLIB/MYCLPGM) SRCFILE(MYLIB/QCMDS
RC)
Then i created a CL program, with the name MYCLPGM, that make's de sbmjob of that command :
PGM
DCLF FILE(MYDSPF)
DCL VAR(&YEARMI1) TYPE(*DEC) LEN(8 0)
DCL VAR(&YEARMF1) TYPE(*DEC) LEN(8 0)
DCL VAR(&YEARMI2) TYPE(*DEC) LEN(8 0)
DCL VAR(&YEARMF2) TYPE(*DEC) LEN(8 0)
SNDRCVF RCDFMT(RMYDSPF)
SBMJOB CMD(MYCMD YEARMI1(&YEARMI1) +
YEARMF1(&YEARMF1) YEARMI2(&YEARMI2) +
YEARMF2(&YEARMF2))
ENDPGM
When i execute the CL program, apears in the spool a log:
The number of parameters in the definition of the command does not correspond to the
number of parameters in the processing of the command or in the program of the verifiyer of the validity
MYCLPGM in the library MYLIB.
I have already wasted much time whit this CL and i cannot see where's the problem. Is the command not be executed correctly?
Need help, urgently



Comment