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

help needed to sort out....


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


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