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
Answer / rama krishna
b. Z replaces the value zero with blank spaces....
| Is This Answer Correct ? | 14 Yes | 3 No |
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 |
01 var1 pic x(10) 01 var2 redefines var1 pic 9(10). then in procedure division move 'abcde' to var1 then waht is the value of var1 and var2
1)what is use of linkage section? 2)what is difference between comp and comp-3
What is a scope terminator give example?
how do you reference the variable unblock file formats from cobol programs
How do u find the programs calling the given module, without having doing 3.13 on loadlib/source library?
What are literals?
consider the following piece of code 01 GROUP-ITEM 05 AMOUNT-1 PIC 99V9 USAGE COMP VALUE 50 05 AMOUNT-2 PIC 9(4)V99 USAGE COMP MOVE ZERO TO GROUP-ITEM ADD 50 TO AMOUNT-1 what will be the content of AMOUNT-1? a.50 b.100 c.0 d.unpredictable
wht is load module and object module ?
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?
What are the different open modes available in cobol?
How to retrive the 9th records out of ten records using the cobol program ?
Consider the following COBOL entries: 05 X PIC 99 VALUE 10. SUBTRACT 20 FROM X. The resultant value of X wil be