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
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
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.
What is the difference between PIC 9.99 and PIC9v99?
What the difference is between continue and next sentence?
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
What rules are to be followed while using the corresponding options?
how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)
Which Search verb is equivalent to PERFORM…VARYING?
For rewrite, why is it mandatory that file needs to be opened?
What are the various section in data division and briefly explain them.
input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?
What is the difference between perform … with test after and perform … with test before?
How do you reference the following file formats from cobol programs?
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.