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 are the different data types in cobol?
explain sorting techniques in cobol program?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
What are the cobol coding sheets?
What is report-item in COBOL?
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
How do u write test cases?
How to print 10 to 1 if the input have only 10 digit number?
how do you reference the variable unblock file formats from cobol programs
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.
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?
What is the difference between comp and comp-3 usage?
What is the difference between external and global variables in COBOL?
what is s000 u4087 error? please give the all error codes in cobol,jcl.
What is amode(31)