Hi Everybody..,
This is Venkat a Novice in Mainframe Technology. Can anybody help me out in understanding the PARM Parameter thoroughly please?
regards...,
Venkat
Joined: 06 Dec 2004 Posts: 200 Location: Keane India Ltd., Hyderabad
Hi Venkat,
This is Reddy. PARM parameter is used to pass data from JCL to COBOL. we can pass maximum of 100 CHARS using PARM parameter. If it exceeds 100 chars we need to use Instream data ( //SYSIN DD *).
This data we can receive in to COBOL by using a variable declared in LINKAGE SECTION. this can be done as follows
PROCEDURE DIVISION USING VARX.
VARX - is a linkage section variable which receives the data from PARM