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

Answer Posted / atul

Using Short card you can write the last 3 records.
Short card as :

SORT FIELDS=COPY SKIPREC=97 STOPAFT=03


It will copy the last three records and put it in a file.

Cobol program can use this file containing records.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is redefines clause in COBOL?

841


Explain what you understand by passing by value.

686


what is amode(24), amode(31), rmode(24) and rmode(any)?

688


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

764


What guidelines should be followed to write a structured cobol prgm?

663






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

1760


How do you reference the following file formats from cobol programs?

691


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

701


What are various search techniques in cobol? Explain.

639


Are you comfortable in cobol or jcl?

633


How do u write test cases?

1631


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

809


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

697


What is the Purpose of POINTER Phrase in STRING command in COBOL?

711


What are declaratives and what are their uses in cobol?

701