File1 has 100 records and file2 has 200 records i want to
copy 50 records which r in both file into file3

Answer Posted / muttaiah

Hi Ayusman,
I hope u didn't get the question properly.
Question.
file1: (3 records assumption)
100 ayusman
200 muttaiah
300 allinterview

File 2: (3 records
400 google
500 yahoo
100 ayusman

File3:
100 ayusman

This is what the question is, they want all the duplicates
in both file1 & file2 in file3(first 50 records).

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is NOTCAT ?

737


I have many files which i am receiving from client everyday. I have one step for every file to check for empty or not. Here client gives 30 files i need to check for every file for empty or not and i need to perform 30 steps. Can I do it in single step. Dynamically i need to change the File name in my step.

726


Name the statement which can be used to send data to another mvs jes3 node?

600


List the various advantages of using jcl language?

850


What is the syntax of JCL statement?

691






In sms datasets, what is the function of the dd avgrec keyword?

650


in ways data can be passed to a COBOL program from JCL?

662


What is notcat 2 - gs?

932


How is the record format of an output dataset specified?

743


a dd statement has 2 types of parameters. Name them?

643


Suppose I have five jobs to do. But I want to hold one?

654


Does jcl support automatic restart?

759


Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?

716


Where can program checkpoints be stored for use in a restart?

843


What is the function of dd disp parameter?

654