View previous topic :: View next topic
|
Author |
Message |
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1193 Location: Dublin, Ireland
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1193 Location: Dublin, Ireland
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
MBabu
Active User
Joined: 03 Aug 2008 Posts: 400 Location: Mumbai
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1193 Location: Dublin, Ireland
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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. . .
30 lashes. . .
d |
|
Back to top |
|
|
MBabu
Active User
Joined: 03 Aug 2008 Posts: 400 Location: Mumbai
|
|
|
|
OK - 1st... I have no idea what I'm talking about here 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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
MBabu
Active User
Joined: 03 Aug 2008 Posts: 400 Location: Mumbai
|
|
|
|
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 |
|
|
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1193 Location: Dublin, Ireland
|
|
|
|
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 |
|
|
|