|
View previous topic :: View next topic
|
| Author |
Message |
raak
Active User

Joined: 23 May 2006 Posts: 166 Location: chennai
|
|
|
|
When i open a PDS member ( it contains a program ), the first 6 columns are occupied by sequence numbers. I want to delete those sequence numbers. I know it can be done by using the keyword UNNUM.
But my problem is, as it is a program which is continously being changed ( as part of enhancements ), some tags are given at the 1-6 columns of the lines which has been changed.
I mean some of the lines in the program has some tags attached to it in columns 1-6 for identification.
So when i use UNNUM i lose these tags also, which i dont want to happen.
Is there any way by which i can delete only the sequence numbers and not the Tags?? |
|
| Back to top |
|
 |
agkshirsagar
Active Member

Joined: 27 Feb 2007 Posts: 691 Location: Earth
|
|
|
|
use c all p'######' 1 ' '
# signifies numbers, so only number will get repalced |
|
| Back to top |
|
 |
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
| agkshirsagar wrote: |
use c all p'######' 1 ' '
# signifies numbers, so only number will get repalced |
but what if some of the "tags" have numbers in them? |
|
| Back to top |
|
 |
agkshirsagar
Active Member

Joined: 27 Feb 2007 Posts: 691 Location: Earth
|
|
|
|
| The command will replace numbers if there are consecutive 6 nueric digits, otherwise not. |
|
| Back to top |
|
 |
raak
Active User

Joined: 23 May 2006 Posts: 166 Location: chennai
|
|
|
|
William,
If there is an alphabet in any of the columns from 1-6, it wont be replaced by the command given above.
Only if all the positions are numbers, it will be replaced.
Just tried it out and found  |
|
| Back to top |
|
 |
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
| Thank you Abhijit and raak, it is always nice to learn something.... |
|
| Back to top |
|
 |
|
|