77 a pic x(4) value '1234' -----> instead of this 'abcd'
77 b pic 9(4) value zeros.
move a to b
what is the answers for both cases?
IS it possible? Give me elementary move rules briefly......
Answer Posted / amarnath reddy
Hi,
That is wrong answer. we can get that result when we MOVE A
TO B. result is 1234.
because A is declared as alphanumeric and B is declared as
numeric but here A is intialized all numeric values(1234)
only and move to the B is also numeric So not possible to
get any abend.
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
how do you reference the variable unblock file formats from cobol programs
what happens if parmparameter passes zero bytes to the program
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
What is the Purpose of POINTER Phrase in STRING command in COBOL?
2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic
Can we change the password using ALTER? anyone tried and changed?
Explain about different table spaces.
How are the next sentence and continue different from each other?
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
what is amode(24), amode(31), rmode(24) and rmode(any)?
Why did you choose to work with ibm mainframe cobol programming?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
Which Search verb is equivalent to PERFORM…VARYING?