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: 174
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: 8787
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: 614
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 Substring for 2 files in Sort JCL Shubhendu Chakraborty DFSORT/ICETOOL 1 Wed Nov 20, 2019 11:07 am
No new posts Substring for 2 files in Sort JCL Shubhendu Chakraborty SYNCSORT 5 Wed Nov 20, 2019 11:04 am
No new posts Sort to construct single record from ... Deepti_R SYNCSORT 3 Wed Nov 13, 2019 12:14 am
No new posts Capture DSN names through SORT / IDCAMS reach2abhinavtyagi DFSORT/ICETOOL 8 Tue Nov 05, 2019 7:33 pm
No new posts Convert mainframe data to .csv format... karan_reddy DFSORT/ICETOOL 10 Sat Nov 02, 2019 2:09 am

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