View previous topic :: View next topic |
Author |
Message |
prasanth_thavva Beginner

Joined: 14 May 2006 Posts: 40 Topics: 18
|
Posted: Thu Dec 06, 2007 3:59 am Post subject: Rexx code needed to do certain comment out of JCL |
|
|
HI,
Could you please provide me the rexx code which will do comment certain rows in JCL from step starts with //trash and upto //uuc00xx in all members. _________________ Thanks&Regards
Prasanth Thavva |
|
Back to top |
|
 |
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Thu Dec 06, 2007 5:28 pm Post subject: |
|
|
no - possibly could give you some hints though _________________ Utility and Program control cards are NOT, repeat NOT, JCL. |
|
Back to top |
|
 |
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Thu Dec 06, 2007 7:11 pm Post subject: |
|
|
no one is going to write the code you are presumably being paid to write, but the idea here is to use a macro with a sequence like this in each member...
- Find first //trash 1
- set a label .a
- find //uuc00xx 1
- set a different label .b
- then either loop through the lines between the labels getting and updating each line or do a C ALL // 1 .a .b.
- end out of the member
If there is any inline data or lines that are already comments, it is a little more complicated.
Once you have that macro, use one of the many macros floating around to invoke a macro on all members within a data set. There is one in the ISPF Edit and Edit Macros book. _________________ New members are encouraged to read the How To Ask Questions The Smart Way FAQ at http://www.catb.org/~esr/faqs/smart-questions.html. |
|
Back to top |
|
 |
prasanth_thavva Beginner

Joined: 14 May 2006 Posts: 40 Topics: 18
|
Posted: Fri Dec 07, 2007 10:39 am Post subject: |
|
|
Thanks Semi, _________________ Thanks&Regards
Prasanth Thavva |
|
Back to top |
|
 |
|
|