View previous topic :: View next topic
|
Author |
Message |
Shiva Reddy Munagala
New User
Joined: 26 May 2014 Posts: 2 Location: India
|
|
|
|
Hello,
I'm new to Rexx and this is my first post,
Could any of you guide me to write to file the "==>MSG" lines that we get after JEM command in a JCL i would be very glad.
My intention is to clear all the File Catalog Error that i get, if this is successful i will enhance to clear also GDG errors, my current algorithm is below,
1. Write jem errors to a temp file
2. Find first Catlog error using string search, Take file name, Queue to JCL for delete list, Delete all the lines till that line
3. Repeat Step 2 untill no more catlog errors.
4. Submit JCL which has the list that needs to be deleted.
I have read a material which helped me to have some basic knowledge on the file handling through Rexx. |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2546 Location: Silicon Valley
|
|
|
|
Show us what you tried and what problems you have encountered. |
|
Back to top |
|
|
jerryte
Active User
Joined: 29 Oct 2010 Posts: 202 Location: Toronto, ON, Canada
|
|
|
|
I am not sure this is possible. The MSG> line is for display purpose and is not part of the actual data. If it were possible I would be curious to know how
Try using the JSCAN command since this will create a temporary dataset. JobScan also has an ISPF feature to to jcl verification. |
|
Back to top |
|
|
Shiva Reddy Munagala
New User
Joined: 26 May 2014 Posts: 2 Location: India
|
|
|
|
Thanks for your response, I will try with JSCAN and will get back to u guys. |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2546 Location: Silicon Valley
|
|
|
|
It is not clear how many MSG lines are there. If it is contained within the displayed data, you can use ZSCREENI to get an image of the current screen. |
|
Back to top |
|
|
Steve Coalbran
New User
Joined: 01 Feb 2007 Posts: 89 Location: Stockholm, Sweden
|
|
|
|
2 thoughts (perhaps?):- MD999999 and COMPARE * to see which were MSG-(/INFO-/NOTE-)LINEs.
You can run the MakeData inside a Macro
- PANEXIT/*REXX section quizing ZDATA for ==MSG> lines (has limitations)
|
|
Back to top |
|
|
Mickeydusaor
Active User
Joined: 24 May 2006 Posts: 258 Location: Salem, Oregon
|
|
|
|
ADDRESS 'ISREDIT'
"LOCATE FIRST NOTELINE"
IF RC > 0
THEN DO
"LOCATE FIRST MSGLINE"
"LOCATE NEXT MSGLINE"
"LOCATE NEXT MSGLINE"
"LOCATE NEXT MSGLINE"
END
This is how I have done this in the past. this example I was only looking for the first 4 msglines. |
|
Back to top |
|
|
|