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
 

 

Passing parameter through JCL

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

New User


Joined: 16 Feb 2011
Posts: 38
Location: Gurgoan

PostPosted: Fri Jan 25, 2013 2:33 pm    Post subject: Passing parameter through JCL
Reply with quote

Hi,

I want to pass parameters to JCL that is longer than 72 char( total that can be accomodated in a line)

the data upto 72 char is being read by the program clearly but the data in second line its not reading properly and giving garbage value for that

The below is senerio.

PARMIN_RECORD,
5 DESC1 CHAR(13),
5 CURR_RUNDATE CHAR(10),
5 COMMA1 CHAR(1),
5 DESC2 CHAR(13),
5 PREV_RUNDATE CHAR(10),
5 COMMA2 CHAR(1),
5 DESC3 CHAR(9),
5 REBALANCE_SW CHAR(1),
5 COMMA3 CHAR(1),
5 DESC4 CHAR(19),
5 CNTRL_OUT_OVERRIDE CHAR(1),
5 FILLER1 CHAR(1)

Is the structure i am reading in through JCL.
--------------------------------------------------------------------
CURR_RUNDATE=2012-05-18,PREV_RUNDATE=2012-05-16,REBALANCE_SW=N,CNTRL_OU
T_OVERRIDE=N.

is I am passing through JCl
CURR_RUNDATE=2012-05-18,PREV_RUNDATE=2012-05-16,REBALANCE_SW=N,CNTRL_OU

is being read clearly but

T_OVERRIDE=N.

is giving garbage value

Please help
Back to top
View user's profile Send private message

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7232

PostPosted: Fri Jan 25, 2013 2:40 pm    Post subject: Reply to: Passing parameter through JCL
Reply with quote

The JCL Reference describes how to continue a PARM over more than one line. Remember, there is a maximum of 100 characters.
Back to top
View user's profile Send private message
kushal Bothra

New User


Joined: 16 Feb 2011
Posts: 38
Location: Gurgoan

PostPosted: Fri Jan 25, 2013 2:41 pm    Post subject:
Reply with quote

ok I will go and refer the JCL Reference
Back to top
View user's profile Send private message
kushal Bothra

New User


Joined: 16 Feb 2011
Posts: 38
Location: Gurgoan

PostPosted: Fri Jan 25, 2013 2:59 pm    Post subject:
Reply with quote

Hi Bill,

I tried looking for Reference JCL but was not able to find that it will be great if you can help

Thanks !!
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7232

PostPosted: Fri Jan 25, 2013 3:14 pm    Post subject: Reply to: Passing parameter through JCL
Reply with quote

Try here.
Back to top
View user's profile Send private message
kushal Bothra

New User


Joined: 16 Feb 2011
Posts: 38
Location: Gurgoan

PostPosted: Fri Jan 25, 2013 3:17 pm    Post subject:
Reply with quote

Thanks Bill its resolved... icon_smile.gif
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7232

PostPosted: Fri Jan 25, 2013 3:42 pm    Post subject: Reply to: Passing parameter through JCL
Reply with quote

Good to hear it, thanks for letting us know.
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 FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am
No new posts How to display value of an exit param... lind sh CICS 2 Sun Oct 09, 2016 12:28 pm
No new posts Send parameter for macro STIMERM from... Daniel Teolotitla PL/I & Assembler 13 Tue Jul 05, 2016 9:23 pm
No new posts COND parameter vs IF THEN ELSE Alks JCL & VSAM 11 Fri Jun 17, 2016 5:28 pm


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