Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 JOINKEYS Paired and Unpaired Sort on ... MFwhiz DFSORT/ICETOOL 7 Tue Nov 07, 2017 2:46 am
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts JOINKEYS Paired and Unpaired Sort MFwhiz DFSORT/ICETOOL 4 Fri Sep 29, 2017 1:48 am
No new posts Difference in SORT & ICETOOL Mohan Kothakota DFSORT/ICETOOL 5 Fri Sep 22, 2017 4:56 pm
No new posts OC4 in SORT Mohan Kothakota DFSORT/ICETOOL 2 Tue Sep 12, 2017 6:30 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us