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

Answers were Sorted based on User's Feedback



01 var1 pic x(10) 01 var2 redefines var1 pic 9(10). then in procedure division move 'ab..

Answer / s.v.venkata sivaprasad

redefines will reuse the memory with irrespective of date
type var1 is abcde and var2 also abcde.

Is This Answer Correct ?    22 Yes 0 No

01 var1 pic x(10) 01 var2 redefines var1 pic 9(10). then in procedure division move 'ab..

Answer / merguadithya111

var1 is abcde

var2 is also abcde

Is This Answer Correct ?    14 Yes 0 No

01 var1 pic x(10) 01 var2 redefines var1 pic 9(10). then in procedure division move 'ab..

Answer / abhishek_ibm

Both will be having the same value but the only difference
is when we use airthmetic operation then it will take hex
value .. I do think I am correct but kindly correct me if i
am mistaken.

Is This Answer Correct ?    6 Yes 0 No

01 var1 pic x(10) 01 var2 redefines var1 pic 9(10). then in procedure division move 'ab..

Answer / ashok

in x1 & x2 is haveing same value "abcd" and also memory
location also is same. thats why if u chang any values of
these atomatically chang both values.

Is This Answer Correct ?    2 Yes 0 No

01 var1 pic x(10) 01 var2 redefines var1 pic 9(10). then in procedure division move 'ab..

Answer / soumya santosini patnaik

soc7 abend occurs because according to move rules
alphaneumericfields can be moved to numeric fields only
when alphanumeric field consists of numeric data only.

Is This Answer Correct ?    0 Yes 5 No

01 var1 pic x(10) 01 var2 redefines var1 pic 9(10). then in procedure division move 'ab..

Answer / jaganmohanreddy

var1 will be abcde
var2 will be 0000000000

Is This Answer Correct ?    1 Yes 7 No

01 var1 pic x(10) 01 var2 redefines var1 pic 9(10). then in procedure division move 'ab..

Answer / adarsh562

abcde.....
0000000000


. indicates blank

Is This Answer Correct ?    0 Yes 6 No

01 var1 pic x(10) 01 var2 redefines var1 pic 9(10). then in procedure division move 'ab..

Answer / veena

************************************************************
************************************************************
************************************************************
It will give compilation error.

Is This Answer Correct ?    0 Yes 11 No

01 var1 pic x(10) 01 var2 redefines var1 pic 9(10). then in procedure division move 'ab..

Answer / vishal

DATA EXCEPTION ERROR

Is This Answer Correct ?    1 Yes 13 No

Post New Answer

More COBOL Interview Questions

What is normalisation?

2 Answers   IBM,


The order of precedence of arithmetic operators in an expression can be overridden with the use of (a) [] (b) () (c) {} (d) Any of the above

3 Answers   TCS,


What are the different forms of EVALUATE statement?

2 Answers   IBM, Micro Labs,


If I want to increase the Limit in GDG. What should I do?

1 Answers   IBM,


What is an in-line perform ?

4 Answers   Accenture,






how to display date in reverse order if the pic clause of the is numeric suppose date is 09032010 ==> need to print in 20100309 (pic clause is numeric)

6 Answers  


how to refer the data field?

0 Answers  


I have a occurs for 100 times but it has executed 101 time what could be the reason?

4 Answers  


What is the difference beetween Arrays and Tables in Cobol? please dont give the answer that arrays in cobol terminology is called tables......

3 Answers   BirlaSoft,


Write the syntax of a two dimensional array?

8 Answers   Honeywell, Xansa,


I have the requirement to compare the two files and pick up the matching records. File 1. file2 23 32 32 13 34 15 35 36 36 35 43 Get the matching records from this 2 files to out file. how you will do this in cobol program?

15 Answers   ADP, Broadridge, CTS, HSBC, L&T, RBS, TCS,


What are subroutines ? and how do we pass data to the sub routines?

2 Answers   Xansa,


Categories