View previous topic :: View next topic
|
Author |
Message |
sri_mf
Active User
Joined: 31 Aug 2006 Posts: 218 Location: India
|
|
|
|
Hi ,
I need to sort a Sequential file of RECFM=FB and LRECL=80
Here i should not sort the first and the last records.So the records between the first and Last records should be sorted.
Sort Fileds=(1,4,ch,a)
Input
AAAAA
CCCCC
BBBBB
XXXXX
DDDDD
ZZZZZ
Output
AAAAA
BBBBB
CCCCC
DDDDD
XXXXX
ZZZZZZZ |
|
Back to top |
|
|
sri_mf
Active User
Joined: 31 Aug 2006 Posts: 218 Location: India
|
|
|
|
Typo Mistake : ZZZZZZZ
It should be ZZZZZ |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
Sri,
Did you check the new DATASORT operator introduced in DFSORT? I think this can be done easily using the new operator? |
|
Back to top |
|
|
sri_mf
Active User
Joined: 31 Aug 2006 Posts: 218 Location: India
|
|
|
|
Thanks Aaru for your suggestion But i do not have PTF installed.
Frank Rpely in that Link: Note that you will need z/OS DFSORT V1R5 PTF UK90013 (July, 2008) in order to use the new DATASORT operator |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Have you searched the forum, as I do recall a request to do EXACTLY what you want to do.
I think HEADER and TRALER were in the title of the thread, or the text body, so should not be too difficult to find. |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
Sri,
Quote: |
Here i should not sort the first and the last records.So the records between the first and Last records should be sorted. |
whther The first and last records will always be AAAAA and ZZZZZ respectively????? If yes, as suggested search the forum as it has been discussed many times. |
|
Back to top |
|
|
sri_mf
Active User
Joined: 31 Aug 2006 Posts: 218 Location: India
|
|
|
|
Aaru wrote: |
Sri,
Quote: |
Here i should not sort the first and the last records.So the records between the first and Last records should be sorted. |
whther The first and last records will always be AAAAA and ZZZZZ respectively????? If yes, as suggested search the forum as it has been discussed many times. |
I got some code after some thorough search.
I made the changes as per my requirement and it worked fine.
Thanks Aaru and Expat.
Actulaly i missed that in my first Search.
|
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
You are welcome and good that it is working. |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
Back to top |
|
|
sri_mf
Active User
Joined: 31 Aug 2006 Posts: 218 Location: India
|
|
|
|
Thank you Frank...I do not have z/OS DFSORT V1R5 PTF UK90013 so i have opted the second choice |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Quote: |
I do not have z/OS DFSORT V1R5 PTF UK90013 so i have opted the second choice |
Ask your System Programmer to install that PTF (it's free). |
|
Back to top |
|
|
|