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

Can we merge these two sort cards into one ??


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
abdulrafi

Active User


Joined: 14 Sep 2009
Posts: 184
Location: Coimbatore

PostPosted: Thu Mar 08, 2018 4:03 pm
Reply with quote

Hi,

Currently I have two sort cards with me.. I do want to merge these into one just to reduce the steps. Can anybody help me ?.

Sort card 1:
Code:
SORT FIELDS=(11,6,A,25,12,A,62,6,A),FORMAT=CH       
SUM FIELDS=NONE                                     
OUTREC FIELDS=(1:11,6,7:25,12,62X)   



Sort card 2:
Code:
SORT FIELDS=COPY                                                     
INREC FIELDS=(1:1,18,19:SEQNUM,4,ZD)                                 
OUTREC IFTHEN=(WHEN=(19,4,ZD,EQ,0001),                               
                     BUILD=(1:X'407D',3:1,18,21:X'7D',22:59X)),     
       IFTHEN=(WHEN=NONE,                                           
                    BUILD=(1:C',',2:X'7D',3:1,18,21:X'7D',22:59X))   
 OUTFIL REMOVECC,TRAILER1=(');')                                     
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Mar 08, 2018 5:55 pm
Reply with quote

What have you tried and what was the result ?
We will help you if you try, but we are not here to do your job for you.

Which sort product are you using, after 160+ posts on the forum I rather think that you should know the rules by now.

Which release of the unknown product is being used.

Examples of input data and expected output data are where ?

One of the moderators will move this topic to the correct forum once you answer the questions.
Back to top
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 2010
Location: USA

PostPosted: Fri Mar 09, 2018 1:36 am
Reply with quote

abdulrafi wrote:
Currently I have two sort cards with me.. I do want to merge these into one just to reduce the steps. Can anybody help me ?.

You have no chance to get help because neither JCL nor VSAM has anything like "SORT card" among their tools/commands/statements/instructions...
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 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 Merge two VSAM KSDS files into third ... JCL & VSAM 6
No new posts how to calculate SUM value for VB fil... DFSORT/ICETOOL 1
No new posts how to calculate SUM for VB file usin... JCL & VSAM 1
Search our Forums:

Back to Top