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 working storage copybook and linkage section copybook?
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
Consider the following COBOL entries: 05 X PIC 99 VALUE 10. SUBTRACT 20 FROM X. The resultant value of X wil be
What do you do to resolve SOC-7 error?
I have two sequential files, FILE-1 and FILE-2. FILE-1 contains 2 columns(A,B) and FILE-2 contains 3 columns (C,D,E).I want an output file, FILE-3 which has all five columns with duplicates eliminated from column A.
COMPUTE X = A * B - C * D and COMPUTE X = (A * B) - (C * D) (a) Are not the same (b) Are same (c) Syntactically wrong (d) Will yield a run time error
What is the difference between comp and comp-3 usage? Explain other COBOL usage?s.
what is the difference between perform varying and perform until
how will u find out 3rd week's 2nd day using occurs ?
What is length is cobol?
The below is the declaration for a variable ws 01 ws pic 9(3). if you want to insert space how will you do that. in which level u should do it
Size of a column has been changed in DB2 table (Suppose it was of 5 characters and later changed to 4 characters) and forgot to change the DCLGEN in COBOL program, what will happen during the execution of code? If the program Abends then what will be the error? If it doesn't abend then hpw the error can be catched?