View previous topic :: View next topic
|
Author |
Message |
aimprabhu
New User
Joined: 12 Aug 2008 Posts: 11 Location: chennai
|
|
|
|
Hi ,
i have an requirement . I need to move alphanumreic to numeric
05 A PIC X(7)
05 B PIC 9(7).
.
.
MOVE A to B
The value of A is 1234567.The same value has to be displayed in b.
Also
IF the value of A is 12345
Then VALUE of B should be 0012345
Pls suggest. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
FUNCTION NUMVAL as long as you're running on a recent COBOL. |
|
Back to top |
|
|
aimprabhu
New User
Joined: 12 Aug 2008 Posts: 11 Location: chennai
|
|
|
|
Hi ,
Thanks for the reply.We solved it by using SET function |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
aimprabhu wrote: |
Hi ,
Thanks for the reply.We solved it by using SET function |
Please explain! |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
Yes, enquiring minds want to know? |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
yes, you can start by explaining why you think SET is a function.
after that, show us the code that you used, please.
your solution is a breakthrough! |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
I am really interested in the SET function and how you used it to solve this! |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
Code: |
SET B TO CORRECT VALUE |
No problem. |
|
Back to top |
|
|
|