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 Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm
No new posts How to delete second instance from Fl... Gunapala CN DFSORT/ICETOOL 6 Tue Oct 18, 2016 11:42 pm
No new posts abend sort based on count records in ... anatol DFSORT/ICETOOL 5 Mon Oct 17, 2016 10:10 pm


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