sample code for read a 2nd record from last in flatfile how
can do?
Answer Posted / santhosh vayathuri
for this we need to do fallowing steps
1) read all the records and store into an array and count
value store into an var
2) from that array subtract count var by 1 we will get last
2nd record
ex :: array(count-1) == last 2nd rec
| Is This Answer Correct ? | 1 Yes | 6 No |
Post New Answer View All Answers
HOw can I get the negative sign while deduct high value from low value
Which is not true about evaluate statement
What is the local-storage section?
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
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?
Describe the cobol database components?
How arrays can be defined in COBOL?
State the various causes of s0c1, s0c5 and s0c7.
how do you reference the variable unblock file formats from cobol programs
Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.
how do you reference the variable block file formats from cobol programs
) How do u handle errors in BMS macro
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
What is the difference between Call and a Link?
In COBOL, what is the different between index and subscript?