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
What is rmode(24)
Whats the difference between search & search ALL?
What is amode(24)?
What are the access modes of START statement?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
What type of SDLC u followed? Why?
What is an in line perform? When would you use it? Anything else you wish to say about it.
Can a Search can be done on a table with or without Index?
Which mode is used to operate the sequential file?
What are literals?
What is Pic 9v99 Indicates in COBOL?
What is report-item in COBOL?
what is the use of outrecord?
How do define dynamic array in cobol.
what is amode(24), amode(31), rmode(24) and rmode(any)?