WORKING-STORAGE SECTION.
01 A PIC X(3) VALUE 'ABC'
01 B PIC 9(3).
PROCEDURE DIVISION.
MOVE A TO B.
STOP RUN.
OUTPUT IS: AB3
WHY AND HOW THIS IS HAPPENING.
Answer Posted / kamaldeep
I got AB3 as out put, when ever we are moving X(3) to 9(3) then 1st 2 bytes will be moved right(i.e. AB) but last byte will have '3' as C=+3
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How do you reference the following file formats from cobol programs?
what are decleratives in cobol?
Define static linking and dynamic linking.
Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.
Whats the difference between search & search ALL?
What is difference between static and dynamic call in cobol?
What is redefines clause in COBOL?
How do u write test cases?
What is the difference between PIC 9.99 and 9v99 in COBOL?
Describe the cobol database components?
How many sections are there in data division in COBOL?
What are the rules of the move verb?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
What are the different rules of SORT operation?
What is the default value(s) for an initialize? What keyword will allow for an override of the default?