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
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
How can you get the ksds file records into your cobol program?
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
What is the difference between Call and a Link?
What are the pertinent COBOL
Can you please let me know the centre name of INS certification in Kolkata.
Describe the cobol database components?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
In COBOL programming, what is PERFORM? What is VARYING?
How do you get the data to code the BMS macro?
In COBOL, what is the different between index and subscript?
What is comp-1 and comp-2?
IF I mention stop run in CICS what happens?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
how to convert the recors form vsam file to db2 table tru file aid