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

Passing parameter through JCL


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Fri Jan 25, 2013 2:40 pm
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
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
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

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Fri Jan 25, 2013 3:14 pm
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
Reply with quote

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

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Fri Jan 25, 2013 3:42 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Using the Jobname parameter in a Qual... ABENDS & Debugging 1
No new posts Passing Parameters to Programs Invoke... PL/I & Assembler 5
No new posts Passing SYSPRINT to Invoked Program PL/I & Assembler 9
No new posts Demand with DEADLINE TIME parameter CA Products 4
No new posts Option DYNALLOC second parameter. DFSORT/ICETOOL 11
Search our Forums:

Back to Top