I had 100 records and i want to execute last three records by
using cobol programming?what will be coding?

Answer Posted / harsha

Read file sequentially and load it in table. keep check on
the number of ocurances(i.e. number of records).

Once the table is fully loaded, you know the total
occurances. Say it is X. Now read the table with occurance
X-3

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need

848


Write the code implementing the perform … varying.

637


How do you reference the fixed block file formats from cobol programs

696


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

675


What is the problem of ordered sequential files access?

690






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 ......

10553


How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?

689


In COBOL, what is the different between index and subscript?

751


how do you reference the esds vsam file formats from cobol programs

625


How do you define a variable of comp-1 and comp-2?

697


What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?

707


How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?

2091


how do you reference the printer file formats from cobol programs

648


What is an in line perform? When would you use it? Anything else you wish to say about it.

639


What are 77 levels used for?

652