IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

sort except header & trailer


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ajayvamsee
Currently Banned

New User


Joined: 07 May 2008
Posts: 6
Location: Hyderabad

PostPosted: Thu Jun 12, 2008 10:50 am
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Jun 12, 2008 11:15 am
Reply with quote

Hi,

Check this link

www-304.ibm.com/systems/support/storage/software/sort/mvs/tricks/

for "Sort records between a header and trailer".
Back to top
View user's profile Send private message
ajayvamsee
Currently Banned

New User


Joined: 07 May 2008
Posts: 6
Location: Hyderabad

PostPosted: Thu Jun 12, 2008 12:03 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Jun 12, 2008 12:07 pm
Reply with quote

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
View user's profile Send private message
ajayvamsee
Currently Banned

New User


Joined: 07 May 2008
Posts: 6
Location: Hyderabad

PostPosted: Thu Jun 12, 2008 12:14 pm
Reply with quote

Material should be simple and cool...should be straight forward..not like this kind
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Jun 12, 2008 12:38 pm
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Jun 12, 2008 1:24 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts how to calculate SUM value for VB fil... DFSORT/ICETOOL 1
Search our Forums:

Back to Top