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: 8697
Location: Back in jolly old England

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: 324
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 finding anydata between positions of ... ram_vizag SYNCSORT 13 Tue Jul 17, 2018 9:14 pm
No new posts To remove spaces from a VB file using... Selvarajars DFSORT/ICETOOL 5 Thu Jun 21, 2018 6:57 pm
No new posts Sort numeric fields with trailing spaces sancraig16 SYNCSORT 7 Tue Apr 03, 2018 1:21 am
No new posts Find & Replace string in CA-SORT mrgnndhmk CA Products 1 Fri Mar 30, 2018 12:58 am
No new posts Merge 2 records sancraig16 SYNCSORT 19 Tue Mar 27, 2018 8:17 pm

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