I had 100 records and i want to execute last three records by
using cobol programming?what will be coding?
Answer Posted / sandip
In cobol apply counter while reading file if counter reach at 97 start writing record to another file.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
For rewrite, why is it mandatory that file needs to be opened?
I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
how do you reference the variable block file formats from cobol programs
How do you reference the fixed block file formats from cobol programs
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
Write a cobol program making use of the redefine clause.
How to know whether the module is dynamical or statistical?
Write the code to count the sum of n natural numbers.
What is the difference between PIC 9.99 and PIC9v99?
Whats the difference between search & search ALL?
What guidelines should be followed to write a structured cobol prgm?
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?