Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

PARM

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
unna

New User


Joined: 15 Oct 2004
Posts: 17

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

anuradha

Active User


Joined: 06 Jan 2004
Posts: 247
Location: Hyderabad

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: 17

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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Using 'parm' to vary SORTOUT record v... Sysaron DFSORT/ICETOOL 13 Wed Sep 07, 2016 9:24 pm
No new posts Copy a particular column based on PAR... brindhamohan DFSORT/ICETOOL 5 Wed May 11, 2016 8:49 am
No new posts Use of Parm in SORT Ambili S DFSORT/ICETOOL 2 Mon May 09, 2016 9:16 pm
No new posts symbolic parm - allocate dsn krrp JCL & VSAM 11 Sat Oct 31, 2015 8:27 pm
No new posts EXEC SORT,REGION=0M,PARM=ELAP venugopal.mft DFSORT/ICETOOL 4 Wed May 20, 2015 12:45 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us