How to read a record from bottom of a file which is
indexed by 'A'.

Answers were Sorted based on User's Feedback



How to read a record from bottom of a file which is indexed by 'A'...

Answer / bm

USE SORTING ie:

SORT file-name1
ON DESCENDING KEY A
USING file-name2
GIVING file-name3

then read file-name3.

This is the nearest I can think of, any other solutions
please..

Is This Answer Correct ?    7 Yes 0 No

How to read a record from bottom of a file which is indexed by 'A'...

Answer / mahesh

we can read a file from bottom using "EXEC CICS READ PREV"
command in COBOL program.

Is This Answer Correct ?    7 Yes 1 No

How to read a record from bottom of a file which is indexed by 'A'...

Answer / guest

It just a cobol program

Is This Answer Correct ?    2 Yes 3 No

How to read a record from bottom of a file which is indexed by 'A'...

Answer / rd

WE can use low valus to execute the file from bottom.

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More COBOL Interview Questions

WORKING-STORAGE SECTION. 01 VAR1 COMP-2 VALUE 0. PROCEDURE DIVISION. MOVE 10.2115 TO VAR1. DISPLAY 'VAR1 =' VAR1. GOBACK. 10.2115 is stored as .10211499999999996E 02 in OS VS Cobol 10.2115 is stored as .10211500000000000E 02 in ecobol. Any reason why?

3 Answers   TCS,


How do you get the data to code the BMS macro?

0 Answers   IBM,


01rec1. 05 a pic 999v99 value 123.12 05 b pic 99v9 value 45.9 02 rec2. 05 x pic 999v99 05 y pic 99v99 05 z pic x(3) value 'abc' if rec1 is moved to rec2 then what is the value of rec2?

5 Answers   Amdocs,


how to transfer the file from pc to mainframe??

5 Answers   TCS,


What is an explicit scope terminator?

3 Answers  






What is the Importance of GLOBAL clause According to new standards of COBOL?

2 Answers   Infosys,


what are the utilities for load and unload the DB2 tables

1 Answers   L&T,


wirte a pgm in using files in which we hav 10 ,20,30 40...100 records in inputfile and i want them to be send to outputfile in reverse order. PLZ HELP ME OUT .........THIS IS A RECENT QUESTION IN IGATE..

5 Answers   iGate,


I have a file it contain 10 records.i got abend at 8th record because of soc7.how do you know that perticular record got abend?

3 Answers   IBM,


is it mandatory to give data division before procedure division ? wht happens if i give procedure division first thn data division ? reply soon

2 Answers   Patni,


Describe the cobol database components?

0 Answers  


whats the difference between search and search all?

4 Answers   Patni,


Categories