MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Rexx code needed to do certain comment out of JCL

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
prasanth_thavva
Beginner


Joined: 14 May 2006
Posts: 40
Topics: 18

PostPosted: Thu Dec 06, 2007 3:59 am    Post subject: Rexx code needed to do certain comment out of JCL Reply with quote

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
View user's profile Send private message Send e-mail
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Thu Dec 06, 2007 5:28 pm    Post subject: Reply with quote

no - possibly could give you some hints though
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Thu Dec 06, 2007 7:11 pm    Post subject: Reply with quote

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

  1. Find first //trash 1
  2. set a label .a
  3. find //uuc00xx 1
  4. set a different label .b
  5. then either loop through the lines between the labels getting and updating each line or do a C ALL // 1 .a .b.
  6. 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
View user's profile Send private message Visit poster's website
prasanth_thavva
Beginner


Joined: 14 May 2006
Posts: 40
Topics: 18

PostPosted: Fri Dec 07, 2007 10:39 am    Post subject: Reply with quote

Thanks Semi,
_________________
Thanks&Regards
Prasanth Thavva
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group