How to read the last 100 records from a COBOL file. The file
contains N number of records.

Answer Posted / kingmanish

question is ambiguous.
Could you please explain what do u mean by cobol file?

PLease specify what type of file??? Flat file? VSAM ??

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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?

897


What is Pic 9v99 Indicates in COBOL?

729


Differentiate between structured cobol programming and object-oriented cobol programming.

668


What is inspect in cobol ?

803


What happens when we move a comp-3 field to an edited (say z (9). Zz-)?

780






What is comp-1 and comp-2?

764


EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?

2060


how to convert the recors form vsam file to db2 table tru file aid

2763


Which is not true about evaluate statement

1586


How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?

648


What is the local-storage section?

683


i want a program using by if, evaluate , string, unstring, perform, occurs?

4061


Write down the divisions of cobol program?

671


How do you get the data to code the BMS macro?

1476


I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......

10619