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
 

 

JCL Doubt- PARM Parameter

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

New User


Joined: 04 Mar 2005
Posts: 10

PostPosted: Fri Mar 04, 2005 3:46 pm    Post subject: JCL Doubt- PARM Parameter
Reply with quote

Hi Everybody..,
This is Venkat a Novice in Mainframe Technology. Can anybody help me out in understanding the PARM Parameter thoroughly please?
regards...,
Venkat
Back to top
View user's profile Send private message

ovreddy

Active User


Joined: 06 Dec 2004
Posts: 211
Location: Keane Inc., Minneapolis USA.

PostPosted: Fri Mar 04, 2005 5:19 pm    Post subject:
Reply with quote

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

PASS data in JCL as follows...

//STEP01 EXEC PGM=DEMO,PARM="DATATOPASS"

Bye,
Reddy.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sat Mar 05, 2005 11:15 pm    Post subject:
Reply with quote

Hi Venkat,

To followup what Reddy has already said, the parm data passed to the pgm from the JCL should be defined in the pgm as such:

LINKAGE SECTION.

01 PARM-DATA.
05 PARM-LEN PIC S9(004) COMP.
05 PARM-STRING PIC X(010).

The length of the data passed is contained in PARM-LEN, the data itself is contained in PARM-STRING.

You can test the length as part of the verification process.
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 Can DFSPARM override SORTKEYS paramet... ashek15 DB2 2 Tue Jan 31, 2017 11:36 pm
No new posts DDNAME parameter mistah kurtz JCL & VSAM 6 Mon Dec 19, 2016 4:41 pm
No new posts Execessive parameter issue Sumeendar JCL & VSAM 5 Mon Dec 19, 2016 4:35 pm
No new posts TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am
No new posts Doubt in MFS abdulrafi IMS DB/DC 2 Fri Oct 21, 2016 3:09 pm


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