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 have the file which is having the extension no as records.
sample file will look like below.

2310
3410
3256
4350
3781
5408

I need to replace the record which is starting with 3 to 5
(i.e) 3410 to 5410. How can we do it through cobol

and cobol-db2 program? I need the possible logic?

Answer Posted / jagan

Thavasi ,
In your case , check the record number 1 and 4 which has 3
in the second position of it . As your have given LEADING .
As it encounters the first '3' in any of the position in
the record , it will change it to '5' .

Please correct me if i am wrong...

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What type of SDLC u followed? Why?

1999


How did the release of cobol/370 version 1.3 improve the performance of release 1.1?

1083


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

9106


A table has two indexes defined. Which one will be used by the SEARCH?

1285


what is difference between cobol and cobol/400

22929


What guidelines should be followed to write a structured cobol prgm?

1148


What is the difference between external and global variables in COBOL?

1466


Explain what you understand by passing by value.

1157


Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

1152


IF I mention stop run in CICS what happens?

2379


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

1328


How do you get the data to code the BMS macro?

1971


Which mode is used to operate the sequential file?

1205


2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic

2592


What is a report item?

1143