The using clause appended on procedure division tells the pgm that
we are using the afore (in program ) defined in DATA DIVISION as
01 WL-001-PARAMETER-AREA.
and the code you're showing is only part of the pgm.
if you want an explanation of what pgm does post the whole code !!!
there is no instructions (after procedure division line).
I mean without using PARM in JCL can we excute the program
actualy it is getting the report number from this parm,
of course the value of the PARM will be moved to report
my question can we excute it with out mentioning about the PARM in JCL
The ans to your ques is "maybe". You have to look at the pgm logic. For example, if the code has this stmt you may be able to correctly print a report even if the PARM wasn't provided in the JCL.
Code:
IF WL-001-PARM-LENGTH = ZERO
MOVE 'default-pgm-name' TO RPT-HDG-NAME
ELSE
MOVE WL-001-PARM-RPT TO RPT-HDG-NAME
END-IF