View previous topic :: View next topic
|
Author |
Message |
ajayvamsee Currently Banned New User
Joined: 07 May 2008 Posts: 6 Location: Hyderabad
|
|
|
|
Hi all,
I have a requirement that I need 2 sort the records with in header and trailer could you please let me know how can this be done
key is first 5 bytes
Input:-
24062008H <--- Hearder record
11111111
33333333
22222222
55555555
44444444
000000005T <--- Trailer record
Output :-
24062008H <--- Hearder record
11111111
22222222
33333333
44444444
55555555
000000005T <--- Trailer record
Hope every one is clear with this requirement....
Thanks
Ajay |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
Back to top |
|
|
ajayvamsee Currently Banned New User
Joined: 07 May 2008 Posts: 6 Location: Hyderabad
|
|
|
|
I could not understand ...this material...please could you explain me.../ can u give me the example using SORT?...
What nonsence is this ICEMEN,ICETOOL..SORT again DFSORT..SYNCSORT
are all same are not...wat is this confusion and these many things?
Thanks
Ajay |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
ajayvamsee wrote: |
I could not understand ...this material...please could you explain me.../ can u give me the example using SORT?...
What nonsence is this ICEMEN,ICETOOL..SORT again DFSORT..SYNCSORT
are all same are not...wat is this confusion and these many things?
Thanks
Ajay |
Maybe if you would take the time to sit down and read the material given to you and then to try some of the examples, perhaps you would be able to build your own control statements rather than ask for someone else to do your work for you.
It is clear that you do not understand a lot of things, first and foremost DFSORT & SYNCSORT are definitely not the same |
|
Back to top |
|
|
ajayvamsee Currently Banned New User
Joined: 07 May 2008 Posts: 6 Location: Hyderabad
|
|
|
|
Material should be simple and cool...should be straight forward..not like this kind |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Hi,
ajayvamsee wrote: |
Material should be simple and cool...should be
straight forward..not like this kind |
What part of material was not "stright forward" or clear..? |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Hi,
Your replies made you to get banned..hmm.. anyways if you get back to this thread, try this JCL:
Code: |
//STEP050 EXEC PGM=SORT,REGION=4096K
//*
//SORTIN DD *
24062008H
11111111
33333333
22222222
55555555
44444444
000000005T
//SORTOUT DD SYSOUT=*
//*
//SYSIN DD *
INREC IFTHEN=(WHEN=INIT,OVERLAY=(81:C'1')),
IFTHEN=(WHEN=(9,1,CH,EQ,C'H'),OVERLAY=(81:C'0')),
IFTHEN=(WHEN=(10,1,CH,EQ,C'T'),OVERLAY=(81:C'9'))
SORT FIELDS=(81,1,CH,A,1,5,CH,A)
OUTREC FIELDS=(1,80)
/* |
|
|
Back to top |
|
|
|