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

How to mask the data by using the sort utility


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

New User


Joined: 07 Sep 2010
Posts: 22
Location: hyderabad

PostPosted: Mon Apr 09, 2012 7:35 pm
Reply with quote

Hi all,
i have a file with 300 record length.from Position 1 to 10 i have numeric values in that file.The first five bytes are having the different data and the last 5 bytes are having the values zeros(0).
Here the requirement is to mask the positions from 6 to 10(Zero values).
The mask should be with spaces.
Please let me know the way to achieve this using the SORT utility
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Apr 09, 2012 8:44 pm
Reply with quote

Hello,

Are you asking how to force spaces into positions 6-10 in every record?

If yes, look at OVERLAY.
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: Mon Apr 09, 2012 10:50 pm
Reply with quote

somapradeep1,

If you want to overlay 6-10 in every record with blanks, you can use these DFSORT statements:

Code:

   OPTION COPY
   INREC OVERLAY=(6:5X)


If you want to do something else, you need to explain more clearly what you want to do with an example of your input records and expected output records.

If you're not familiar with DFSORT and DFSORT's ICETOOL, I'd suggest reading through "z/OS DFSORT: Getting Started". It's an excellent tutorial, with lots of examples, that will show you how to use DFSORT, DFSORT's ICETOOL and DFSORT Symbols. You can access it online, along with all of the other DFSORT books, from:

www.ibm.com/support/docview.wss?rs=114&uid=isg3T7000080
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 Store the data for fixed length COBOL Programming 1
No new posts Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts JCL sort card - get first day and las... JCL & VSAM 9
Search our Forums:

Back to Top