View previous topic :: View next topic
|
Author |
Message |
jmreddymca Warnings : 1 New User
Joined: 14 Oct 2007 Posts: 29 Location: Bangalore
|
|
|
|
Hi
I have a requirement like below;
My file length is 80. From position 20 to 30. It has different customer names. I want to mask with 'AAAAA' from position 20 to 30. I don't want to display customer names in the output filed. Using SORT how can we do this. Could you please help me on this.
Thanks
JMR |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Read about OVERLAY. |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
position 20-30 is 11 bytes, 'AAAAA' is only 5 bytes ?
Exactly what do you want in position 20-30 ? is it 'AAAAA' plus 6 spaces ?
Gerry |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
JMR,
If you want 11 'A's in 20-30, you can use these DFSORT control statements:
Code: |
OPTION COPY
INREC OVERLAY=(20:11C'A')
|
If you want 5 'A's followed by 6 spaces, you can use these DFSORT control statements:
Code: |
OPTION COPY
INREC OVERLAY=(20:5C'A',6X)
|
If you want something else, say exactly what you want.
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 |
|
|
jmreddymca Warnings : 1 New User
Joined: 14 Oct 2007 Posts: 29 Location: Bangalore
|
|
|
|
Thanks a lot to all your support. Above Frank's code is working fine. |
|
Back to top |
|
|
|