Hi,
How can we convert S9(5)V9(2) Comp 3 to alphanumeric so that i can display the amount??
Thanks for the help.
convert S9(5)V9(2) Comp 3 to alphanumeric
-
- Registered Member
- Posts: 16
- Joined: Tue Jan 20, 2015 8:40 am
- Robert Sample
- Global Moderator
- Posts: 1903
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: convert S9(5)V9(2) Comp 3 to alphanumeric
Hello.
It's just a matter of moving your non-displayable value to a field that is displayable. So, for S9(5)V9(2), a field defined as -9(5).9(2) would give you a result which would be an minus sign (or blank if the number is positive) and your number with leading zeros. Changing the minus to a plus means the sign is shown whether positive or negative. A definition of -Z9(4)9.9(2) would give you a result without the leading zeros.
It's just a matter of moving your non-displayable value to a field that is displayable. So, for S9(5)V9(2), a field defined as -9(5).9(2) would give you a result which would be an minus sign (or blank if the number is positive) and your number with leading zeros. Changing the minus to a plus means the sign is shown whether positive or negative. A definition of -Z9(4)9.9(2) would give you a result without the leading zeros.
-
- Registered Member
- Posts: 16
- Joined: Tue Jan 20, 2015 8:40 am
Re: convert S9(5)V9(2) Comp 3 to alphanumeric
zum13Hello.
It's just a matter of moving your non-displayable value to a field that is displayable. So, for S9(5)V9(2), a field defined as -9(5).9(2) would give you a result which would be an minus sign (or blank if the number is positive) and your number with leading zeros. Changing the minus to a plus means the sign is shown whether positive or negative. A definition of -Z9(4)9.9(2) would give you a result without the leading zeros.
Thank u, this has worked.
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute