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

Answer Posted / farid

In jcl we can do as follows.........

1st skip the 97 recordes and write rest 3 into another file
using sort utilities(with the help of jcl).now cobol program
can use the 2nd file which has only last 3 records

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why would you use find and get rather than to obtain?

677


)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?

1516


What is the difference between comp and comp-3?

692


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1833


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

650






System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..

1582


What is the difference between goback, stop run and exit program in cobol?

914


can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech

1948


Explain what you understand by passing by value.

686


What are the different types of condition in cobol and write their forms.

650


How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

1920


Are you comfortable in cobol or jcl?

633


) how do u code after getting data?

1576


I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?

1223


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

707