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

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: 2546
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: 8696
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

Superior Member


Joined: 14 Mar 2007
Posts: 10872
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: 792
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: 3049
Location: NYC,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: 2546
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 Member


Joined: 01 Sep 2015
Posts: 712
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

Superior Member


Joined: 14 Mar 2007
Posts: 10872
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: 2455
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

 


Similar Topics
Topic Forum Replies
No new posts Calling an Open C library function in... CICS 1
No new posts OUTFIL with SAVE option DFSORT/ICETOOL 7
No new posts Submit multiple jobs from a library t... JCL & VSAM 14
No new posts Duplicate several members of/in one l... JCL & VSAM 7
No new posts Issue after ISPF copy to Linklist Lib... TSO/ISPF 1
Search our Forums:

Back to Top