I have dataset DS1 which has records say
1
2
3
4
5
...
...
etc
And also I have second dataset DS2 whcih has records
1
3
4
5
6
8
..
...
Both the files are sorted and now I want to compare these files and write it into the third files if the records are matching.
Answer Posted / ganesh
Okay Agree with above solution. Now tell me how to do using COBOL Read statement logic.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Define static linking and dynamic linking.
Write the code to count the sum of n natural numbers.
How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?
What is the difference between next sentence and continue in cobol programing language?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
how do you reference the fixed unblock file formats from cobol programs
What guidelines should be followed to write a structured cobol prgm?
Difference between array and sub-script ?
Which Search verb is equivalent to PERFORM…VARYING?
I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.
What is difference between static and dynamic call in cobol?
) what is the difference between AID and HANDLE AID?
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
how do you reference the esds vsam file formats from cobol programs