View previous topic :: View next topic
|
Author |
Message |
Jayalakshmi
New User
Joined: 02 Sep 2005 Posts: 26 Location: Hyderabad
|
|
|
|
Is there any other way to convert alpha-numeric to num with using NUMVAL
Regards,
Jaya |
|
Back to top |
|
|
Doubts_ask
New User
Joined: 04 Oct 2005 Posts: 9
|
|
|
|
Use a REDEFINES clause.
Eg: If Var-1 is declared as PIC X(10), then declare Var-2 as below.
01 VAR-1 PIC X(5) VALUE '12345'
01 VAR-2 REDEFINES VAR-1 PIC 9(5).
Now VAR-2 will also have 12345 which is been declared as Numeric datatype.
Pls correct me If I am wrong.
Thanks. |
|
Back to top |
|
|
|