Extract only those records from a PS file which are having word 'TEXT' in the records using COBOL? The word TEXT is not present in a particular position in all the records.
Answer Posted / divyakiruthiga
Step 1: Read the first record from the PS file into a ws-variable WK-ROW.
Step 2 :INSPECT WK-ROW TALLYING WK-TXT-COUNT FOR ALL 'TEXT'.
Step 3: If the WK-TXT-COUNT is greater than 0, then write the record to the output file.
Step 4: Initialize the WK-TXT-COUNT
Step 5: Continue the above process till end of file.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can we change the password using ALTER? anyone tried and changed?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
HOw can I get the negative sign while deduct high value from low value
how do you reference the variable unblock file formats from cobol programs
) How do u handle errors in BMS macro
What is the utilization of copybook in cobol?
i need a small 3d program using inline and outline.
How do you differentiate between cobol and cobol-ii?
What are the cobol coding sheets?
What is the Purpose of Pointer in the string?
What is the local-storage section?
How arrays can be defined in COBOL?
How to use the same COBOL program in Batch and CICS on lines? explain with an example
) what is the difference between AID and HANDLE AID?