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
What is the LINKAGE SECTION used in COBOL?
What is the difference between structured cobol programming and object alternativelyiented cobol?
What are the various section in data division and briefly explain them.
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
Whats the difference between search & search ALL?
How to print 10 to 1 if the input have only 10 digit number?
How do you get the data to code the BMS macro?
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?
What guidelines should be followed to write a structured cobol prgm?
What rules are followed by the search verb.
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
how to refer the data field?
What do you understand by psb and acb?
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
What is the Purpose of Pointer in the string?