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

I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

1919


How do get the result of your program directly on your pc?

1872


How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

1917


What are the various section in data division and briefly explain them.

683


What are the different rules to perform a Search?

610






Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.

5049


) How do u handle errors in BMS macro?

1418


Mention the guidelines to write a structured cobol program?

603


which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad

1014


How you can characterize tables in cobol?

708


input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?

1862


What are the different types of condition in cobol and write their forms.

649


What is difference between static and dynamic call in cobol?

766


How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that

2716


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

648