View previous topic :: View next topic
|
Author |
Message |
Shah
New User
Joined: 05 Sep 2006 Posts: 18
|
|
|
|
I have one flat file, file contains one packed decimal field and I want to convert it into zoned decimal by using sort utility.
Could anyone help me regarding this.
Thanks
Shah |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Shah wrote: |
I have one flat file, file contains one packed decimal field and I want to convert it into zoned decimal by using sort utility. |
Have you looked at a manual?
Are you planning to change the lrecl?
Have you looked at how your OUTREC will be coded?
I should think that you could, at least, show what you have so far...... |
|
Back to top |
|
|
Shah
New User
Joined: 05 Sep 2006 Posts: 18
|
|
|
|
Quote: |
Have you looked at a manual?
Are you planning to change the lrecl?
Have you looked at how your OUTREC will be coded?
I should think that you could, at least, show what you have so far...... |
No. I haven't looked for manual.
No. I am not going to change the lrecl.
In outrec i need only this field.
Thanks
Shah[list] |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
You can use these DFSORT control statements:
Code: |
OPTION COPY
INREC BUILD=(p,m,PD,TO=ZD,LENGTH=n)
|
p is the starting position of the PD input field. m is the length of the PD input field. n is the length of the ZD output field.
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:
Use [URL] BBCode for External Links |
|
Back to top |
|
|
|