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

Emptying a Column in a VSAM file


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Prasanthhere

Active User


Joined: 03 Aug 2005
Posts: 306

PostPosted: Wed Aug 23, 2006 4:01 pm
Reply with quote

I am having a vsam file and corresponding column say 5 or 6 columns are having values . I want to make all the records in that corresponding colums to space..

Can we do that with help of a sort utility

Thanks in advance
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Wed Aug 23, 2006 8:12 pm
Reply with quote

Yes. You can copy the VSAM file to another file and put spaces wherever you want them. For example, assuming your VSAM data set has fixed length records and you want to blank out data columns 11-15 and 21-25, you can use these DFSORT control statements:

Code:

   OPTION COPY
   RECORD TYPE=F
   INREC OVERLAY=(11:5X,21:5X)
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top