Can we use any utility to resolve this apart from Cobol pgm
Posted: Thu Mar 22, 2012 2:17 pm
Hi All,
I have 3 input files. These files will be having the student and the courses details
Input file1:-
Student Course1 Course2 Course3 Course4
S1 C1
S1 C2 C3
S1 C4
S2 C1
Input file2:-
Student Course1 Course2 Course3 Course4
S1 C3
S1 C4
S2 C3 C2
Input file3:-
Student Course1 Course2 Course3 Course4
S2 C5
S3 C6 C7
Maximum courses in the input file will be up to 4
ex:-
Student Course1 Course2 Course3 Course4
S1 C1 C2 C3 C4
Output file should contain all the records (duplicates should not be present)
Output file1:-
Student Course
S1 C1
S1 C2
S1 C3
S1 C4
S2 C1
S2 C2
S2 C3
S2 C5
S3 C6
S3 C7
Apart from writing the cobol program , do we use any utility like Sort or any other for this...
Thanks in Advance
[/size][/size]
I have 3 input files. These files will be having the student and the courses details
Input file1:-
Student Course1 Course2 Course3 Course4
S1 C1
S1 C2 C3
S1 C4
S2 C1
Input file2:-
Student Course1 Course2 Course3 Course4
S1 C3
S1 C4
S2 C3 C2
Input file3:-
Student Course1 Course2 Course3 Course4
S2 C5
S3 C6 C7
Maximum courses in the input file will be up to 4
ex:-
Student Course1 Course2 Course3 Course4
S1 C1 C2 C3 C4
Output file should contain all the records (duplicates should not be present)
Output file1:-
Student Course
S1 C1
S1 C2
S1 C3
S1 C4
S2 C1
S2 C2
S2 C3
S2 C5
S3 C6
S3 C7
Apart from writing the cobol program , do we use any utility like Sort or any other for this...
Thanks in Advance
[/size][/size]