how would find total records in files using seqientional
Answer / 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 |
What is the difference between copy and include in cobol?
What is 88 level used for ?
what is sort? whis is internal & external sort ?when do u go for inter sort & external sort? tell about some sort utilites?
how do u list the abended jobs?
How do u debug a S0C7 abend? (aswered till we get the field which caused that) After knowing the field which caused that how do u know the record which caused that if it is in production env? (dumb) Ok let us assume that we got to know that 100th record caused that and I wanted to skip only 100th record from the file and process from 101th. How to do that in JCL using SORT? (tried with STOPAFT but ended up dumb when he said smthing else is ther)
COBOL program to read the string ' BOMBAY' in reverse order as 'YABMOB'
how to check whether the open command of a sequential file is successful? or not?
what are difference organizations in cobol and access mode in cobol? can you expalin what organization means while declaring for ksds,esds,rrds?
01 NAME1 PIC X(13) VALUE "COBOL PROGRAMMING". 01 NAME2 PIC X(13). now I want to display the value of NAME1 in reverse order i.e value should be displayed as "GNIMMARGORP LOBOC" HOW can I do that ??? please let me know if any one knows it.
given the following piece of code: CALL SUB-PGM USING A, B, C. CALL SUB-PGM USING A, C, C. (a) Both CALL statements will always produce same result. (d) Both CALL statements may produce different result. (c) Compile-time error because SUB-PGM is a dataname. (d) Compile-time error because A, B, C are used twice.
How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length
In COBOL programming, what is PERFORM? What is VARYING?