Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref

Author Message
apsar.kogatam
Warnings : 1

New User

Joined: 27 Jun 2008
Posts: 33
Location: CHENNAI

 Posted: Wed Mar 03, 2010 12:00 pm    Post subject: difference beween alphanumeric and numeric in cobol Hi, Plz explain me the difference beween alphanumeric and numeric in cobol with a sample example. Can we move alphanumeric(x) to numeric(9) and also vice versa.

Binop B

Active User

Joined: 18 Jun 2009
Posts: 407
Location: Nashville, TN

Posted: Wed Mar 03, 2010 2:22 pm    Post subject:

Hi Apsar
 Quote: Plz explain me the difference beween alphanumeric and numeric in cobol with a sample example.

 Quote: Can we move alphanumeric(x) to numeric(9) and also vice versa.
What happened when you tried it ? or what is being said in the manuals ?

Both your questions are pretty basic stuff which you can understand just by having a look into the manuals or testing them on your own ...
CICS Guy

Senior Member

Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

Posted: Wed Mar 03, 2010 6:22 pm    Post subject: Re: difference beween alphanumeric and numeric in cobol

 apsar.kogatam wrote: Plz explain me the difference beween alphanumeric and numeric in cobol with a sample example.
 Quote: Can we move alphanumeric(x) to numeric(9) and also vice versa.
Numeric or numeric-edited:
When the category of the sending item is alphanumeric, alphanumeric-edited, national, or national-edited, the data is moved as if the sending item were described as an unsigned integer.
dick scherrer

Site Director

Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

 Posted: Wed Mar 03, 2010 8:37 pm    Post subject: Hello, If you move pic x fields to numeric fields without ensuring they are valid numerics first, you will introduce many problems - including data errors and abends . . .
 All times are GMT + 6 Hours
 Page 1 of 1

Search our Forum:

 Topic Author Forum Replies Posted Similar Topics Issue in suppressing leading zeros &a... Vijay_Sirisha COBOL Programming 21 Thu Jun 07, 2018 8:01 pm VBS to VB in COBOL and JCL srajendran2 COBOL Programming 12 Fri Jun 01, 2018 3:04 am Rexx code to find greater then symobl... Bharath Vikraman CLIST & REXX 8 Tue May 29, 2018 9:40 am How to convert 2 bytes into single by... pkmurali DB2 6 Fri May 25, 2018 1:41 pm SYSADATA - COBOL - Structure displace... ganasrinivasan COBOL Programming 3 Thu May 24, 2018 9:45 pm

 © 2003-2017 IBM MAINFRAME Software Support Division
 Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us