Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum 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: 169
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: 8784
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 Member


Joined: 29 Apr 2008
Posts: 542
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 need assistance on a sort rajiv rengasamy SYNCSORT 11 Fri Jul 26, 2019 8:19 pm
No new posts need help with a tricky sort - Continued rajiv rengasamy SYNCSORT 8 Tue Jul 16, 2019 1:26 pm
No new posts Sort records within a data block rajiv rengasamy DFSORT/ICETOOL 0 Fri Jul 12, 2019 3:25 pm
This topic is locked: you cannot edit posts or make replies. need help with a tricky sort. rajiv rengasamy SYNCSORT 7 Fri Jul 12, 2019 12:36 pm
No new posts To remove the spaces using SORT Card dharmaraok DFSORT/ICETOOL 1 Tue Apr 30, 2019 3:42 pm

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