View previous topic :: View next topic
|
Author |
Message |
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Reposted per request from Steve Coalbran
Is this REXX or JCL both I guess?
(dear moderator, please can you cross-post? I have no idea how to!)
I want to trap the allocations of the ORDER in the JCLLIB statement.
I thought it might be somewhere off JCT but viewing this control block, but I see no obvious link.
Does anyone, skilled in controlblock navigation and data-extraction, have a technique for accessing the JCLLIB allocations?
Loading them to a stem 'jcllib.' (à la EXECIO) would be favourite!
I don't know of a "cross-post feature . . .
d |
|
Back to top |
|
|
Steve Coalbran
New User
Joined: 01 Feb 2007 Posts: 89 Location: Stockholm, Sweden
|
|
|
|
Thanks Dick!
Now I see the repost technique!
Cut&Paste!?
Derrrr!
/S |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
You're welcome
Yup, copy&paste is the only way i know . . .
d |
|
Back to top |
|
|
daveporcelan
Active Member
Joined: 01 Dec 2006 Posts: 792 Location: Pennsylvania
|
|
|
|
I thought it was frowned upon to double post in the same forum.
Even frowned upon accross multiple forums.
Am I missing something? |
|
Back to top |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1744 Location: Tirupur, India
|
|
|
|
This requirement is interesting, hope someone is able to come up with a solution.
I tried BPXWDYN and also chasing control blocks that have DD name information, but unable to find JCLLIB allocation dataset information. Only able to get datasets allocated via DD statement.
Curiousity grows.. :S |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
I thought it was frowned upon to double post in the same forum.
Even frowned upon accross multiple forums.
Am I missing something? |
Nope, you're not missing something.
Occasionally there is a question that doesn't cleanly fit in one part of the forum or another. Until these are more clear, i don't have a problem with the 2 entries. Especially when it is mentioned before double posting.
What we DO have a problem with is people who just post their question multiple times multiple places due to being inconsiderate. We (i) do tell people if they do not get an answer in a couple of days, they might post elsewhere also. |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1310 Location: Vilnius, Lithuania
|
|
|
|
Maybe simplistic reasoning, but why would this info be saved in control blocks when it's only needed at the time the JCL is read and converted? |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2583 Location: Silicon Valley
|
|
|
|
I do not have a control block solution.
From within the job, you should be able to extract the JCL that was submitted using the SDSF rexx interface. Just search that for your JCLLIB information. |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
The only cb's where JCLLIB is mentioned are : $JCT and IEFCNPRM.
Flags for allocation errors like dataset not found, could not allocate because of enqueue etc.
The only way to find out information about the JCLLIB statement is in a JES2 exit (exit 4 would be a candidate).
Or scan all jcl libraries for the JCLLIB statement and do what you want to do. |
|
Back to top |
|
|
Ed Goodman
Active Member
Joined: 08 Jun 2011 Posts: 556 Location: USA
|
|
|
|
This really sounds like an example of trying to answer a different question than was asked.
What is your actual final requirement? "To find the JCLLIB order of a bunch of jobs that have been run" or "Print the JCLLIB order of the currently running job" or something different.
The JCLLIB is in the JESJCL sysout, can you just read that from your SDSF rexx?
The statement that tells which library was used is in the JESYSMSG (IEFC001I). Can you read those?
What is it you really need to do? What question are you trying to answer. |
|
Back to top |
|
|
Steve Coalbran
New User
Joined: 01 Feb 2007 Posts: 89 Location: Stockholm, Sweden
|
|
|
|
I think I have missed the obvious.
I can do a textual scan of the JCL unless the JCLLIB is in an INCLUDE which sounds unlikely if not illegal... (check with JCL-Police!).
Would mean that the INCLUDE was in the System Proclib concatenations?!
Errrm, I don't think so?!
/S
forget I raised this!?
|
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Raised what . . . |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
from the JCL Reference manual on the INCLUDE statement:
Quote: |
INCLUDE groups cannot contain the following JCL statements:
JOB statements
PROC and PEND statements
JCLLIB statements
JES2 and JES3 statements and commands
DD * and DD DATA statements
Do not define procedures in an INCLUDE group. However, you can put EXEC statements that invoke procedures in an INCLUDE group. |
|
|
Back to top |
|
|
Steve Coalbran
New User
Joined: 01 Feb 2007 Posts: 89 Location: Stockholm, Sweden
|
|
|
|
RTFMd by my own petard ?!
don't ya just hate it when that happens? |
|
Back to top |
|
|
Steve Coalbran
New User
Joined: 01 Feb 2007 Posts: 89 Location: Stockholm, Sweden
|
|
|
|
Am I really still foruming at 7:15pm CET ?!
Crazy?!? Time for a refreshing beverage!!!
|
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Which does not require departing the forum . . .
One can see the influence of multiple adult beverages in some of the posts . . . |
|
Back to top |
|
|
|