Frank Swarbuck on IBM Mainframe Discussion List <[email protected]> wrote on 05/09/2011 02:09:40 PM: > Given the following: > > //MERGESCF JOB ,'MERGE SCF',NOTIFY=&SYSUID > //MERGE EXEC PGM=SORT > //SORTIN01 DD DISP=SHR,DSN=DAT1.CVSC.CVSSCF > //SORTIN02 DD DISP=SHR,DSN=DAT2.CVSC.CVSSCF > //SORTOUT DD DISP=SHR,DSN=DVFJS.CVSC.CVSSCF > //SYSOUT DD SYSOUT=* > //SYSIN DD * > MERGE FIELDS=(1,30,BI,A) > SUM FIELDS=NONE > /* > > Can I be guaranteed that if there a record with the same key in both > SORTIN01 and SORTIN02 that SORTOUT will always get the record from > SORTIN01 and not SORTIN02?
You need to have EQUALS in effect to guarantee that. For example, add the following to //SYSIN: OPTION EQUALS Frank Yaeger - DFSORT Development Team (IBM) - [email protected] Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration => DFSORT/MVS is on the Web at http://www.ibm.com/storage/dfsort ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

