consider two data items

77 W-A PIC 9(3)V99 VALUE 23.75
77 W-B PIC ZZ9V99 VLAUE 123.45
after the statement
MOVE W-A TO W-B
what will be W-B's value?
a.123.75
b.b23.75 (where b indicates space)
c.023.75
d.invalid move

Answers were Sorted based on User's Feedback



consider two data items 77 W-A PIC 9(3)V99 VALUE 23.75 77 W-B PIC ZZ9V99 VLAUE 1..

Answer / ram g

ANS B is correct...

Is This Answer Correct ?    15 Yes 0 No

consider two data items 77 W-A PIC 9(3)V99 VALUE 23.75 77 W-B PIC ZZ9V99 VLAUE 1..

Answer / rama krishna

b. Z replaces the value zero with blank spaces....

Is This Answer Correct ?    14 Yes 3 No

consider two data items 77 W-A PIC 9(3)V99 VALUE 23.75 77 W-B PIC ZZ9V99 VLAUE 1..

Answer / brajesh

2375 is the correct answer

Is This Answer Correct ?    0 Yes 0 No

consider two data items 77 W-A PIC 9(3)V99 VALUE 23.75 77 W-B PIC ZZ9V99 VLAUE 1..

Answer / satish

z is numeric edited value so can.t initialize the value
so the question is wrong

pls check it pratically

Is This Answer Correct ?    0 Yes 4 No

consider two data items 77 W-A PIC 9(3)V99 VALUE 23.75 77 W-B PIC ZZ9V99 VLAUE 1..

Answer / abinand shetty

a) 123.75

Is This Answer Correct ?    1 Yes 9 No

Post New Answer

More COBOL Interview Questions

what are the working storage fields in BMS macro?

2 Answers   IBM,


how to code in cobol while using variable block file?

1 Answers  


What are the different data types available in COBOL?

4 Answers  


What is the difference between binary search and sequential search?

0 Answers  


Syntax for JCLLIB & JOBLIB???

1 Answers  






How to define a array dynamically.....

5 Answers   Fidelity,


Describe the difference between subscripting and indexing ?

2 Answers  


i have two file one is ksds another one is esds i want store matching records in flat file how to you matching.

2 Answers   Wipro,


what are the steps to sort in a cobol program?

2 Answers   Patni,


What are 77 levels used for?

0 Answers  


can we use full outer join with cursors declared in cobol program?

2 Answers  


1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?

0 Answers   IBM,


Categories