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

Answer Posted / sandip

In cobol apply counter while reading file if counter reach at 97 start writing record to another file.

Is This Answer Correct ?    2 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?

1077


How many bytes S(8) comp field occupy and its maximum value?

1853


What are declaratives and what are their uses in cobol?

934


how do you reference the rrds file formats from cobol programs

1147


Describe the cobol database components?

886


Which Search verb is equivalent to PERFORM…VARYING?

861


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

1031


What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?

907


What is perform what is varying?

916


i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com

1980


How to use the same COBOL program in Batch and CICS on lines? explain with an example

2103


How do define dynamic array in cobol.

857


What are the different rules of SORT operation?

900


What is the difference between Call and a Link?

889


What are the different rules to perform a Search?

815