using redefine can you redefine lower variable size to
higher variable size?

Answers were Sorted based on User's Feedback



using redefine can you redefine lower variable size to higher variable size?..

Answer / santosh mahajan

Yes. Redefines just causes both fields to start at the same
location. For example:-

01 WS-XYZ PIC X(1).

01 WS-XYZ-R REDEFINES WS-XYZ PIC(2).

MOVE 11 TO WS-XYZ-R
DISPLAY WS-XYZ will show 1
DISPLAY WS-XYZ-R will show 11

Is This Answer Correct ?    10 Yes 2 No

using redefine can you redefine lower variable size to higher variable size?..

Answer / snehatechm

YES

Is This Answer Correct ?    5 Yes 1 No

using redefine can you redefine lower variable size to higher variable size?..

Answer / harikumr ch

Syn:Levelnumber dataname-1 redefines data-name-2

The data-name-1 & data-name-2 must be of same size.(From
level 02).Incase of 01 level, the size of data-name-1 must
not exceeds that of data-name-2.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More COBOL Interview Questions

Are you comfortable in cobol or jcl?

0 Answers  


In an EVALUATE statement, can I give a complex condition on a when clause?

2 Answers  


What are the two search techniques ?

2 Answers   iGate,


I need to compare two VSAM files, both having 'number' as key. If there is a matching record, write the data into another VSAM file. How will it be possible.

1 Answers   DSRC,


can we use go to statement inline-perform?

7 Answers   IBM,


What is the difference between subscript and index?

1 Answers  


what if any ,is the syntex error in the following piece of code 01 B PIC A(7) 02 C PIC 9(4) ........ IF(B NUMERIC) ADD 10 TO C a.the condition in the if statement is wrong b.noting is wrong c.because C is initialised.ADD 10 TO C is wrong d.both B and C shoud have same size.

5 Answers   TCS,


In which area will you utilize 88 level items in cobol?

0 Answers  


SSRange is used to do a range check on which of the Following. SUBSCRIPT,INDEX,REFERENCE MODIFICATION,Run-time option.

3 Answers   Lehman Brothers,


what is sysncpoint?

1 Answers   IBM,


How To move a value to an array using move verb?

3 Answers   IBM,


What is a report item?

0 Answers  


Categories