how would find total records in files using seqientional
Answer Posted / guest
We can increment the count for each reading of record in a file.
Read file
count = count + 1
At end
display count
| Is This Answer Correct ? | 13 Yes | 2 No |
Post New Answer View All Answers
What are the access modes of START statement?
How to use the same COBOL program in Batch and CICS on lines? explain with an example
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
how do you reference the variable block file formats from cobol programs
What is the difference between PIC 9.99 and 9v99 in COBOL?
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?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
How to remove 2 duplicate records and copy only one using job control language?
What are the cobol coding sheets?
Name the sections present in data division.
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.
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?
What are 77 levels used for?
Write some characteristics of cobol as means of business language.
What are different data types in cobol?