Author: krish.deepu
Subject: Re: Reply to: Rexx to create GDG by scanning JJ result
Posted: Wed Oct 26, 2016 11:06 am (GMT 5.5)
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.
Subject: Re: Reply to: Rexx to create GDG by scanning JJ result
Posted: Wed Oct 26, 2016 11:06 am (GMT 5.5)
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.