Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Deleting the sequence number from the first 6 columns

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: Deleting the sequence number from the first 6 columns
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: 686
Location: Earth

PostPosted: Thu Mar 01, 2007 4:28 pm    Post subject:
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: 3158
Location: Tucson AZ

PostPosted: Thu Mar 01, 2007 5:50 pm    Post subject:
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: 686
Location: Earth

PostPosted: Thu Mar 01, 2007 6:14 pm    Post subject:
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    Post subject:
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: 3158
Location: Tucson AZ

PostPosted: Thu Mar 01, 2007 6:50 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts what is meaning of the number in dcl Martylin PL/I & Assembler 2 Thu Mar 09, 2017 7:18 am
No new posts Extract set of records matching on ac... bhaskar_kanteti DFSORT/ICETOOL 3 Mon Mar 06, 2017 7:19 am
No new posts GDG version number PANDU1 JCL & VSAM 4 Sat Mar 04, 2017 8:28 pm
This topic is locked: you cannot edit posts or make replies. Db2 SQL query to convert rows into co... subratarec DB2 5 Thu Nov 17, 2016 4:51 pm
No new posts Comparing Decimal and CHAR columns rakesh17684 DB2 7 Thu Oct 20, 2016 2:33 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us