how can we fetch 3 records in cobol pgm any coding pls ?

Answer Posted / santhosh

Read the file and validate the things, once the all the
things are done for the record keep the count of it in an
working storage variable. Everytime when u try to read the
next record check for the count of WS variable, when it
reaches the count of 3 then terminate ur program.

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define static linking and dynamic linking.

864


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

863


How arrays can be defined in COBOL?

826


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

8661


Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.

5413


Which Search verb is equivalent to PERFORM…VARYING?

852


In COBOL, what is the different between index and subscript?

942


What is the utilization of copybook in cobol? Could we utilize a similar copybook?

937


What are the different rules to perform a Search?

806


how do you define single dimensional array and multidimensional array in your cobol?

860


What rules are to be followed while using the corresponding options?

823


Define cobol?

1065


What are various search techniques in cobol? Explain.

854


Name the divisions, which are available in a cobol program?

917


how do you reference the rrds file formats from cobol programs

1131