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
What is the difference between goback, stop run and exit program in cobol?
What is the difference between next sentence and continue in cobol programing language?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
Difference between array and sub-script ?
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 ?
i want a program using by if, evaluate , string, unstring, perform, occurs?
What is static and dynamic call in cobol?
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
Why occurs cannot be used in 01 level in COBOL?
1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?
What is the compute verb? How is it used?
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
Which Search verb is equivalent to PERFORM…VARYING?
What is a scope terminator give example?
What are the different rules to perform a Search?