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 / garry
Correct answer is : (As already explained and corrected by Duboisa )
C = xxx
D = xxx
e = 001
So A = xxxxxx001x
100% assured!!
Any difference can be routed or discussed at : thespider390@hotmail.com
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What is a report item?
For rewrite, why is it mandatory that file needs to be opened?
In COBOL programming, what is PERFORM? What is VARYING?
What is the compute verb? How is it used?
example for sub strings ? and refernce modifications whit output pls
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
How are the next sentence and continue different from each other?
What are the different open modes available in cobol?
How to know whether the module is dynamical or statistical?
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
how do you reference the rrds file formats from cobol programs
Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.
Have you used comp and comp-3 in your project? And how?
Give some examples of command terminators?
Write a program to enter and display the names of students in a class using the occurs clause.