How to exclude the duplicate records from two concateded
flat files (records from both files must be removed)?



How to exclude the duplicate records from two concateded flat files (records from both files must ..

Answer / mayank

We can use SORT to exclude the duplicate
SORT FIELDS=NONE remove the dup from fileC

//STEP1 PGM=SORT
//*** concatinated input files
//SORTIN DD DSN=FILEA,DISP=SHR
// DD DSN=FILEB,DISP=SHR
//** output file contains records except for duplicate
//SORTOUT DD DSN=FILEC,
// DISP=(NEW,CATLG,DELETE),
// VOL=SYSDA,
// SPACES=(CYL(1,1),RLSE),
// DCB=(LRECL=80,RECFMT=F,BLKSIZE=0)
//** give the sort parameter in below sysin
//SYSIN *
SORT FIELDS=(start postion of rec, length of
rec,attribute, A/D)
SUM FIELDS=NONE

Is This Answer Correct ?    7 Yes 2 No

Post New Answer

More JCL Interview Questions

Explain about RECORDING MODE Clause

1 Answers  


hi guys what r the diff types of procs in jcl? bye ramya

4 Answers   ACS, Keane India Ltd,


The maximum number of steps in a job?

4 Answers  


Explain how can the submitting users racf authority be overridden in a job stream?

0 Answers  


once we submitted the job to the operating system, how can we cancel the job before execution?

2 Answers  






What is model dataset label(Model DSCB)?

1 Answers  


What all are the changes to be made in JCL so as to do testing?

2 Answers   TCS,


jcl is like a complier....?

6 Answers  


Explain COND used in JCL?

1 Answers   Patni,


What is the difference between Sysin,Sysout,Sysdbout and Sysudump?

3 Answers  


How can values be passed from the job stream to an executable program?

0 Answers  


shall we concordinate two different length dataset in to a new date set.

6 Answers  


Categories