Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Numeric Edited to Signed Packed Decimal

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

New User


Joined: 29 Nov 2005
Posts: 66
Location: Bangalore

PostPosted: Tue May 11, 2010 6:05 pm    Post subject: Numeric Edited to Signed Packed Decimal
Reply with quote

Hi Team,

I have an input file having a numeric field as 9(9).99- format. To make it readable for the next program, i want it in s9(09)V99 COMP-3 format.

I have done this in INSPECT / UNSTRING. but took many steps. Can anyone help with me with anything which is simple. So it can be used for many fields in my program.

Thanks.
Nirmal
Back to top
View user's profile Send private message

dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue May 11, 2010 7:08 pm    Post subject:
Reply with quote

if the picture clause is PIC 9(9).99- then it is a numeric edited item.
and what do you mean by readable? arithmetically computable?

Have you looked at 1.6.6.3 Converting to numbers (NUMVAL, NUMVAL-C)in the application Programmers guide
and 7.1.32 NUMVALin the application programmers reference?

as well as performing a search in this forum?
this topic has been discussed many, many times.
Back to top
View user's profile Send private message
nirmal.poikaikumaran

New User


Joined: 29 Nov 2005
Posts: 66
Location: Bangalore

PostPosted: Tue May 11, 2010 7:56 pm    Post subject:
Reply with quote

Hi Dick,

Thanks for bringing this up. First of all i have not encountered anything like this. So even if they have discussed, i would not know. I searched in my cobol manuals and couldn't find any. So i raised this here. The forums are a place where i can ask my questions and people who have had similar experience can help.

There nothing here to Complain!.

Thanks for the links.....

Nirmal
Back to top
View user's profile Send private message
Binop B

Active User


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

PostPosted: Tue May 11, 2010 9:30 pm    Post subject:
Reply with quote

Hi Nirmal,
Quote:
There nothing here to Complain!.
Clearly you have not read the Forum rules... have a look into that you would understand Dbz's (Dick's) comment... icon_neutral.gif
and also I shouldn't be updating you all these.. coz as per forum joining date, you are senior to me ... icon_razz.gif
Back to top
View user's profile Send private message
nirmal.poikaikumaran

New User


Joined: 29 Nov 2005
Posts: 66
Location: Bangalore

PostPosted: Wed May 12, 2010 6:58 am    Post subject:
Reply with quote

HI

Yeh, its been years, since I read it!... I will take a look at it.

Thanks
Nirmal
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Wed May 12, 2010 10:47 am    Post subject:
Reply with quote

nirmal.poikaikumaran wrote:
HI

Yeh, its been years, since I read it!... I will take a look at it.

Thanks
Nirmal

what ? Manuals or forum rule? icon_wink.gif
Back to top
View user's profile Send private message
Binop B

Active User


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

PostPosted: Wed May 12, 2010 10:51 am    Post subject:
Reply with quote

Escapa wrote:
nirmal.poikaikumaran wrote:
HI

Yeh, its been years, since I read it!... I will take a look at it.

Thanks
Nirmal

what ? Manuals or forum rule? icon_wink.gif
icon_lol.gif icon_lol.gif icon_lol.gif ... Good One Sambhaji... icon_biggrin.gif
Back to top
View user's profile Send private message
nirmal.poikaikumaran

New User


Joined: 29 Nov 2005
Posts: 66
Location: Bangalore

PostPosted: Wed May 12, 2010 10:03 pm    Post subject:
Reply with quote

Hi

Hhahahahaha The forum rules .......


Nirmal
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 Comparing Decimal and CHAR columns rakesh17684 DB2 7 Thu Oct 20, 2016 2:33 am
No new posts Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm
No new posts Casting a Binary Number to Numeric in... Bob Steinkraus Java & MQSeries 6 Tue Aug 09, 2016 5:58 pm
This topic is locked: you cannot edit posts or make replies. Alphanumeric to Numeric move on UNIX mistah kurtz COBOL Programming 16 Wed Jul 27, 2016 8:47 pm
No new posts Convert Decimal to hexadecimal Steve Ironmonger DFSORT/ICETOOL 5 Fri May 27, 2016 4:19 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us