How to read records which is in sequential file in reverse
order ? Exp. 1 2 3 4 5 . i want 5 4 3 2 1?please clear my
doubt any one
Answer Posted / abhishek
@Rakesh You can define table occurs clause based on the No
of records that input file have.
All, You can reverse the file it self using external sort
before reading it.
Thanks,
Abhishek
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are various search techniques in cobol? Explain.
input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
explain sorting techniques in cobol program?
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
Difference between array and sub-script ?
what is search and searchall?what is the diffrence between them?give an best example?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
Can a Search can be done on a table with or without Index?
I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.
What is the usage of comp fields in cobol?
What is the problem of ordered sequential files access?
Name the sections present in data division.
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)