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 perform what is varying?

711


what is s000 u4087 error? please give the all error codes in cobol,jcl.

17054


Write down the divisions of cobol program?

671


) how do u code after getting data?

1582


Explain how to differentiate call by context by comparing it to other calls?

689






Explain about different table spaces.

651


What is the default value(s) for an initialize and what keyword allows for an override of the default?

697


What are the pertinent COBOL commands?

2626


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

634


how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

1657


Difference between cobol and cobol-ii?

714


) what is the difference between AID and HANDLE AID?

1637


What is inspect in cobol ?

806


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


Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?

634