I have two questions here. 1. How to read a flat file in
reverse order? 2. How to read a VSAM KSDS file in reverse
order? In both the cases we donot know the total number of
records.
Answer Posted / dsingh29
add a sequence number at end of records and then sort in
descending order.
| Is This Answer Correct ? | 14 Yes | 1 No |
Post New Answer View All Answers
Write a program to explain size error.
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.
Write a program to enter and display the names of students in a class using the occurs clause.
Which is not true about evaluate statement
Which mode is used to operate the sequential file?
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 we sort two input files based on a common column and giving one o/p file please send me the coding logic?
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
Difference between array and sub-script ?
Why occurs cannot be used in 01 level in COBOL?
How do define dynamic array in cobol.
In COBOL programming, what is PERFORM? What is VARYING?
What are the pertinent COBOL commands?
What is comp-1 and comp-2?
What is link edit in cobol?