| View previous topic :: View next topic |
| Author |
Message |
Maximus Beginner
Joined: 17 Nov 2005 Posts: 21 Topics: 11
|
Posted: Fri Aug 08, 2008 8:21 pm Post subject: How to comment large number of lines at a time?? |
|
|
| How to comment large number of lines at a time?? How to comment 15 lines at a time |
|
| Back to top |
|
 |
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Fri Aug 08, 2008 9:48 pm Post subject: |
|
|
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 |
|
 |
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Sat Aug 09, 2008 3:44 am Post subject: |
|
|
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 |
|
 |
Terry_Heinze Supermod
Joined: 31 May 2004 Posts: 391 Topics: 4 Location: Richfield, MN, USA
|
Posted: Sat Aug 09, 2008 10:28 am Post subject: |
|
|
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.  _________________ ....Terry |
|
| Back to top |
|
 |
|
|
|