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 / santy

You can solve this problem using the Referencial Intigrity.

Let consider these extension no. in WS section.
01 WS-EXTN PIC X(4).

IF WS-EXTN(1,1)='3'
ISPECT WS-EXTN replacng first '3' by '5'
END-IF.

read the next record.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the utilization of copybook in cobol? Could we utilize a similar copybook?

1174


how do you reference the rrds file formats from cobol programs

1494


i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com

2171


how do you reference the ksds vsam file formats from cobol programs

1123


Which Search verb is equivalent to PERFORM…VARYING?

999


What are the different rules for performing sort operation?

1155


What is the difference between structured cobol programming and object alternativelyiented cobol programming?

1178


Write a program that uses move corresponding.

1072


What is the difference between comp and comp-3?

1131


Give some examples of command terminators?

1195


how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

2076


Discuss about changing dataset name in proc.

1172


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

1288


How to remove 2 duplicate records and copy only one using job control language?

1168


What is amode(24)?

1187