how would find total records in files using sequential?
Answer / Matendra Singh Manu
To find the total number of records in a file using sequential access, you can read each record and increment a counter until reaching the end of the file. Here's an example in COBOL:n SET COUNTER TO 0n OPEN INPUT FILEn PERFORM UNTIL END-OF-FILEn READ RECORDn IF ADVANCING THENn ADD 1 TO COUNTERn END-IFn END PERFORMn CLOSE FILEn DISPLAY 'Total Records: ', COUNTER
| Is This Answer Correct ? | 0 Yes | 0 No |
When are scope terminators compulsory?
Is it rquired any server for Ibm framework? Give me list of Ibm framework & recent version IBm framework?
how to handle -911 (deadlock) error in a db2 program so that the program will never abend?
What is use of IBM framework?
have you ever know what is the meaning of Packed Decimal
what sorting order does search all have?
List the type of locks?
What is mainframe computer /system?
how is the future of tandem mainframe?
How to declare host variables?
What will happen if both steplib and joblib are determined?
How can a like table be created?