View previous topic :: View next topic
|
Author |
Message |
raj_mainframe08
New User
Joined: 11 Sep 2007 Posts: 65 Location: Gurgaon
|
|
|
|
I have 1 record in input file with value
-639.54
I need to move this to S9(3)V9(2) COMP3 so that the above field can be converted to comp3 with the correct sign.
Note: The - sign in the input file can be anywhere depending on the actual value of the record i.e it can be -39.54
Can somebody please help me with this. Thanks. |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
See the NUMVAL intrinsic function in the Language Reference Manual. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Just a caution . . .
If the signed value is created by some proven program, NUMVAL can be your friend. If this data is from some kind of data-entry and the values have not been validated, NUMVAL abends if the value is not valid. . . |
|
Back to top |
|
|
|