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

We are using the searching a table which is indexed, once the key is found, how can we get the occurance at which the key was found.

1 Answers  


What are the different ways to run a COBOL DB2 program using JCL?

2 Answers  


What are the access modes of START statement?

0 Answers  


Please let me know how the Eject verb works for page break.. I want to know the code, how it is used.

3 Answers  


What are the two search techniques ?

2 Answers   iGate,


what are decleratives in cobol?

0 Answers   GGG, Satyam,


What rules are followed by the search verb.

0 Answers  


EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?

0 Answers   Accenture,


if a>b continue display x. dispaly y. end-if display 1 display 2. display 3. what should be my output ?

3 Answers  


What is the difference between copy and include in cobol?

1 Answers  


can internal sort be applied to sort ksds files?

1 Answers  


how can u find out just by seeing wheater it is main program or sub program ? any two ways to identify reply soon ?

2 Answers  


Categories