I HAVE FOLLOWING DECLARATION.
02. A PIC X(10) VALUE 'XXXXXXXXXX'.
02. B REDEFINES A.
05. C PIC X(3).
05. D PIC X(3).
05. E PIC 9(3).
IN MY PROG, I HAVE
MOVE 1 TO E.
DISPLAY A.
WHAT WILL BE DISPLAYED AS A RESULT OF THIS?
PLEASE EXPLAIN THE ANSWER. THANKS.

Answer Posted / paray2x

1. you will get data exception as you cannot move 'XXX' to
a 9(3) field.

2. Since you have not initialised C,D it will be '......001'

Is This Answer Correct ?    7 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

846


What is the problem of ordered sequential files access?

811


What is link edit in cobol?

858


Which division and paragraphs are mandatory for a COBOL program?

792


How did the release of cobol/370 version 1.3 improve the performance of release 1.1?

754






In COBOL, what is the different between index and subscript?

851


) How do u handle errors in BMS macro?

1514


what is amode(24), amode(31), rmode(24) and rmode(any)?

790


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

845


How to use the same COBOL program in Batch and CICS on lines? explain with an example

2007


Write the code to count the sum of n natural numbers.

789


i want a program using by if, evaluate , string, unstring, perform, occurs?

4190


What is static and dynamic call in cobol?

678


Write a program that uses move corresponding.

773


how do you reference the variable block file formats from cobol programs

803