Topic
  • 1 reply
  • Latest Post - ‏2013-08-06T12:20:34Z by walexand
b8factor
b8factor
16 Posts

Pinned topic JCL Block Comment

‏2013-08-02T19:02:47Z |

Is there a method to do BLOCK commenting on a JCL member using RDz?

Currently I add //* to every line to be commented. I was curious if there was an easier way?

-Billy

  • walexand
    walexand
    138 Posts

    Re: JCL Block Comment

    ‏2013-08-06T12:20:34Z  

    In RDz v9.0 we introduced a JCL Editor. One capability that came along with this editor is Toggle Block Selection Mode (Alt+Shift+A).  One example how you could use this feature to comment out every line in a step of a job would be to place the cursor in cloumn 3 on the EXEC statement for the step you wish to comment out.  Press Alt+Shift+A to enter Block Selection Mode.  Drag the cursor down to the last statement of the step. Press * to insert an asterisk in column 3 for all those lines at once. Press Alt+Shift+A to toggle out of Block Selection Mode.  Another option would have been to start in column 1, and once in block selection mode, select the first two characters of each line, and type //*.

    If you cannot remember the key sequence there is also a button in the toolbar that can be used.

    Here is a demo for the COBOL Editor and about halfway through it you will see examples of using the Block Selection Mode to create a large block cursor for inserting charactersinto the same position on many lines all at once. http://publib.boulder.ibm.com/infocenter/ieduasst/rtnv1r0/topic/com.ibm.iea.rdz/rdz/8.0.1z/EnterpriseAppDev/RDz_v801_COBOLeditor/rdz_v801_coboleditor_viewlet_swf.html?dmuid=20101102132539805731