IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

PARM


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts JCL EXEC PARM data in C Java & MQSeries 2
No new posts Need to specify PARM='POSIX(ON) Java & MQSeries 4
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts Passing parm from JCL to Assembler, b... PL/I & Assembler 2
No new posts Using PARM=('JPn"&SYMBOL&quo... DFSORT/ICETOOL 2
Search our Forums:

Back to Top