can u give result for the fallowing example...
05 a pic 9(2)
05 b redifines a pic x(2).
move 'xy' to b.
display a,b.

Answer Posted / lakshmisudha

it display answer is xyxy
first xy for a and second xy for b.
only b will use same memory area it doesn't consider type of
datatype

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between Global and External Variables?

657


Define cobol?

856


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

639


How do you reference the following file formats from cobol programs?

691


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

737






Name the sections present in data division.

696


input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.

1772


Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?

620


How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

1921


what are decleratives in cobol?

1825


how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

1642


What is the Purpose of POINTER Phrase in STRING command in COBOL?

711


if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need

849


Have you used comp and comp-3 in your project? And how?

2003


What is rmode(24)

676