Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
PARM

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL
Author Message
unna

New User


Joined: 15 Oct 2004
Posts: 18

PostPosted: Tue Nov 16, 2004 4:56 pm    Post subject: PARM
Reply with quote

Hi,

When we'll be using PARM in Programs ?
Is there any particular sectionn where we have to use PARM?
If we are using PARM in programs should we also use in the respective
JCL?
HOw PARM will work when used in JCL?

Thanks in advance.
Back to top
View user's profile Send private message
References
anuradha

Global Moderator


Joined: 06 Jan 2004
Posts: 257

PostPosted: Tue Nov 16, 2004 6:48 pm    Post subject:
Reply with quote

Hi Unna,

When you need to pass any data from cobol to JCl generally we go for SYSIN or PARM.

PARM is coded with the EXEC statement in the JCL and the cobol program requires a linkage section.
Back to top
View user's profile Send private message
lramani

New User


Joined: 03 Nov 2004
Posts: 21
Location: NOIDA, India

PostPosted: Tue Nov 16, 2004 6:52 pm    Post subject:
Reply with quote

Hi Unna,
The parm receiving field and the length needs to be specified in linkage section.
Also the procedure division should have the USING in it.

So for example if the JCL had something like this:
//ABC EXEC PGM=XYZ,
// PARM='This is a Parmeter etc etc.....'

In cobol u wud have

LINKAGE SECTION.
01 PARM-VAL.
05 PARM-LGTH pic S9(4) comp.
05 PARM-DATA-PASSED pic X(80).


PROCEDURE DIVISION using PARM-VAL.

I hope this is what u wanted to know...let me know if u need more info.
Back to top
View user's profile Send private message
unna

New User


Joined: 15 Oct 2004
Posts: 18

PostPosted: Tue Nov 16, 2004 6:55 pm    Post subject:
Reply with quote

Thank you lakshmi,

You replied exactly what i needed.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL All times are GMT + 6 Hours
Page 1 of 1