MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

removing unwanted line numbers

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
naveen
Beginner


Joined: 03 Dec 2002
Posts: 90
Topics: 31

PostPosted: Fri Mar 21, 2003 1:10 am    Post subject: removing unwanted line numbers Reply with quote

I WANT TO REPLACE DATA IN COLUMN 1 TO 6 WITH SPACES. HOW TO DO THIS?

Code:
000010 IDENTIFICATION DIVISION.
000020 PROGRAM-ID.  MYPROGID. 
000030     COPY MYCPBOOK.     


I SIMPLY WANT TO REMOVE THESE UNWANTED LINE NUMBERS APPEARING IN COLUMN 1 TO 6 IN COBOL SOURCE PROGRAM.
Back to top
View user's profile Send private message Send e-mail
satjag
Beginner


Joined: 19 Dec 2002
Posts: 19
Topics: 2

PostPosted: Fri Mar 21, 2003 2:05 am    Post subject: Reply with quote

Hello Naveen,

Type UNNUM in command line . This will blank out the sequence numbers.
_________________
Regards,
satjag
Back to top
View user's profile Send private message
Grant
Beginner


Joined: 02 Dec 2002
Posts: 45
Topics: 1
Location: Sydney, NSW, Australia

PostPosted: Fri Mar 21, 2003 2:06 am    Post subject: Reply with quote

You can use a picture string and specify a column range. The following command will change any character in columns 1 to 6 with a blank
Code:

c p'=' ' ' 1 6 all

For a full list of picture strings, press your help key while editing a file.
Here are some other picture strings that you can use:
[code:1:f658a69a3e]
A picture string is a quoted string that is preceded or followed by the
letter "P". It can contain blanks, alphabetic and numeric characters
which represent themselves, or any of the special characters listed
below, each of which represents a class of characters.
= any character . invalid characters
@ alphabetic characters - non-numeric characters
# numeric characters < lower case alphabetics
$ special characters > upper case alphabetics
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Fri Mar 21, 2003 8:06 am    Post subject: Reply with quote

Naveen,

You can also try typing NUM ON STD COB which will eliminate the line numbers

Hope this helps...

cheers

kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group