Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

sort except header & trailer

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: sort except header & trailer
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

Senior Member


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

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

Hi,

Check this link

http://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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu Jun 12, 2008 12:07 pm    Post subject:
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    Post subject:
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

Senior Member


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

PostPosted: Thu Jun 12, 2008 12:38 pm    Post subject:
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

Senior Member


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

PostPosted: Thu Jun 12, 2008 1:24 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to change 'K' or 'M' use Sort vice_versa DFSORT/ICETOOL 5 Thu May 18, 2017 7:11 am
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm
This topic is locked: you cannot edit posts or make replies. SORT trick needed bshkris SYNCSORT 6 Tue May 02, 2017 4:35 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us