sample code for read a 2nd record from last in flatfile how
can do?
Answer Posted / sunilkumar
First open the file in reverse order using OPEN command
OPEN FILE file-name REVERSE
Then read twice to get the 2nd last record.
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
How do you get the data to code the BMS macro?
what is difference between cobol and cobol/400
Difference between cobol and cobol-ii?
i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc
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
Write the code to count the sum of n natural numbers.
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
Explain about different table spaces.
what happens if parmparameter passes zero bytes to the program
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
What are the different rules to perform a Search?
What is length is cobol?
What is the difference between external and global variables in COBOL?
What is the Purpose of POINTER Phrase in STRING command in COBOL?
What are the access modes of START statement?