View previous topic :: View next topic
|
Author |
Message |
luban
New User
Joined: 19 Nov 2005 Posts: 26 Location: Shanghai, China
|
|
|
|
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".
=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 |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
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 |
|
|
luban
New User
Joined: 19 Nov 2005 Posts: 26 Location: Shanghai, China
|
|
|
|
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.
Thanks
Ban |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
luban
New User
Joined: 19 Nov 2005 Posts: 26 Location: Shanghai, China
|
|
|
|
Hi Expat,
I have tried a lot, but failed. I even doubt if it's allowed in JCL.
Unfortunately, it's not a HOMEWORK...
Regards,
Ban |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
luban
New User
Joined: 19 Nov 2005 Posts: 26 Location: Shanghai, China
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Wouldn't this violate the allowable length (44 charcter) of a qualified DSN as well, if it crosses the 72 column? |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Yeah..I found the adjective ..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 |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Anuj,
Not at all. As long as you are open for learning new things and SHARING your knowledge with others. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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
BTW..Do I really share the knowledge.. |
|
Back to top |
|
|
luban
New User
Joined: 19 Nov 2005 Posts: 26 Location: Shanghai, China
|
|
|
|
Hi Guys,
If anyone still remember my question ?
Regards,
Ban |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
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 |
|
|
vasanthkumarhb
Active User
Joined: 06 Sep 2007 Posts: 275 Location: Bang,iflex
|
|
|
|
HELLO,
Which question you are talking about?
Regard's
Vasanth...... |
|
Back to top |
|
|
Varun Singh
New User
Joined: 01 Aug 2007 Posts: 25 Location: Delhi
|
|
|
|
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.... |
|
Back to top |
|
|
luban
New User
Joined: 19 Nov 2005 Posts: 26 Location: Shanghai, China
|
|
|
|
Hi Guys,
Thanks for your help.
It looks like that shorten the symbolic parm is my only choice
Just wish won't meet such kind of DSN again
Thank you all again.
Regards,
Ban |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
luban wrote: |
It looks like that shorten the symbolic parm is my only choice |
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 .. |
|
Back to top |
|
|
Douglas Wilder
Active User
Joined: 28 Nov 2006 Posts: 305 Location: Deerfield IL
|
|
|
|
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 |
|
|
luban
New User
Joined: 19 Nov 2005 Posts: 26 Location: Shanghai, China
|
|
|
|
Hi Doug,
That's great!
It's really helpful.
Thank you so much " )
Regards,
Ban |
|
Back to top |
|
|
|