ShawnStanford
Programmer
Hi all.
I'm in a Big Iron shop working with a JCL checker called 'JEM' (at least, that's the command line for it). It throws up a series of messages showing me what it didn't like about the JCL it's checking, including files it didn't find. Most of the time, I'm looking for a test version of a production file and, if it's not there, I want to create a test copy from the production file. So, I'd like to write a REXX macro that will grab these messages, check for a file name and write IDCAMS instructions for the create and repro.
So, is it possible to grab message lines from the editor? If so, how? I have the ISPF Edit/Edit Macros book from IBM and it wasn't helpful...
Here's a screen cap showing what I mean:
I'm in a Big Iron shop working with a JCL checker called 'JEM' (at least, that's the command line for it). It throws up a series of messages showing me what it didn't like about the JCL it's checking, including files it didn't find. Most of the time, I'm looking for a test version of a production file and, if it's not there, I want to create a test copy from the production file. So, I'd like to write a REXX macro that will grab these messages, check for a file name and write IDCAMS instructions for the create and repro.
So, is it possible to grab message lines from the editor? If so, how? I have the ISPF Edit/Edit Macros book from IBM and it wasn't helpful...
Here's a screen cap showing what I mean:
Code:
. . . . . . . . . . . . . . . . . . . . . . . . . . .
File Edit Edit_Settings Menu Utilities Compilers Test Help
———————————————————————————————————————————————————————————————————————————————
EDIT SSS049.JCL.LIBRARY(A710BX13) - 01.06 Columns 00001 00072
Command ===> Scroll ===> CSR
****** ***************************** Top of Data ******************************
==MSG> *** ERROR SUMMARY AND COUNTS *** JEM 6.2.4A 06/16/2005 10:45:29
==MSG> 31 ADVISORY LEVEL
==MSG> 2 WARNING LEVEL
==MSG> 30 ERROR LEVEL
==MSG> 63 TOTAL ISSUED 0 SUPPRESSED.
==MSG> THE HIGHEST SEVERITY CODE ENCOUNTERED WAS 08.
==MSG> LABEL SV MSG.NO. ERROR MESSAGE
==MSG> -------- -- -------- -------------------------------------------------
==MSG> .JAAA 8 DSS4050E - DATA SET NOT FOUND IN CATALOG
==MSG> .JAAA 0 DSS8900A - DSN = "VX.A710.C13.S01.VB5100.VCBRE.X "
==MSG> .JAAA 8 DSS4050E - DATA SET NOT FOUND IN CATALOG
==MSG> .JAAA 0 DSS8900A - DSN = "VX.A710.C13.S01.VB5000.VTAXDG.X "
==MSG> .JAAA 8 DSS4050E - DATA SET NOT FOUND IN CATALOG
==MSG> .JAAA 0 DSS8900A - DSN = "VX.A710.C13.S01.VH3320.VSMRF.X "
==MSG> .JAAA 8 DSS4050E - DATA SET NOT FOUND IN CATALOG
==MSG> .JAAA 0 DSS8900A - DSN = "VX.A.U13.V01.FA.VACDT "
==MSG> .JAAA 8 DSS4050E - DATA SET NOT FOUND IN CATALOG
==MSG> .JAAA 0 DSS8900A - DSN = "VX.A.D13.V01.VPBCTR.VBCTR "