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

Deleting the sequence number from the first 6 columns


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

Active User


Joined: 23 May 2006
Posts: 166
Location: chennai

PostPosted: Thu Mar 01, 2007 3:37 pm
Reply with quote

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
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 691
Location: Earth

PostPosted: Thu Mar 01, 2007 4:28 pm
Reply with quote

use c all p'######' 1 ' '

# signifies numbers, so only number will get repalced
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Thu Mar 01, 2007 5:50 pm
Reply with quote

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
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 691
Location: Earth

PostPosted: Thu Mar 01, 2007 6:14 pm
Reply with quote

The command will replace numbers if there are consecutive 6 nueric digits, otherwise not.
Back to top
View user's profile Send private message
raak

Active User


Joined: 23 May 2006
Posts: 166
Location: chennai

PostPosted: Thu Mar 01, 2007 6:46 pm
Reply with quote

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 icon_smile.gif
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Thu Mar 01, 2007 6:50 pm
Reply with quote

Thank you Abhijit and raak, it is always nice to learn something....
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 Pulling a fixed number of records fro... DB2 2
No new posts Substring number between 2 characters... DFSORT/ICETOOL 2
No new posts Generate random number from range of ... COBOL Programming 3
No new posts Remote Unload of CLOB Columns DB2 6
No new posts Increase the number of columns in the... IBM Tools 3
Search our Forums:

Back to Top