Hi All,
Can anyone tell me how we can MOVE value of a X(19)
variable to a S9(17) COMP-3 variable?
Answer with an Example will be of great help.
Answer Posted / ram.g
Vamsi, u r wrong, you have to read the 2nd answer again...
we can't perform any numeric operations on arithmetic field
thats right for overcome that scenario only we are using
the method called redefine. when you redefine its pointing
to the same loacation only but just telling the MVS
consider the new picture clause for the new variable..one
thing is sure here which is nothing but truncation when you
try to move x(...) to comp-3 but we can perform arithmetic
operations for sure..you can try it out....
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
IF I mention stop run in CICS what happens?
What are the different open modes available in cobol?
) How do u handle errors in BMS macro?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
Name some of the examples of COBOl 11?
Define cobol?
For rewrite, why is it mandatory that file needs to be opened?
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.
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...)
What is an in line perform? When would you use it? Anything else you wish to say about it.
Why did you choose to work with ibm mainframe cobol programming?
What is the difference between PIC 9.99 and PIC9v99?
What rules are to be followed while using the corresponding options?
Explain how you can characterize tables in cobol?
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning