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
 

 

How to save expanded jcl's into one library

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: How to save expanded jcl's into one library
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

Senior Member


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

PostPosted: Thu Jul 27, 2017 9:38 pm    Post subject: Reply to: How to save expanded jcl's into one library
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: 8132
Location: East Dubuque, Illinois, USA

PostPosted: Thu Jul 27, 2017 10:16 pm    Post subject: Reply to: How to save expanded jcl's into one library
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    Post subject: Reply to: How to save expanded jcl's into one library
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10292
Location: italy

PostPosted: Thu Jul 27, 2017 10:29 pm    Post subject: Reply to: How to save expanded jcl's into one library
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    Post subject: Reply to: How to save expanded jcl's into one library
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: 674
Location: Pennsylvania

PostPosted: Thu Jul 27, 2017 11:07 pm    Post subject:
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

Senior Member


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

PostPosted: Thu Jul 27, 2017 11:37 pm    Post subject:
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

Senior Member


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

PostPosted: Fri Jul 28, 2017 12:00 am    Post subject: Reply to: How to save expanded jcl's into one library
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: 170
Location: Chennai

PostPosted: Fri Jul 28, 2017 7:17 am    Post subject: Reply to: How to save expanded jcl's into one library
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: 155
Location: Switzerland

PostPosted: Fri Jul 28, 2017 1:23 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10292
Location: italy

PostPosted: Fri Jul 28, 2017 9:08 pm    Post subject: Reply to: How to save expanded jcl's into one library
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    Post subject: How to save expanded jcl's into one library
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: 1846
Location: UK

PostPosted: Sat Jul 29, 2017 3:04 pm    Post subject:
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.    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 save SAY var loop. italo_pm CLIST & REXX 3 Sun Sep 04, 2016 3:06 am
No new posts how to find clist's or view library Andrew Hsia CLIST & REXX 4 Tue Jun 28, 2016 6:07 pm
No new posts EDIT END(SAVE) or CANCEL? Steve Coalbran TSO/ISPF 9 Sat Feb 06, 2016 7:11 pm
No new posts USS Shell script:Convert hex to binar... RSR2015 All Other Mainframe Topics 0 Fri Sep 18, 2015 2:00 am
No new posts Syntax to create new tableBASE library Sumeendar IBM Tools 1 Tue Sep 15, 2015 6:25 pm


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