what is the sortcard for comparing two files with a field key
and get the duplicates in onefile and noduplicates in another
file

Answer Posted / vinodh

Refining the above sort card statement after executing it

SORT FIELDS=COPY
JOINKEYS FILES=F1,FIELDS=(1,10,A)
JOINKEYS FILES=F2,FIELDS=(1,10,A)
JOIN UNPAIRED,F1,F2
REFORMAT FIELDS=(F1:1,10,F2:1,10)
INREC IFTHEN=(WHEN(1,10,CH,NE,11,10,CH),OVERLAY=(22:C'N'))
OUTFIL FNAMES=MATCH,INCLUDE=(22,1,CH,EQ,C' ')
OUTFIL FNAMES=UNMATCH,INCLUDE=(22,1,CH,EQ,C'N')

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how can a stopped job be started again?

636


Explain the purpose of the dd keylen parameter?

670


Matching Logic in Jcl not in cobol.Could any one please answer this question

3669


Explain about ISPF/TSO Commands

1308


Which statement is used to identify the private libraries in job?

674






What is the purpose of dd dummy statement?

942


Describe the various parameters utilized in the creation of a gdg?

680


1) SORT FIELDS=(20,4,CH,D,10,3,CH,D) OUTREC FIELDS=(7:20,4,C' FUTURE ',20,2,10,3,1Z,1,9,13,7, 24,57,TRAN=LTOU,6X'FF') This example illustrates how a fixed-length input data set can be sorted and reformatted for output. The SORTIN LRECL is 80 bytes. The reformatted output records are fixed length with a record size of 103 bytes. SOLRF (the IBM-supplied default) is in effect, so unless the SORTOUT LRECL is specified or available, it will automatically be set to the reformatted record length of 103. in the above example i have some doubts that a) sort fields=(20,4,CH,D,10,3,CH,D) -what exactly it does and this fields related to output record fields or input record fields b)outrec used to refprmat the records after sorting that means could please reply me as soon as possible Thanks. Venkat

7076


What is the purpose of dd * statement in jcl?

795


What is the syntax of JCL statement?

692


Explain how can an in-stream dataset be terminated?

697


Must tape dataset definitions include vol=ser specifications?

971


what sort card you will use to copy the data from one dataset to another dataset?

724


What is the purpose of dd?

724


Can I share my data with other jobs? How?

665