IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to remove Line Numbers in COBOL?


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Thu Sep 13, 2007 4:01 pm
Reply with quote

Hi,

In my COBOL program i am having line nos on the right side.I gave NUM ON STD COB.,then the numbers are disappearing.but when i try to close the dataset and then reopen, again the numbers are coming....

Any C ALL command is there to get rid of this???

Thanks,
Arun
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Thu Sep 13, 2007 4:09 pm
Reply with quote

Hi !

Try NUMBER OFF.

Then delete all LineNumbers.

Use ShiftRight-Comand ore CangeCommand.

Regards, UmeySan
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Thu Sep 13, 2007 6:43 pm
Reply with quote

Hi,

You mean to say that I should delete all numbers manually.??..
Can u make it more clear????
Back to top
View user's profile Send private message
saidharrao
Warnings : 1

New User


Joined: 19 Feb 2005
Posts: 27
Location: hyderabad-ap-india

PostPosted: Thu Sep 13, 2007 7:52 pm
Reply with quote

Hi,
Is there any specific reason to delete the line numbers. It is highly inefficient and non standard way of programming. What ever you want to do, please do it between 1-72 l(Inclusive) lines of the cobol coding sheet. from 73 it is left to system which will replace iwth its own line numbers using configuration management faility.

If you still remove them, please try the following command after NUM OFF <enter>

C all 73 80 p'¬' ' '

But I am not sure if it places again if you use any explicit configuration management tool.

Cheers,
Back to top
View user's profile Send private message
Douglas Wilder

Active User


Joined: 28 Nov 2006
Posts: 305
Location: Deerfield IL

PostPosted: Thu Sep 13, 2007 8:54 pm
Reply with quote

For COBOL you should use "NUM ON COB" not "NUM ON STD" this will put the line numbers in 1-6 instead of 72-80. You should then code your COBOL in col 6-72, as COBOL is normally coded.
Back to top
View user's profile Send private message
logeswarank
Warnings : 1

New User


Joined: 15 Oct 2006
Posts: 22
Location: Chennai

PostPosted: Tue Sep 18, 2007 11:49 am
Reply with quote

Hi,

Try this command "NUM ON STD COB" it will show the contents 7-72 character's only.

It will help You.
Back to top
View user's profile Send private message
skkp2006

New User


Joined: 14 Jul 2006
Posts: 93
Location: Chennai,India

PostPosted: Tue Sep 18, 2007 1:51 pm
Reply with quote

Enter "Num on" followed by " UNNUM"....
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 691
Location: Earth

PostPosted: Tue Sep 18, 2007 2:11 pm
Reply with quote

Quote:
You mean to say that I should delete all numbers manually.??..
Can u make it more clear????


UmeySan has posted a method that addresses your requirement perfectly.
Do this in your edit session

Code:
==> NUMBER OFF
PRESS ENTER
==> C ALL P'======' 73 '      '
PRESS ENTER


I hope it is clear enough! icon_smile.gif
Back to top
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 631
Location: Wisconsin

PostPosted: Tue Sep 18, 2007 5:45 pm
Reply with quote

Execute the following commands

NUM ON
RENUM
UNNUM
NUM OFF


It may be overkill, but the num on/renum will ensure all lines have line numbers. UNNUM removes them all and num off ensures your edit profile for the dataset won't add numbers back in.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts COBOL sorting, with input GDG base COBOL Programming 7
No new posts Need help with ADABAS query (COBOL-AD... All Other Mainframe Topics 0
No new posts Replacing FILLER with FILLER<SeqNu... DFSORT/ICETOOL 2
No new posts Compile Sp Cobol base COBOL Programming 1
No new posts SQLCODE=-311 in Cobol SP-DB2. COBOL Programming 2
Search our Forums:

Back to Top