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
Name the sections present in data division.
What is report-item in COBOL?
Write some characteristics of cobol as means of business language.
What is the Purpose of Pointer in the string?
What is the difference between Call and a Link?
What is redefines clause in COBOL?
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
how do you define single dimensional array and multidimensional array in your cobol?
what is search and searchall?what is the diffrence between them?give an best example?
What is the LINKAGE SECTION used in COBOL?
How do get the result of your program directly on your pc?
What is the compute verb? How is it used?
How to print 10 to 1 if the input have only 10 digit number?
HOw can I get the negative sign while deduct high value from low value
how to convert the recors form vsam file to db2 table tru file aid