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
In COBOL programming, what is PERFORM? What is VARYING?
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
What is link edit in cobol?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
i want a program using by if, evaluate , string, unstring, perform, occurs?
What is length is cobol?
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
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
What is inspect in cobol ?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
What is the difference between external and global variables in COBOL?
How do you define a variable of comp-1 and comp-2?
What is the utilization of copybook in cobol?
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?