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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the LINKAGE SECTION used in COBOL?

883


What is the difference between structured cobol programming and object alternativelyiented cobol?

746


What are the various section in data division and briefly explain them.

683


INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?

404


Whats the difference between search & search ALL?

5236






How to print 10 to 1 if the input have only 10 digit number?

802


How do you get the data to code the BMS macro?

1470


here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?

6788


What guidelines should be followed to write a structured cobol prgm?

661


What rules are followed by the search verb.

629


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

8135


how to refer the data field?

1793


What do you understand by psb and acb?

659


i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc

2094


What is the Purpose of Pointer in the string?

632