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 the difference between COBOL2 AND COBOL390?

0 Answers   L&T,


suppose there is one PF having two members PF1 PF2.PF has one unique key Emp ID.could you tell me uniqueness in PF will be effective across members as well ? assume emp iD 3333 is in member PF1 would same Emp id be exist also in member PF2 ?

2 Answers   Tesco HSC, Wipro,


What is the Linkage section? What is the Use and Why the parm length use alway "PARM-LENGTH PIC S9(4) or PIC S9 (4) COMP." any reason?.Please let me know any one... Cheers,Prasad

8 Answers   Syntel,


What is difference between com and com3? Eg. s9(4) so what is the memory it will occupy com and com3.

2 Answers  


What is the difference between next sentence and continue in cobol programing language?

0 Answers  






Difference between cobol and cobol-ii?

0 Answers  


Can we move SPACES to numeric field and ZEROES to alphabetic field? If yes what are the way doing this?

6 Answers   T systems,


What is different between variable length and fixed length?

2 Answers   TCS,


01 A pic 9(100) find record length of it

6 Answers   TCS,


which one is better among static call and dynamic call?

3 Answers  


what is level 66 means??

7 Answers  


Write a program to enter and display the names of students in a class using the occurs clause.

0 Answers  


Categories