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


Please Help Members By Posting Answers For Below Questions

What are the different data types in cobol?

781


explain sorting techniques in cobol program?

682


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1831


What are the cobol coding sheets?

655


What is report-item in COBOL?

702






)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?

1515


How do u write test cases?

1631


How to print 10 to 1 if the input have only 10 digit number?

803


how do you reference the variable unblock file formats from cobol programs

734


Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

2045


i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?

883


What is the difference between comp and comp-3 usage?

669


What is the difference between external and global variables in COBOL?

804


what is s000 u4087 error? please give the all error codes in cobol,jcl.

17016


What is amode(31)

712