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

JCL Continuation question


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
luban

New User


Joined: 19 Nov 2005
Posts: 26
Location: Shanghai, China

PostPosted: Fri Nov 02, 2007 7:15 am
Reply with quote

Hi,

I have a question about JCL continuation.
If it's possible to continue following ".TEST" part from next line, since which already exceeded "Position 72". icon_question.gif

=COLS> ----+----1----+----2----+----3----+----4----+----5----+----6----+----7--
000034 //JS010D EXEC PGM=IEFBR14 ** DELETE **
000035 //*
000036 //DD1 DD DISP=(MOD,DELETE,DELETE),
000037 // SPACE=(10796,4),
000038 // DSN=&FIRST.&LEVEL1..&SECOND.&LEVEL2..&THIRD.&LEVEL3..&FOURTH.&LEVEL4.TEST

Thanks icon_biggrin.gif
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Fri Nov 02, 2007 8:16 am
Reply with quote

luban,

Quote:
// DSN=&FIRST.&LEVEL1..&SECOND.&LEVEL2..&THIRD.&LEVEL3..&FOURTH.&LEVEL4.TEST

Why dont you requce the symbolic parameter lenght? Like LEVEL1 to L1 etc....
Back to top
View user's profile Send private message
luban

New User


Joined: 19 Nov 2005
Posts: 26
Location: Shanghai, China

PostPosted: Fri Nov 02, 2007 9:08 am
Reply with quote

Hi Murali,

I just make this as an example, just suppose the symbolic parameter length is too long for the DSN name. Because some time the symbolic name is fixed for business issue. icon_smile.gif

Thanks
Ban
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Nov 02, 2007 1:32 pm
Reply with quote

Quote:
Because some time the symbolic name is fixed for business issue.


First time that a parm_name is subjected to business rules...
go figure :-)
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Nov 02, 2007 2:07 pm
Reply with quote

This is a reasonably simple thing to test out on your own. In fact it would probably have been faster for you to do so.

Dare I ask if this is a HOMEWORK question.
Back to top
View user's profile Send private message
luban

New User


Joined: 19 Nov 2005
Posts: 26
Location: Shanghai, China

PostPosted: Mon Nov 05, 2007 7:08 am
Reply with quote

Hi Expat,

I have tried a lot, but failed. I even doubt if it's allowed in JCL.
Unfortunately, it's not a HOMEWORK... icon_cry.gif

Regards,
Ban
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Nov 05, 2007 8:37 am
Reply with quote

Hello Ban,

While this meets a business processing requirement, there is possibly not a business requirement for the long symbolic parameters. I'd suggest meeting the business need with shorter symbolic parameter names.
Back to top
View user's profile Send private message
luban

New User


Joined: 19 Nov 2005
Posts: 26
Location: Shanghai, China

PostPosted: Mon Nov 05, 2007 2:26 pm
Reply with quote

Hi Dick,

Actually, this is just a Example.
Yes, the real lenght of single symbolic parameter is not so long, but the total length of ALL the parameters is really exceed 72.
So, is there any other way can solve this problem except the way to shorter the symbolic parameters? Or, it's impossible in JCL?

Thanks,

Ban
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Nov 05, 2007 4:19 pm
Reply with quote

Wouldn't this violate the allowable length (44 charcter) of a qualified DSN as well, if it crosses the 72 column?
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Mon Nov 05, 2007 4:28 pm
Reply with quote

Anuj,

Quote:
Wouldn't this violate the allowable length (44 charcter) of a qualified DSN as well

No.

Code:
----+----1----+----2----+----3----+----4----+----5----+----6----+----7--
//   SET SYM1=A,SYM2=B,SYM3=C                                           
//STEP1 EXEC PGM=XYZ                                                   
//DDDD DD DSN=&SYM1.&SYM2.&SYM3..&SYM1.&SYM2.&SYM3..&SYM1.&SYM2.&SYM3,

Though your DSN name (in parms) is 60 and odd.... your actual datasetname is going to be 10+ in length.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue Nov 06, 2007 6:35 pm
Reply with quote

Hi,

I thought to locate a DSN such as
Code:
RACFID.A.B.C.D.E.F.G.H.I.J.K.l.m.n.o.p.q.r.s.t


I thought to increase the number of delimiters ("." in this case) while shorting the length of symbolic parameters; A,B..etc in the final DSN would be "sandwiched" via symbolic parameters. That's why my previous post comes in..I didn't think in right way.. ...I (again) think.

Well, for the original thread, then, length of the symbolic parameters should be shorten, as suggested ealier.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Nov 06, 2007 6:41 pm
Reply with quote

Quote:
A.B.C.D.E.F.G.H.I.J.K.l.m.n.o.p.q.r.s.t


horrible naming convention,
the ratio noise to useful info is very ... find Yourself an adjective :-)
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue Nov 06, 2007 6:59 pm
Reply with quote

Yeah..I found the adjective icon_wink.gif ..but after reading the thread..I just tried it to get a better understanding, however,never used in practical situtaions. I hope, I'm permitted to experiment & trouble you guys icon_smile.gif
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Tue Nov 06, 2007 7:05 pm
Reply with quote

Anuj,

Quote:
trouble you guys

Not at all. As long as you are open for learning new things and SHARING your knowledge with others.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue Nov 06, 2007 7:23 pm
Reply with quote

Hi Murali,

Quote:
As long as you are open for learning new things and SHARING your knowledge with others.

I'm always pack with stupid queris to ask about icon_smile.gif

BTW..Do I really share the knowledge.. icon_razz.gif
Back to top
View user's profile Send private message
luban

New User


Joined: 19 Nov 2005
Posts: 26
Location: Shanghai, China

PostPosted: Wed Nov 07, 2007 9:23 am
Reply with quote

Hi Guys,

If anyone still remember my question ? icon_confused.gif

Regards,
Ban
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Wed Nov 07, 2007 11:00 am
Reply with quote

Ban,

Quote:
If anyone still remember my question ?

We had already suggested few ways.

> May be no one knows (or faced) your situation
or
> not intersted in helping you (Im sure this wont be the case)
Back to top
View user's profile Send private message
vasanthkumarhb

Active User


Joined: 06 Sep 2007
Posts: 275
Location: Bang,iflex

PostPosted: Wed Nov 07, 2007 12:14 pm
Reply with quote

HELLO,



Which question you are talking about?

Regard's
Vasanth...... icon_smile.gif
Back to top
View user's profile Send private message
Varun Singh

New User


Joined: 01 Aug 2007
Posts: 25
Location: Delhi

PostPosted: Wed Nov 07, 2007 12:14 pm
Reply with quote

Hi Luban

If you are writting and DSN name is reaching upto 72 columns then just write it in next line. JCL will automatically take it as continuation.

a non-space in position 72 indicates a continuation

Please correct me if I am wrong....icon_biggrin.gif
Back to top
View user's profile Send private message
luban

New User


Joined: 19 Nov 2005
Posts: 26
Location: Shanghai, China

PostPosted: Wed Nov 07, 2007 1:08 pm
Reply with quote

Hi Guys,

Thanks for your help.
It looks like that shorten the symbolic parm is my only choice icon_rolleyes.gif

Just wish won't meet such kind of DSN again icon_biggrin.gif

Thank you all again.

Regards,
Ban
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Wed Nov 07, 2007 1:43 pm
Reply with quote

luban wrote:
It looks like that shorten the symbolic parm is my only choice icon_rolleyes.gif


Yeah, according to the details provided by you so far, this is the best soultion. Once it happened to me & I did the same.

Quote:
Just wish won't meet such kind of DSN again


Good Luck .. icon_smile.gif
Back to top
View user's profile Send private message
Douglas Wilder

Active User


Joined: 28 Nov 2006
Posts: 305
Location: Deerfield IL

PostPosted: Thu Nov 08, 2007 2:42 am
Reply with quote

One other possible solution, do your substitution in multiple steps, ie. use intermediate variables to hold parts of the final dsn.

Code:
 2 // SET FIRST=A                                               
 3 // SET LEVEL1=B                                               
 4 // SET SECOND=C                                               
 5 // SET LEVEL2=D                                               
 6 // SET THIRD=E                                               
 7 // SET LEVEL3=F                                               
 8 // SET FOURTH=G                                               
 9 // SET TEST=H                                                 
   //********************************************************** 
10 // SET DSNP1=&FIRST..&LEVEL1..&SECOND..&LEVEL2.               
   IEFC653I SUBSTITUTION JCL - DSNP1=A.B.C.D                     
11 // SET DSNP2=&THIRD..&LEVEL3..&FOURTH.&TEST                   
   //********************************************************** 
   IEFC653I SUBSTITUTION JCL - DSNP2=E.F.GH                     
12 //JS010D EXEC PGM=IEFBR14                                     
   //*                                                           
13 //DD1 DD DISP=SHR,DSN=&DSNP1..&DSNP2                         
   IEFC653I SUBSTITUTION JCL - DISP=SHR,DSN=A.B.C.D.E.F.GH       

I hope this helps.
Back to top
View user's profile Send private message
luban

New User


Joined: 19 Nov 2005
Posts: 26
Location: Shanghai, China

PostPosted: Thu Nov 08, 2007 5:25 pm
Reply with quote

Hi Doug,

That's great!
It's really helpful.
Thank you so much " )

Regards,
Ban
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 Question for file manager IBM Tools 7
No new posts question for Pedro TSO/ISPF 2
No new posts question on Outrec and sort #Digvijay DFSORT/ICETOOL 20
No new posts panel creation question TSO/ISPF 12
No new posts Sort w/OUTREC Question DFSORT/ICETOOL 2
Search our Forums:

Back to Top