Hello
I want to use the PARM value passed by the JCL in my COBOL program.
So for the sake of the same i am just looking into some other module where the JCL parameter is as follows.
//STEP1 EXEC PGM=TESTAPP,TIME=5,REGION=6M,
// PARM='090422'
But in my cobol program The coding has been done as below.
LINKAGE SECTION.
01 PARM-INFO.
05 PARM-LENGTH PIC S9(04) COMP.
05 PARM-DATE.
10 PARM-YY PIC X(02).
10 PARM-MM PIC X(02).
10 PARM-DD PIC X(02).
PROCEDURE DIVISION USING PARM-INFO.
So even though the PARM value passed to the program is only 6 charecter long , why have they used the COMP field PARM-LENGTH.
Thanks
Naveen