Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to Convert alpha-numeric to num with using NUMVAL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
Jayalakshmi

New User


Joined: 02 Sep 2005
Posts: 26
Location: Hyderabad

PostPosted: Mon Nov 28, 2005 12:10 pm    Post subject: How to Convert alpha-numeric to num with using NUMVAL
Reply with quote

Is there any other way to convert alpha-numeric to num with using NUMVAL

Regards,
Jaya
Back to top
View user's profile Send private message

Doubts_ask

New User


Joined: 04 Oct 2005
Posts: 9

PostPosted: Mon Nov 28, 2005 2:08 pm    Post subject: Re: Is thr any othr way to cnvt alpha-num to num wt using nu
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Moving a COMP-3 Variable to a Numeric... ajayachander COBOL Programming 2 Thu Dec 14, 2017 5:46 pm
No new posts Can EDCICONV convert EBCDIC to ASCII... natt.sut IBM Tools 3 Fri Nov 17, 2017 8:46 pm
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am
No new posts Remove leading spaces from numeric field rexx77 SYNCSORT 6 Wed Sep 06, 2017 2:15 am
No new posts Convert rows and column into JSON for... Dinesh Manivannan DB2 2 Sun Sep 03, 2017 6:50 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us