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
 
Can we merge these two sort cards into one ??

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

Active User


Joined: 14 Sep 2009
Posts: 166
Location: Coimbatore

PostPosted: Thu Mar 08, 2018 4:03 pm    Post subject: Can we merge these two sort cards into one ??
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: 8735
Location: Welsh Wales

PostPosted: Thu Mar 08, 2018 5:55 pm    Post subject:
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

Active User


Joined: 29 Apr 2008
Posts: 379
Location: Maryland

PostPosted: Fri Mar 09, 2018 1:36 am    Post subject: Re: Can we merge these two sort cards into one ??
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    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 Merge data from record pairs ashokakash DFSORT/ICETOOL 5 Wed Oct 17, 2018 11:38 am
No new posts Need help on the multiple files refor... wik123 DFSORT/ICETOOL 7 Wed Sep 19, 2018 10:47 am
No new posts Merge two files and sum up the count ... preeti6 JCL & VSAM 6 Thu Sep 06, 2018 10:57 am
No new posts Remove selected duplicate rows from t... hnharish DFSORT/ICETOOL 3 Wed Sep 05, 2018 3:11 am
No new posts Sort card to find duplicates, without... anand1204 DFSORT/ICETOOL 15 Fri Aug 31, 2018 12:13 am

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