|
|
| Author |
Message |
raveendra_ibm Currently Banned New User
Joined: 07 Jan 2006 Posts: 45
|
|
|
|
Hi All,
I am doing code changes to an existing code i.e., I am adding a few lines of code to the existing one.
Now whenever I insert a line somewhere in the middle of the code the rest of the line numbers
get automatically incremented. I don't want this to happen.
Doing a 3.13 to the old and new programs should display only those lines of code that were added
by me, instead it shows all the lines where there is change in the line number.
I have tried AUTONUM OFF, etc but it did not work out.
Please help me...
Thanks and Regards,
Raveendra. |
|
| Back to top |
|
 |
References
|
Posted: Sat Apr 01, 2006 9:20 pm Post subject: Re: Block automatic increment of line numbers ! |
 |
|
|
 |
amitrath
New User
Joined: 30 Apr 2004 Posts: 29 Location: Indianapolis, US.
|
|
|
|
Hi Raveendra,
You have already used the right command - AUTONUM OFF.
It works at my machine. Can you tell us what happens when you try it? |
|
| Back to top |
|
 |
raveendra_ibm Currently Banned New User
Joined: 07 Jan 2006 Posts: 45
|
|
|
|
Hi Amit !
Thanks for your prompt reply !
Here is how it works on my machine even after AUTONUM OFF.
Existing Code :
| Code: |
00001200 MOVE A TO B.
00001300 ADD B TO D.
00001400 SUB 10 FROM D.
00001500 DISPLAY A.
00001600 DISPLAY B.
00001700 DISPLAY D. |
After Changes :
| Code: |
00001200 MOVE A TO B.
00001300 ADD B TO D.
00001400 ADD A TO D. -----> NEW LINE
00001500 SUB 10 FROM D.
00001600 DISPLAY A.
00001700 DISPLAY B.
00001800 DISPLAY D. |
The line numbers after the inserted line gets automatically incremented.
I wanted it this way :
| Code: |
00001200 MOVE A TO B.
00001300 ADD B TO D.
00001300 ADD A TO D. -----> NEW LINE
00001400 SUB 10 FROM D.
00001500 DISPLAY A.
00001600 DISPLAY B.
00001700 DISPLAY D. |
I was just wondering if we have any other command that I might have
used accidently thats resulting in AUTONUM OFF not working properly.
Please suggest.
Thanks and Regards,
Raveendra. |
|
| Back to top |
|
 |
iknow
Senior Member
Joined: 22 Aug 2005 Posts: 582 Location: Colarado, US
|
|
|
|
Hi Raveendra,
First set AUTONUM to OFF. Then try giving UNNUM. It will display the line number from 1,2,3...
In both the existing as well as new one give UNNUM and save those files.
Try comparing now and let us know the result from your side.
Please correct me if I am wrong. |
|
| Back to top |
|
 |
raveendra_ibm Currently Banned New User
Joined: 07 Jan 2006 Posts: 45
|
|
|
|
Thanks iKnow !!!
But unfortunately I cannot 'save' the previous version of the program, as they are run on production. So UNNUM and saving is not possible. They are just comparing the production version and our(after changes) version straight away.
Thanks and Regards,
Raveendra. |
|
| Back to top |
|
 |
|
|