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...

I want to remove a duplicates form a given input field using cobol program. please Any one help me out to solve this ... Thanks in Advance.

Answer Posted / meghraj hulawale

Procedure Division.
1.Open vsam file as INPUT mode.
2. Copy the records of VSAM FILE into Table or Array by using occurs clause.
3.Count no. of records in VSAM FILE.
4.By using perform statement.
e.g
perform until I < vsam-cnt
read vsam file
perform until j < no-of-records in table or vsam-cnt
if vsam-data NOT =Table-record
A. Open another Output file as OUTPUT mode.
B. Write output file.
end-if.
increase the value of j as 1.
end-perform.
increase the value I as 1.
end-perform.
Stop run.

******Note
We need to access vsam as sequential.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If you are current on the owner of a set, what is the difference between obtain next and obtain first?

1232


What do you understand by psb and acb?

1058


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

1057


What is static and dynamic call in cobol?

1004


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

1177


What is link edit in cobol?

1153


How are the next sentence and continue different from each other?

1226


How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?

1144


What is rmode(24)

1099


Which is not true about evaluate statement

2396


how can i see junk values in dclgen or in hostvariable of comp ?

2935


example for sub strings ? and refernce modifications whit output pls

2269


I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?

2227


When is inspect verb is used in cobol?

1181


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

1188