Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

can we print comp 3 stmts how ?

3 Answers   Accenture, TCS,


I have a file it contain 10 records.i got abend at 8th record because of soc7.how do you know that perticular record got abend?

3 Answers   IBM,


What are the differences between OS VS COBOL and VS COBOL II?

1 Answers   IBM,


COBOL program to read the string ' BOMBAY' in reverse order as 'YABMOB'

8 Answers   Barclays, IBM,


I had 100 records and i want to execute last three records by using cobol programming?what will be coding?

4 Answers   IBM,


how do you move only numeric data from A to B 01 A pic x(10) value 'a1b2c34d5e'. 01 B pic x(5).

2 Answers   DELL, Mind Tree,


At the minimum, which division of COBOL is enough to be coded?

3 Answers   CTS,


What is file status 92?

3 Answers  


When we code these comp,comp1,comp-2,comp-3 and comp4 values. I know the differnece.I mean when we will prefer if it is new program.Explain in detail with memory examples. Thanks in advance.

1 Answers   CTS,


In file1 have 80 records are like d1,d2,d3......D80. File2 have 1000records are like a1d1,a1d2,a3d3.....Etc. I want matching records in file3 ? Plse tell me the matching logic???I want answer only in cobol ?Not using any tool or jcl?

1 Answers   CSC,


In my table having 3000 Records. How can I delete the 500th row? (we don't know what is data inside the table)

3 Answers   Keane India Ltd,


How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?

0 Answers  


Categories