How to read a record from bottom of a file which is
indexed by 'A'.
Answers were Sorted based on User's Feedback
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 |
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 |
Answer / rd
WE can use low valus to execute the file from bottom.
Is This Answer Correct ? | 0 Yes | 3 No |
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?
How do you get the data to code the BMS macro?
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?
how to transfer the file from pc to mainframe??
What is an explicit scope terminator?
What is the Importance of GLOBAL clause According to new standards of COBOL?
what are the utilities for load and unload the DB2 tables
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..
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?
is it mandatory to give data division before procedure division ? wht happens if i give procedure division first thn data division ? reply soon
Describe the cobol database components?
whats the difference between search and search all?