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 are literals?
What is the difference between external and global variables in COBOL?
Why occurs cannot be used in 01 level in COBOL?
What are the different rules for performing sort operation?
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
example for sub strings ? and refernce modifications whit output pls
What are different data types in cobol?
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.
What is the difference between comp and comp-3 usage?
Describe the cobol database components?
Can you please let me know the centre name of INS certification in Kolkata.
I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
What is the problem of ordered sequential files access?
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com