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

In COBOL programming, what is PERFORM? What is VARYING?

672


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

1950


What is link edit in cobol?

775


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

711


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

4066






What is length is cobol?

652


can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech

1962


What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?

719


What is inspect in cobol ?

806


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

748


please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

1958


What is the difference between external and global variables in COBOL?

815


How do you define a variable of comp-1 and comp-2?

707


What is the utilization of copybook in cobol?

657


How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?

703