A cobol program to read a file , match it with other if.
If match occurs then write it to an output file. If no
match then no need to write it.Error log created by program
to track any error.
Answer Posted / ajay kumar ande
procedure:
1. take 4 seq. files,read two files
2.if rec1(key1)=rec2(key2)
write record3
else
write record4
or using jcl
pgm=iebcmpr
sysut1 dd dsn=dataset1
sysut2 dd dsn=dataset2
sysin dd *
compare typorg=ps/po
| Is This Answer Correct ? | 3 Yes | 4 No |
Post New Answer View All Answers
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 a scope terminator give example?
What is the Purpose of Pointer in the string?
Explain what you understand by passing by value.
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
What is the default value(s) for an initialize and what keyword allows for an override of the default?
How you can read the file from bottom?
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 to move the records from file to array table. give with code example
2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic
What is the compute verb? How is it used?
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
Explain how you can characterize tables in cobol?
I have a File that has duplicate records. I need only those records that occur more than thrice.?
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.