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 

How to comment large number of lines at a time??

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
Maximus
Beginner


Joined: 17 Nov 2005
Posts: 21
Topics: 11

PostPosted: Fri Aug 08, 2008 8:21 pm    Post subject: How to comment large number of lines at a time?? Reply with quote

How to comment large number of lines at a time?? How to comment 15 lines at a time
Back to top
View user's profile Send private message
semigeezer
Supermod


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

PostPosted: Fri Aug 08, 2008 9:48 pm    Post subject: Reply with quote

Most people write small ISPF edit macros to do it.

Basically, either loop through lines and add comments where comments go, or add lines for those things that don't allow comments on the same line as code. It depends what you want to comment. Since this is in the JCL section, I assume you want to add comments to JCL which allows both, so it is your choice as to what you want to do.

The macros can add as much or as little information as you want. I've seen macros that compile code and add cross reference (where used) comments to the code. Or you might just write one that adds a prolog. Your needs, your choice.
_________________
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
Nic Clouston
Advanced


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

PostPosted: Sat Aug 09, 2008 3:44 am    Post subject: Reply with quote

you could:

1 - exclude ll lines that you do not want commented
2 - C '//' '//*' 1 all nx
3 - C ' ' '//*' 1 all nx

Line 2 will comment all JCL lines
Line 3 will comment all data lines that have a blank in column 1 - any other data lines will have to be righ-shifted 3 spaces before applying the change
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
Terry_Heinze
Supermod


Joined: 31 May 2004
Posts: 391
Topics: 4
Location: Richfield, MN, USA

PostPosted: Sat Aug 09, 2008 10:28 am    Post subject: Reply with quote

My method is to insert //* before the 1st line to be commented, shift all lines to be commented 3 positions to the right, then use a move and block overlay to accomplish commenting the block of statements. To undo the commented lines, it's a simple matter of shifting them 3 positions to the left. You DO have to be careful about truncating when shifting to the right though. Smile
_________________
....Terry
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 -> Job Control Language(JCL) 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