Hi,

I have 3 files say file A , file B and file C.I want to
form an output file in which i will have all the records
from file A. Files B and C also may contain records that
are present in file A.I want those records also to be
included in my output file.

for eg:

file A contains:
1
2
3

file B contains:
2
4
5

file C contains:
1
3
5

So in my output file should look like:
1
2
3
2
1
3

Can any one help ???.....thanks in advance.







Answer Posted / murali

@sai Kishore: I'm not able to understand what will be the
output of step1..
Can you please explain the JCL stmts in step1 line by line.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what EXEC statement is and what is the syntax of EXEC statement used in JCL?

625


What parameters can be used to limit the number of records written to a sysout dataset?

741


How can the attributes of one sms dataset be copied to another dataset?

846


How gdg are concatenated?

668


What is notcat 2 - gs?

930






How dummy is used in jcl?

641


Explain the function of the steplib dd statement?

635


How to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.

5058


How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?

667


what is a jcl?

685


How does jcl act on a cobol code?

653


Does jcl support automatic restart?

753


Explain the function of the dd dcb keyword?

694


have in 100 records in a file i want to read first 3 records and skip next 3 records and agan i want to read 3 records and again i want to skip 3 records... run a loop from record one to 10 evaluate i/3 if comes even then skip else write to output file

918


Differentiate between the joblib and the steplib statements?

855