IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search Log in to check your private messages Log in
 

How to save expanded jcl's into one library


IBM Mainframe Forums -> CLIST & REXX
Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic :: View next topic  
Author Message
krishna417

New User


Joined: 25 Jul 2017
Posts: 4
Location: India

PostPosted: Thu Jul 27, 2017 2:45 pm
Reply with quote

Can any one tell me how to save expanded JCL's (more than 1) from production library into Test library? This will save lots of time if we are searching with entire file name in the JCL's.

Thanks,
Krishna
Back to top
View user's profile Send private message
Pedro

Global Moderator


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

PostPosted: Thu Jul 27, 2017 9:38 pm
Reply with quote

Please explain how you expand the JCL. Where is the production JCL?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Thu Jul 27, 2017 10:16 pm
Reply with quote

Quote:
This will save lots of time if we are searching with entire file name in the JCL's.
Since ISPF allows you generate a batch job and add multiple data sets to your search, exactly how are you saving time by expanding JCL? Especially since there are resources required to expand the JCL.

The question is so vague as to be unanswerable as posted. As asked, what is "expanded JCL"? If you're talking about JCl expanded by a source code management facility, the product's utilities should include a copy function that would serve your purpose. If you're talking about JCL expanded by the system when submitted, it is a BAD IDEA to use this -- because if someone changes the INCLUDE / PROCLIB statements or the statements in the INCLUDE or PROCLIB members, your test system would not be able to use the updated JCL without recapturing the expanded JCL somehow.
Back to top
View user's profile Send private message
krishna417

New User


Joined: 25 Jul 2017
Posts: 4
Location: India

PostPosted: Thu Jul 27, 2017 10:22 pm
Reply with quote

JJSCAN will expand the JCL and I want that JCL will be saved. This should happen for all the JCL members in the library

Thanks
Krishna
Back to top
View user's profile Send private message
enrico-sorichetti

Senior Member


Joined: 14 Mar 2007
Posts: 10697
Location: italy

PostPosted: Thu Jul 27, 2017 10:29 pm
Reply with quote

the issue of in house processing a <ANY_JCL_CHECKER> expanded ( procedures an symbols resolved ) jcl has been discussed too many times
and the general opinion is that it cannot be done
( just reporting a fact - what is the general opnion )
Back to top
View user's profile Send private message
krishna417

New User


Joined: 25 Jul 2017
Posts: 4
Location: India

PostPosted: Thu Jul 27, 2017 10:50 pm
Reply with quote

The reason why i have posted this is

" I need to search few PS data sets in all the JCL libraries and all JCL's is having PROC's with symbolic parameters. It is little bit hard to find out and I thought there might be REXX routines or some utilities that expands PROC's in JCL's."



In my previous project, we used PRO and CA7 to search the data sets in the JCL's where ever it is being used.
Back to top
View user's profile Send private message
daveporcelan

Active Member


Joined: 01 Dec 2006
Posts: 746
Location: Pennsylvania

PostPosted: Thu Jul 27, 2017 11:07 pm
Reply with quote

I do not know about jjscan, but we have successful expanded large volumes of jcl using a product called XREFPLUS by SEA.

It does take some effort however.

You have to think outside of the box a bit. It can be done.
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 2508
Location: NY,USA

PostPosted: Thu Jul 27, 2017 11:37 pm
Reply with quote

why don't you check last 2 or 3 qualifiers to narrow down the search? Usually symbolics are used at the first 1/2/3 qualifiers.
Back to top
View user's profile Send private message
Pedro

Global Moderator


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

PostPosted: Fri Jul 28, 2017 12:00 am
Reply with quote

Quote:
JJSCAN will expand the JCL and I want that JCL will be saved

It is not clear where you are after 'expand the JCL'. On the chance that the JJSCAN process ends in the ISPF editor, you can write an editor macro that copies the editor session to another dataset. And assign a PFkey to invoke the new edit macro.

A totally different approach is to use the SDSF rexx api to examine completed jobs and save the original JCL to a data set.
Back to top
View user's profile Send private message
magesh23586

Active User


Joined: 06 Jul 2009
Posts: 213
Location: Chennai

PostPosted: Fri Jul 28, 2017 7:17 am
Reply with quote

krishna417,

What is the product you are using to expand the jcl?

Once you issue JJSCAN, you may find the product name in the first or second line of the expaned jcl.
Back to top
View user's profile Send private message
Willy Jensen

Active User


Joined: 01 Sep 2015
Posts: 397
Location: Denmark

PostPosted: Fri Jul 28, 2017 1:23 pm
Reply with quote

As I recall the JJSCAN command, it makes NOTE lines in the displayed data. All NOTE lines can be changed to data lines in one go by the linecommand MD99999 in line 1 (MD = Make Data). Then the data can be saved by the CREATE edit command.
The CREATE can be packaged in an edit macro, unfortunately I couldn't see a edit macro command to change those NOTE lines.
Back to top
View user's profile Send private message
enrico-sorichetti

Senior Member


Joined: 14 Mar 2007
Posts: 10697
Location: italy

PostPosted: Fri Jul 28, 2017 9:08 pm
Reply with quote

that behaviour ( NOTE LINES ) is common to most jcl checkers
that' the reason the TS requirement cannot be satisfied

time to lock the topic
question asked and answered ( even if with unsatisfactory replies ) too many times
Back to top
View user's profile Send private message
krishna417

New User


Joined: 25 Jul 2017
Posts: 4
Location: India

PostPosted: Sat Jul 29, 2017 12:51 pm
Reply with quote

Hi Magesh,

we are using PRO JCL product

Regards
Krishna
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2432
Location: Hampshire, UK

PostPosted: Sat Jul 29, 2017 3:04 pm
Reply with quote

Run your JJSCAN in batch. Refer to the documentation AND your tech support.

Now locking.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies. View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 

Search our Forum:

Similar Topics
Topic Forum Replies
No new posts Determine what library member is in, ... JCL & VSAM 9
No new posts Dynamically adding CLIST Library to e... TSO/ISPF 12
This topic is locked: you cannot edit posts or make replies. Unable to allocate Message Library in... CLIST & REXX 13
No new posts Access file which has DSNTYPE=LIBRARY JCL & VSAM 17
No new posts Changeman: add library name for stati... Compuware & Other Tools 2

Back to Top