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
 

 

Rexx to create GDG by scanning JJ result

 
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
krish.deepu

New User


Joined: 27 May 2014
Posts: 2
Location: India

PostPosted: Tue Oct 25, 2016 5:32 pm    Post subject: Rexx to create GDG by scanning JJ result
Reply with quote

Hi,

Requirement:
Develop a REXX edit macro to create GDGs.

I've a JCL and PROC. This PROC will be called by different JCLs in various regions. I would like to create an edit macro which can create the required GDGs. This macro can be invoked from JCL.

One thought (which might not be ideal) which I got is, that when we invoke the JJ tool, we would get the GDG base missing error. WHy this approach, coz - The PROC will have HLQ and some part of the GDG name passed as symbolic parameter from JCL (since it changes for different regions).

Is there any way I can trap those message and then parse those for GDG base and then create it? If yes, could you please let me know how can it be acheived. Or else a better solution.?

Thanks !
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Tue Oct 25, 2016 5:43 pm    Post subject: Reply to: Rexx to create GDG by scanning JJ result
Reply with quote

look at the JJ documentation to see if it can interface REXX

anyway
when an application is deployed the operations group should have done the work for which they are getting paid ...
READ the docs
take care of ALL the prerequisites



creating ( list not exhaustive )

SMS related things
HLQ aliases,
GDG bases
...
...
TAPE Library related
...

also, all the world might be using JJ,
but only the operations group might be able to
define things which mangle the catalogs

defining a GDG base is not something that can be automated
( number of generations might vary )
Back to top
View user's profile Send private message
Pedro

Senior Member


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

PostPosted: Tue Oct 25, 2016 10:46 pm    Post subject: Reply to: Rexx to create GDG by scanning JJ result
Reply with quote

I did not get a good feel for what the whole scenario / environment is.

But it seems like something is executing in a batch job. You should be able to change the JCL so that the failing messages go to a SYSPRINT file and then add another step in the job to examine the SYSPRINT file looking for those errors, in order to correct and retry.

Show us what errors you are getting.

If you can modify the JJ program, maybe it is better to add a LISTCAT command to verify if the GDG exists. Use the OUTTRAP function to capture the command response.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Tue Oct 25, 2016 11:09 pm    Post subject: Reply to: Rexx to create GDG by scanning JJ result
Reply with quote

Quote:
If you can modify the JJ program


JJ is a jcl checker
Back to top
View user's profile Send private message
krish.deepu

New User


Joined: 27 May 2014
Posts: 2
Location: India

PostPosted: Wed Oct 26, 2016 11:06 am    Post subject: Re: Reply to: Rexx to create GDG by scanning JJ result
Reply with quote

Pedro wrote:
I did not get a good feel for what the whole scenario / environment is.

But it seems like something is executing in a batch job. You should be able to change the JCL so that the failing messages go to a SYSPRINT file and then add another step in the job to examine the SYSPRINT file looking for those errors, in order to correct and retry.

Show us what errors you are getting.

If you can modify the JJ program, maybe it is better to add a LISTCAT command to verify if the GDG exists. Use the OUTTRAP function to capture the command response.


Hi,

I'll just explain the background.

JJ is a tool which we use here to validate the JCL for syntax, check for DS & GDG base existence etc. Its executed as an edit macro and is in-fact a third party tool, which we don't maintain. So I may not be able to modify it.

When I execute this JJ in a JCL, what I get is some inline comment message lines after each sentence which fails the validation. This includes the validation of GDG bases as well. I'm trying to see If there is any way to capture those inline messages and parse it further to get the GDG base name and then create it.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Wed Oct 26, 2016 12:54 pm    Post subject: Reply to: Rexx to create GDG by scanning JJ result
Reply with quote

the topic has been discussed many times for many jcl checkers
with negative answers .
topic locked
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 What is the command to check MODE of ... rohanthengal CLIST & REXX 6 Fri Nov 18, 2016 1:48 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 How can we create a flat file in JAVA... rakesh.v18 Java & MQSeries 7 Fri Sep 23, 2016 10:46 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