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.
Answers were Sorted based on User's Feedback
Answer / kingmanish
For the KSDS file we can set the pointer on the last record.
After that use the command READ Previous to read the
records in the reverse order.
I am not very sure about flat file. May be we can use a
turn around.
Sort the file in descending order first and then start
reading.
Is This Answer Correct ? | 7 Yes | 6 No |
Answer / hanish
Flat file may be read in reverse order by using the following code
READ file-name into data-name REVERSED.
Is This Answer Correct ? | 0 Yes | 3 No |
What is the size of s9(19)comp3? explain
How to covert given string into ASCII value in COBOL/MF COBOL
When we code these comp,comp1,comp-2,comp-3 and comp4 values. I know the differnece.I mean when we will prefer if it is new program.Explain in detail with memory examples. Thanks in advance.
Have you code any new programs in COBOL ? What is the functionality of the programs?
What are the different ways to run a COBOL DB2 program using JCL?
Write down the divisions of cobol program?
Can JUSTIFIED be used for all the data types?
what is sort? whis is internal & external sort ?when do u go for inter sort & external sort? tell about some sort utilites?
what if any ,is the syntex error in the following piece of code 01 B PIC A(7) 02 C PIC 9(4) ........ IF(B NUMERIC) ADD 10 TO C a.the condition in the if statement is wrong b.noting is wrong c.because C is initialised.ADD 10 TO C is wrong d.both B and C shoud have same size.
file status 00 is checked after opening the file or reading the file
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
how can we find total no of records in a file ....is there any utility......?