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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to print 10 to 1 if the input have only 10 digit number?

815


Can you please let me know the centre name of INS certification in Kolkata.

1719


here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?

6843


What are the rules of the move verb?

710


if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need

859






can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1846


What is the Purpose of Pointer in the string?

645


How do you reference the fixed block file formats from cobol programs

711


What is a scope terminator give example?

659


What happens when we move a comp-3 field to an edited (say z (9). Zz-)?

782


what is search and searchall?what is the diffrence between them?give an best example?

5571


Write the code implementing the perform … varying.

648


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

1478


1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?

5381


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.

2064