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

RESOLVING SYMDEFS


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

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Tue Sep 08, 2009 5:59 pm
Reply with quote

My position is that batch jobs, in particular jobs run with TYPRUN=SCAN are failing to resolve SYMDEFS as defined in SYS1.PARMLIB(IEASYMnn). Has anyone a simple means of having these resolved?

Thanks in advance,
Garry.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Sep 08, 2009 6:05 pm
Reply with quote

From the JCL Language Reference manual, link at the top of the page:
Quote:
5.4.1 What are System Symbols?

System symbols represent values that are unique to each system. A system replaces those symbols with its own values when it processes started task JCL (jobs and procedures read from a procedure library) and TSO logons. (A started task is a task resulting from JCL that is processed immediately as a result of a START command.
Exactly where in there does is say anything about SUBMITTED jobs? Started tasks, yes. TSO logons, yes. Submitted jobs, NO.
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Tue Sep 08, 2009 6:19 pm
Reply with quote

Thanks Robert,

Yes, I'm aware that Started Tasks & TSO Logons will resolve the SYMDEFS. I also can see that it doesn't mention submitted jobs. If the manual gave me an answer, I'd not be asking.

My problem is that, before submitting updates for such procedures to proclibs, I'd like to be able to demonstrate with, for example, a TYPRUN=SCAN that the SYMDEFS will get resolved. Change Control people don't like to let what appear to be unresolved references through. Each time there's a started task update, they issue a challenge that has to have a response.

Regards,
Garry.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Sep 08, 2009 6:23 pm
Reply with quote

Since started tasks do not have JOB statements, where are you going to place the TYPRUN=SCAN?

It sounds like you may need to work with your Change Control group to come up with a better process for started task changes, or you'll just have to live with the challenge / response for every started task change.
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: Wed Sep 09, 2009 1:07 am
Reply with quote

Hello,

Might it suffice to add a JOB statement and run a TYPRUN=SCAN to prove the expansion, but not promote the JOB/TYPRUN with the change?
Back to top
View user's profile Send private message
MBabu

Active User


Joined: 03 Aug 2008
Posts: 400
Location: Mumbai

PostPosted: Wed Sep 09, 2009 3:36 am
Reply with quote

or maybe you can write a small Rexx routine that preprocess the JCL using MVSVAR('SYMDEF',symbol) and get the change control group to agree to (maybe run it and) review its output.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Sep 09, 2009 6:17 am
Reply with quote

Quote:
Yes, I'm aware that Started Tasks & TSO Logons will resolve the SYMDEFS. I also can see that it doesn't mention submitted jobs. If the manual gave me an answer, I'd not be asking.
Actually, the manual did answer you -- since submitted jobs are not explicitly mentioned while the others are, you can pretty much bet that submitted jobs are not going to be able to access the SYMDEFS. A negative answer is still an answer.
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Wed Sep 09, 2009 11:28 am
Reply with quote

Quote:
Might it suffice to add a JOB statement and run a TYPRUN=SCAN to prove the expansion, but not promote the JOB/TYPRUN with the change?


Thanks Dick, but the job submitted does not resolve SYMDEFS - as per Robert's reference to JCL manual.

Quote:
or maybe you can write a small Rexx routine that preprocess the JCL .....


Perhaps MBabu, but I was hoping to avoid this.

Quote:
Actually, the manual did answer you -- since submitted jobs are not explicitly mentioned while the others are, you can pretty much bet that submitted jobs are not going to be able to access the SYMDEFS. A negative answer is still an answer.


Robert, I'd contend that this is not a negative answer. The fact that you say "you can pretty much bet.." suggests a slim possibility may exist.


Anyway, it would seem that I'll either have to code around, fix the Change control process/people, or live with it.

Thanks for your inputs,

Garry.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Sep 09, 2009 11:50 am
Reply with quote

have You tried to play around with started JOBS ?

it has been a while that the facility is around,
but beware I have not cheched if typrun= scan works with them
IIRC SYMDEFS get resolved in started JOBS,
after having satified the people with funny hats all You have to do is to take away the JOB card when promoting to final production
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: Wed Sep 09, 2009 10:10 pm
Reply with quote

Hi Garry,

Quote:
Thanks Dick, but the job submitted does not resolve SYMDEFS - as per Robert's reference to JCL manual.
My bad - brain fade. . . icon_redface.gif

30 lashes. . .

d
Back to top
View user's profile Send private message
MBabu

Active User


Joined: 03 Aug 2008
Posts: 400
Location: Mumbai

PostPosted: Wed Sep 09, 2009 11:41 pm
Reply with quote

OK - 1st... I have no idea what I'm talking about here icon_redface.gif so for whatever it is worth... Is it possible to add a known fatal error to the started task JCL so that the input will run through conversion but not proceed to execution? If so, then you could add an agreed upon flaw to the JCL, start it, let it fail and use the joblog as a means to verify changes. (I know - I don't like it either, but its worth asking since it is similar to typerun=scan, I guess). I'm assuming, of course, that the job log would contain expansions, and that may be wrong - I don't have a sys to test on
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu Sep 10, 2009 12:34 am
Reply with quote

Mbabu, you really want to monkey around with the JES start up deck that much? Or the CA-7 JCL? Actually, there's a few started tasks that you could not do this to anyway -- if the CA RIM job fails during the IPL, for example, none of the CA products on that LPAR will be able to run. And CA RIM is typically only executed during an IPL since you only need it once -- but it is a started task that has to be changed every now and then.

The o/p either needs to get an exception for started tasks, or work with the change control group to implement something that is workable.
Back to top
View user's profile Send private message
MBabu

Active User


Joined: 03 Aug 2008
Posts: 400
Location: Mumbai

PostPosted: Thu Sep 10, 2009 1:41 am
Reply with quote

I didn't really think it was a viable option to change the actual proc, just a copy (which has its own issues) but still, as I said, I didn't like it either.
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Thu Sep 10, 2009 11:58 am
Reply with quote

Thanks Enrico,
Quote:
have You tried to play around with started JOBS ?


I'll try following that route. I'll let you know how I get on, but I'll be off the air for a while.

Cheers,
Garry.
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 Need some help in resolving job abend... JCL & VSAM 2
No new posts Resolving nested symbolic variables i... CLIST & REXX 5
No new posts Resolving AZI4 CICS 15
No new posts Resolving -911 DEADLOCK OR TIMEOUT DB2 3
No new posts Resolving ASRA COBOL Programming 4
Search our Forums:

Back to Top