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
 

 

Continuation to next line in JCL

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

New User


Joined: 02 Aug 2006
Posts: 9
Location: noida

PostPosted: Fri Apr 17, 2009 11:11 am    Post subject: Continuation to next line in JCL
Reply with quote

I've a very long line to pass through JCL to a proc. It's as follows :
//SUBJECT=&MAR.USERID.&LIne.PLEASE&line.VERIFY&line.MRGWSBRO
// &line.BESTANDEN&line.ABR&line.AANWEZIG&line.

I've tried to give X,* etc at 72 column for continuation.
But it's not working...it's taking only first line and neglecting second. can u suggest ?
Back to top
View user's profile Send private message

mtaylor

Active User


Joined: 20 Feb 2009
Posts: 108
Location: Kansas City

PostPosted: Fri Apr 17, 2009 7:46 pm    Post subject:
Reply with quote

The only way a statement will continue to the next line is if the last character in the parameter list is a comma OR if it's an unclosed string literal that ends at column 71 (then continues at column 16 on the next, non comment line). IF statements continue until the THEN key word is found. A character in column 72 of an uncontinued line indicates the next line is a comment.

So to sum up: you can't do that.
Back to top
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Sat Apr 18, 2009 1:16 am    Post subject:
Reply with quote

As mtaylor outlined the requirements (which you may have looked up already?) :

1. enclose string in quotes
2. code line 1 thru col 71
3. 'x' in col 72
4. continue line 2 in col 16

You can do a continuation like that.
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Sat Apr 18, 2009 1:21 am    Post subject:
Reply with quote

Bill Dennis wrote:
You can do a continuation like that.
But what will happen if those "&line"s are going to be replaced by a variable larger or smaller than five characters?
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Sat Apr 18, 2009 1:36 pm    Post subject:
Reply with quote

Hi,

Quote:
But what will happen if those "&line"s are going to be replaced by a variable larger or smaller than five characters?


It shoudn't matter what the length of the variable is.


Gerry
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Sun Apr 19, 2009 2:08 am    Post subject:
Reply with quote

The length of the expanded value of MAR is going to have an effect as well as the length of LINE.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Mon Apr 20, 2009 4:58 am    Post subject:
Reply with quote

Hi Terry,

what I should have said is as long as the total length of the PARM does not exceed 100 characters.

Having a length greater or less than the variable is not a problem, I'm assumed CICS Guy was concerned if the expanded format did not finish in col 71.

This could be an easier way to achieve the result

Code:
// SET  V1=&MAR.USERID.&LINE.PLEASE&LINE.VERIFY&LINE.MRGWSBRO           
// SET  V2=&LINE.BESTANDEN&LINE.ABR&LINE.AANWEZIG&LINE.                 
// SET  V3=&V1&V2                                                       
//      SUBJECT=&V3                                                     



Gerry
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Mon Apr 20, 2009 5:27 am    Post subject:
Reply with quote

Quote:
This could be an easier way to achieve the result
The very point I was aiming for....
Quote:
Having a length greater or less than the variable is not a problem, I'm assumed CICS Guy was concerned if the expanded format did not finish in col 71.
But, if the "X" is in column 71 and the five byte "&line" was actually four bytes long, would the CC71 "X" still be in CC71?
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Mon Apr 20, 2009 6:39 am    Post subject:
Reply with quote

Hi CICS Guy,



It's not a problem if the five byte &line is only four bytes long, it will still continue the parameter.

Acutally you can leave col 72 blank.



Gerry
Back to top
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Mon Apr 20, 2009 7:35 pm    Post subject:
Reply with quote

As gerry said, code the JCL with PARM symbolics to satisfy the reader/interpreter (end in 71, 'X' in 72, continue in 16, etc.). The length of the symbolics after substitution doesn't matter as long as the total PARM ends up at 100 bytes or less.
Back to top
View user's profile Send private message
vikas kumar jain

New User


Joined: 02 Aug 2006
Posts: 9
Location: noida

PostPosted: Tue Apr 28, 2009 7:49 pm    Post subject:
Reply with quote

lots of thanks Dennis..it works...(no need of X in 72 column also)
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
This topic is locked: you cannot edit posts or make replies. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts Insert Lines in JCL with Rexx after a... Willy Jensen CLIST & REXX 3 Tue Aug 30, 2016 4:18 pm
No new posts Continuation Character ballaswaroop SYNCSORT 8 Thu Aug 25, 2016 4:46 pm


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