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
Which is not true about evaluate statement
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
Which Search verb is equivalent to PERFORM…VARYING?
What are the different types of condition in cobol and write their forms.
Whats the difference between search & search ALL?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
how do you reference the rrds file formats from cobol programs
What is the Purpose of Pointer in the string?
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?
What are the different open modes available in cobol?
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
Difference between array and sub-script ?
Write a program to enter and display the names of students in a class using the occurs clause.
What are various search techniques in cobol? Explain.
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 ......