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.

Answers were Sorted based on User's Feedback



I was asked in HSBC interview following questions: 1. A string was given " techincal semina..

Answer / sakthi

INSPECT strng-1 TALLYING strng-2 FOR ALL 'A','E','I','O','U'.

Is This Answer Correct ?    40 Yes 3 No

I was asked in HSBC interview following questions: 1. A string was given " techincal semina..

Answer / srini

INSPECT strng-1 TALLYING count strng-2 FOR ALL 'A','E','I','O','U'.

Is This Answer Correct ?    10 Yes 4 No

I was asked in HSBC interview following questions: 1. A string was given " techincal semina..

Answer / ameen

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.

Is This Answer Correct ?    3 Yes 2 No

I was asked in HSBC interview following questions: 1. A string was given " techincal semina..

Answer / sridevi mj

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.

Is This Answer Correct ?    0 Yes 0 No

I was asked in HSBC interview following questions: 1. A string was given " techincal semina..

Answer / ecknisha

Please help yourself to find the answer

Is This Answer Correct ?    3 Yes 13 No

Post New Answer

More CICS Interview Questions

Can you define multiple maps in a BMS mapset?How,can anybody sent with syntax?

3 Answers  


What is the effect of including the TRANSID in the EXEC CICS RETURN command?

2 Answers  


How do you get data from a task that began with a START command?

2 Answers  


how i can enter into cics region in real time.

2 Answers   Cap Gemini,


How would you release control of the record in a READ for UPDATE?

2 Answers   IBM,






How do you rollback data written to an ESDS file?

1 Answers   IBM, Infosys,


Explain the function of the load command?

0 Answers  


i have three programs... I used Dfhcommarea in for first program for third program i used TSQ .....what i have to use for second program???

2 Answers  


Explain how to handle exceptional conditions in CICS.

1 Answers   IBM,


What is an ASRA?

2 Answers   IBM,


What are the differences between Temporary Storage Queue (TSQ) and Transient Data Queue (TDQ).?

0 Answers  


What is the difference between CICS Program Control Table (PCT) and CICS Processing Program Table (PPT) ?

4 Answers   IBM,


Categories