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
 

 

help needed to sort out....

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
APD1

New User


Joined: 18 Feb 2009
Posts: 59
Location: India

PostPosted: Wed Apr 15, 2009 4:08 pm    Post subject: help needed to sort out....
Reply with quote

I have a requirement like this,

Code:
AFCM2016 CICSID=HICSD140,                                   
      DSN=CICSESA.CAFC.D140.AFCF0001,                       
      BATCHID=(AFC62XD3,AFC62XD4,AFC62XD1,AFC62XDA,AFC62XD2),
      LU0=N                                                 
AFCM2016 CICSID=HICSD140,                                   
      DSN=CICSESA.CAFC.D140.AFCF0001,                       
      BATCHID=AFC00XDA,                                     
      LU0=Y                                                 
                                                             
AFCM2016 CICSID=HICSB5B0,                                   
      DSN=CICSESA.CAFC.B5B0.AFCF0001,                       
      BATCHID=(AFC62XD3,AFC62XD4,AFC62XD1,AFC62XDA,AFC62XD2),
      LU0=N                                                 
AFCM2016 CICSID=HICSB5B0,                                   
      DSN=CICSESA.CAFC.B5B0.AFCF0001,                       
      BATCHID=AFC00XDA,                                     
      LU0=Y                                                 


i want this to be sorted on the basis of the text 'HICSB5B0' such that HICSB5B0 is above HICSD140......and also the text related to HICSD140 shud be attached with HICSD140 and text with HICSB5B0 shud remain with HICSB5B0, only the position is to be shifted based on alphbetical order....can it be done by sort or any other method ?
Back to top
View user's profile Send private message

Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Wed Apr 15, 2009 8:21 pm    Post subject:
Reply with quote

If all groups are 4 lines then override DCB and refer to the records as LRECL=320 (assuming 4*80 bytes). Sort on column 17,8 CH,A and then recopy SORTOUT overriding DCB back to LRECL=80.

You may need the ALTSEQ to sort hex A-F after 0-9.
Code:
//SYSIN    DD *                                                   
 ALTSEQ CODE=(F0B0,F1B1,F2B2,F3B3,F4B4,F5B5,F6B6,F7B7,F8B8,F9B9) 
 OPTION CHALT                                                     
 SORT FIELDS=(17,8,CH,A)                                           
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Reduce CPU Times for Join Sort santoshn SYNCSORT 12 Sat Jun 10, 2017 1:40 pm
No new posts Db2 load job abending in SORT mistah kurtz DB2 4 Mon Jun 05, 2017 3:58 pm
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 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. 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