Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Can we change the password using ALTER? anyone tried and changed?

1951


How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

1186


What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?

1054


HOw can I get the negative sign while deduct high value from low value

2211


how do you reference the variable unblock file formats from cobol programs

1279


) How do u handle errors in BMS macro

1957


What is the utilization of copybook in cobol?

1114


i need a small 3d program using inline and outline.

2166


How do you differentiate between cobol and cobol-ii?

1129


What are the cobol coding sheets?

1173


What is the Purpose of Pointer in the string?

1025


What is the local-storage section?

1102


How arrays can be defined in COBOL?

1135


How to use the same COBOL program in Batch and CICS on lines? explain with an example

2327


) what is the difference between AID and HANDLE AID?

2099