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

JCL Doubt- PARM Parameter


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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
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 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 Using the Jobname parameter in a Qual... ABENDS & Debugging 1
No new posts Demand with DEADLINE TIME parameter CA Products 4
Search our Forums:

Back to Top