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 |
Will the variable POS in the following code have a value of 2 or not? 01 POS PIC S9(4) COMP VALUE 2. 01 FIRST-NAME PIC X(10) VALUE 'ABC'. 01 LAST-NAME PIC X(10) VALUE 'XYZ'. 01 NAME PIC X(20) VALUE SPACES. STRING FIRST-NAME DELIMITED BY SPACES ' ' DELIMITED BY SIZE LAST-NAME DELIMITED BY SPACES INTO NAME WITH POINTER POS
I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?
what is search and searchall?what is the diffrence between them?give an best example?
In an array processing what is the thing that can be done by using subscripts but not by using index
How are the next sentence and continue different from each other?
In an EVALUATE statement, can I give a complex condition on a when clause?
I have a sequential file of 100 records. How do I load the records into a two dimensional array ?
what is mainframe? what is the mainframe software ? what is use in s/w field?
What is the difference between comp and comp-3?
Sending data is aplhabetic size 7 (value 3000), I wantated this value to be stored in database, which is defined as s9(7)v9(2)comp-3.
is it possible to declare index in cobol program? if it is not why its tell me pls
How to remove 2 duplicate records and copy only one using job control language?