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 / vamsi
First of all s9(17) comp-3 will occupy 9 bytes and X(19) has
19 bytes of memory.
When we move the text value to an comp-3 field, we will get
Soc7 error. We cannot move alpha values to numeric fields.
If the X(17) contain numeric values then we can move this
field to s(17) comp-3 field and we can move only 9 bytes
other data will be trucated.
Is This Answer Correct ? | 4 Yes | 8 No |
Post New Answer View All Answers
Difference between array and sub-script ?
example for sub strings ? and refernce modifications whit output pls
A table has two indexes defined. Which one will be used by the SEARCH?
What are the different rules for performing sort operation?
What is the Purpose of POINTER Phrase in STRING command in COBOL?
What are the different types of condition in cobol and write their forms.
Difference between cobol and cobol-ii?
Why occurs cannot be used in 01 level in COBOL?
What is the problem of ordered sequential files access?
How can you get the ksds file records into your cobol program?
HOw can I get the negative sign while deduct high value from low value
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.
how do you reference the rrds file formats from cobol programs
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
what is the difference between COBOL2 AND COBOL390?