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

Rexx to create GDG by scanning JJ result


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

New User


Joined: 27 May 2014
Posts: 4
Location: India

PostPosted: Tue Oct 25, 2016 5:32 pm
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

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Tue Oct 25, 2016 5:43 pm
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

Global Moderator


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

PostPosted: Tue Oct 25, 2016 10:46 pm
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

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Tue Oct 25, 2016 11:09 pm
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: 4
Location: India

PostPosted: Wed Oct 26, 2016 11:06 am
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

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Wed Oct 26, 2016 12:54 pm
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. View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
Search our Forums:

Back to Top