Quantcast
Channel: How to convert Decimal Values to Strings in COBOL - Stack Overflow
Viewing all articles
Browse latest Browse all 4

How to convert Decimal Values to Strings in COBOL

$
0
0

Given following code:

VAR X  PIC S9(7)V9(2).VAR Y PIC X(15)

Following code having compile error.

MOVE  X TO Y.    * compile error.

the error message is something like this "cannot move non-integer numbers to alphanumeric variable"

is there any way to fix this issue without making use of another variables (e.g. display vars) ?


Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>