View previous topic :: View next topic
|
Author |
Message |
somapradeep1
New User
Joined: 07 Sep 2010 Posts: 22 Location: hyderabad
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Are you asking how to force spaces into positions 6-10 in every record?
If yes, look at OVERLAY. |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
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 |
|
|
|