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

JCLLIB ORDER= into a REXX stem (anyone?)


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
dick scherrer

Moderator Emeritus


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

PostPosted: Thu Oct 03, 2013 8:38 pm
Reply with quote

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
View user's profile Send private message
Steve Coalbran

New User


Joined: 01 Feb 2007
Posts: 89
Location: Stockholm, Sweden

PostPosted: Thu Oct 10, 2013 1:35 pm
Reply with quote

Thanks Dick!
Now I see the repost technique!
Cut&Paste!?
Derrrr!icon_rolleyes.gif
/S
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: Thu Oct 10, 2013 7:12 pm
Reply with quote

You're welcome icon_smile.gif

Yup, copy&paste is the only way i know . . .

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

Active Member


Joined: 01 Dec 2006
Posts: 792
Location: Pennsylvania

PostPosted: Thu Oct 10, 2013 8:02 pm
Reply with quote

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
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Thu Oct 10, 2013 8:12 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Thu Oct 10, 2013 9:52 pm
Reply with quote

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
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1306
Location: Vilnius, Lithuania

PostPosted: Fri Oct 11, 2013 1:03 am
Reply with quote

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
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Fri Oct 11, 2013 2:27 am
Reply with quote

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
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Fri Oct 11, 2013 11:25 am
Reply with quote

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
View user's profile Send private message
Ed Goodman

Active Member


Joined: 08 Jun 2011
Posts: 556
Location: USA

PostPosted: Fri Oct 11, 2013 7:08 pm
Reply with quote

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
View user's profile Send private message
Steve Coalbran

New User


Joined: 01 Feb 2007
Posts: 89
Location: Stockholm, Sweden

PostPosted: Fri Oct 11, 2013 9:43 pm
Reply with quote

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?!

icon_rolleyes.gif /S
forget I raised this!?

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: Fri Oct 11, 2013 10:17 pm
Reply with quote

Raised what . . . icon_cool.gif
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: Fri Oct 11, 2013 10:34 pm
Reply with quote

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
View user's profile Send private message
Steve Coalbran

New User


Joined: 01 Feb 2007
Posts: 89
Location: Stockholm, Sweden

PostPosted: Fri Oct 11, 2013 10:44 pm
Reply with quote

RTFMd by my own petard ?!
icon_smile.gif don't ya just hate it when that happens?
Back to top
View user's profile Send private message
Steve Coalbran

New User


Joined: 01 Feb 2007
Posts: 89
Location: Stockholm, Sweden

PostPosted: Fri Oct 11, 2013 10:49 pm
Reply with quote

Am I really still foruming at 7:15pm CET ?!
Crazy?!? Time for a refreshing beverage!!!
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: Sat Oct 12, 2013 12:22 am
Reply with quote

Which does not require departing the forum . . . icon_wink.gif

One can see the influence of multiple adult beverages in some of the posts . . .
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top