View previous topic :: View next topic |
Author |
Message |
naveen Beginner

Joined: 03 Dec 2002 Posts: 90 Topics: 31
|
Posted: Fri Mar 21, 2003 1:10 am Post subject: removing unwanted line numbers |
|
|
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 |
|
 |
satjag Beginner

Joined: 19 Dec 2002 Posts: 19 Topics: 2
|
Posted: Fri Mar 21, 2003 2:05 am Post subject: |
|
|
Hello Naveen,
Type UNNUM in command line . This will blank out the sequence numbers. _________________ Regards,
satjag |
|
Back to top |
|
 |
Grant Beginner
Joined: 02 Dec 2002 Posts: 45 Topics: 1 Location: Sydney, NSW, Australia
|
Posted: Fri Mar 21, 2003 2:06 am Post subject: |
|
|
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
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Fri Mar 21, 2003 8:06 am Post subject: |
|
|
Naveen,
You can also try typing NUM ON STD COB which will eliminate the line numbers
Hope this helps...
cheers
kolusu |
|
Back to top |
|
 |
|
|