01rec1.
05 a pic 999v99 value 123.12
05 b pic 99v9 value 45.9
02 rec2.
05 x pic 999v99
05 y pic 99v99
05 z pic x(3) value 'abc'
if rec1 is moved to rec2 then what is the value of rec2?
Answers were Sorted based on User's Feedback
Answer / praveen
REC2 will just contain 12312459 , the code was tested
| Is This Answer Correct ? | 2 Yes | 1 No |
How is sign stored in Packed Decimal fields and Zoned Decimal fields?
Why we need to use redefine clause when we can define the variable seperately... what is actual need....
What kind of error is trapped by on size error option?
where do we use dyanamic call ? and where do we use static call pls give any example pls ?
How to retain the Duplicates in the one records?
What is the default value(s) for an initialize and what keyword allows for an override of the default?
How to declare if emp-name = AAAAA""BBB in working-storage section. After display emp-name should print like AAAAA""BB
Why do we use COMP-3 variables for computation, when we know that they are non displayable fields and require additional MOVE to numeric field before we populate it in output Reports?
How to display string in the reverse order using occurs clause?
Which of the following paragraphs is compulsory in every COBOL program? (a) SPECIAL-NAMES (b) PROGRAM-ID (c) FILE-CONTROL (d) OBJECT-COMPUTER
Explain the configuration section of a cobol program with examples of syntax.
how many maximum no of variables can be declared in linkage section ?