Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Where is output from PARM ABEXIT (SNA... packerm CA Products 3 Thu Sep 28, 2017 4:06 pm
No new posts Regarding time parameter shanthi gude JCL & VSAM 7 Mon Sep 04, 2017 2:31 pm
No new posts Paasing symbolic parameter to instrea... Robert Sample JCL & VSAM 2 Thu Jul 27, 2017 1:22 pm
No new posts JTS parameter Shashank Chaubey JCL & VSAM 2 Thu Jul 13, 2017 4:15 pm
No new posts Include/omit with "ALL" pa... mgl DFSORT/ICETOOL 6 Wed Jun 14, 2017 2:31 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us