If you are a COBOL developer/maintain COBOL code, adding new code is often a hassle. Line numbers are used by Code Management software such as ChangeMan/Endevor to handle code retrofitting and if they are incorrect, your code will end up giving you unexpected results. This is a handy tool that I have been using for more than a couple of years now – RNUM.
This utility can be used in 2 different ways – (1) Auto increment & add line numbers for a given set of marked lines of code or (2) be used to mark a set of lines with a given fixtag. The usage of the tool is:
rnum strt <strt-lbl> <end-lbl> <incr>
strt – starting value/fix tag to add
<strt-lbl> – starting label. Optional, Defaults to first line
<end-lbl> – ending lable. Optional, Defaults to last line
<incr> – Line number increment. Optional, Defaults to 100
The code is well commented and released under GPLv3. (What this means is that the license gives you the freedom to use the software for any purpose, to modify it in anyway you wish, and to share it (including mods) with anybody you want provided you follow certain rules as explained here)
Download the code using the link below (zipped text file) and upload the code to your mainframe (via FTP/IND$FILE)
Quickly renumber code or add fix tags with this REXX utility
|Date:||September 12, 2014|
If you find any bugs or wish to request modifications to this utility, drop me a note in the comments below. Feedback is always welcome. Please spend a minute to read our disclaimer before using/downloading the application.