Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

JCLLIB ORDER= into a REXX stem (anyone?)

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
dick scherrer

Site Director


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

PostPosted: Thu Oct 03, 2013 8:38 pm    Post subject: JCLLIB ORDER= into a REXX stem (anyone?)
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: 85
Location: Stockholm, Sweden

PostPosted: Thu Oct 10, 2013 1:35 pm    Post subject: Reply to: JCLLIB ORDER= into a REXX stem (anyone?)
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

Site Director


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

PostPosted: Thu Oct 10, 2013 7:12 pm    Post subject:
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: 645
Location: Pennsylvania

PostPosted: Thu Oct 10, 2013 8:02 pm    Post subject:
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: 1445
Location: Azeroth

PostPosted: Thu Oct 10, 2013 8:12 pm    Post subject:
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

Site Director


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

PostPosted: Thu Oct 10, 2013 9:52 pm    Post subject:
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

Active Member


Joined: 07 Feb 2009
Posts: 982
Location: Oostende, Belgium

PostPosted: Fri Oct 11, 2013 1:03 am    Post subject:
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

Senior Member


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

PostPosted: Fri Oct 11, 2013 2:27 am    Post subject: Reply to: JCLLIB ORDER= into a REXX stem (anyone?)
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: 2422
Location: Netherlands, Amstelveen

PostPosted: Fri Oct 11, 2013 11:25 am    Post subject:
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    Post subject:
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: 85
Location: Stockholm, Sweden

PostPosted: Fri Oct 11, 2013 9:43 pm    Post subject:
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

Site Director


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

PostPosted: Fri Oct 11, 2013 10:17 pm    Post subject:
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: 7908
Location: Bellevue, IA

PostPosted: Fri Oct 11, 2013 10:34 pm    Post subject:
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: 85
Location: Stockholm, Sweden

PostPosted: Fri Oct 11, 2013 10:44 pm    Post subject:
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: 85
Location: Stockholm, Sweden

PostPosted: Fri Oct 11, 2013 10:49 pm    Post subject:
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

Site Director


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

PostPosted: Sat Oct 12, 2013 12:22 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 6 Fri Nov 18, 2016 1:48 pm
This topic is locked: you cannot edit posts or make replies. Rexx to create GDG by scanning JJ result krish.deepu CLIST & REXX 5 Tue Oct 25, 2016 5:32 pm
No new posts Replace repeated JCL with looping REXX prino CLIST & REXX 3 Thu Oct 13, 2016 5:30 am
This topic is locked: you cannot edit posts or make replies. Need to code a Rexx PGM sundaram.naveen CLIST & REXX 18 Thu Oct 06, 2016 6:45 pm
No new posts Need Rexx Program to Load in to DB2 T... Hareesh Verma CLIST & REXX 22 Tue Sep 20, 2016 2:59 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us