I was asked in HSBC interview following questions:
1. A string was given " techincal seminar on cobol language"
Interviewer asked me to calculate the number of vowels in
this string.
Re: I was asked in HSBC interview following questions:
1. A string was given " techincal seminar on cobol language"
Interviewer asked me to calculate the number of vowels in
this string.
Re: I was asked in HSBC interview following questions:
1. A string was given " techincal seminar on cobol language"
Interviewer asked me to calculate the number of vowels in
this string.
Re: I was asked in HSBC interview following questions:
1. A string was given " techincal seminar on cobol language"
Interviewer asked me to calculate the number of vowels in
this string.
Re: I was asked in HSBC interview following questions:
1. A string was given " techincal seminar on cobol language"
Interviewer asked me to calculate the number of vowels in
this string.
here is an example for counting vowles in apple word..
apply the same code for your required string....
01 str pic a(5) value 'apple'.
77 cnt pic 9(1) value 0.
01 i pic 9(1) value 1.
procedure division.
perform varying i from 1 by 1 until i>5.
if str(i:1)="A" or "a".......write all vowels.
add+1 to cnt.
display cnt.
Re: I was asked in HSBC interview following questions:
1. A string was given " techincal seminar on cobol language"
Interviewer asked me to calculate the number of vowels in
this string.
We can use the built in function: % SCAN .
We compare the text given with the vowel set.
Get the poitions and then get to know how manvy vowels are
there.
first when i try to write a record into the file,
wresp=duprec, but follwed with that if i try to read the
record it say record not fnd.. actually the record is not
written in the file, but it says that duprec when trying to
write... why this happens, pls help me asap..!