[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
RE: [sqr-users] Number to Character
- Subject: RE: [sqr-users] Number to Character
- From: "Violet Martin" <vmartin@vccs.edu>
- Date: Wed, 4 Oct 2006 14:29:25 -0400
- Delivery-date: Wed, 04 Oct 2006 14:32:22 -0400
- In-reply-to: <s523a206.024@mailhost.vac-acc.gc.ca>
- List-id: "This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions." <sqr-users.sqrug.org>
- Thread-index: AcbnySw+iYqkzg6ESeuZdacTlhjtNgAGT/yA
- Thread-topic: [sqr-users] Number to Character
This code comes directly from a flat file I am creating:
Let $GPA = EDIT((&HS.EXT_GPA*100),'0000')
Violet Martin
-----Original Message-----
From: sqr-users-bounces+vmartin=vccs.edu@sqrug.org
[mailto:sqr-users-bounces+vmartin=vccs.edu@sqrug.org] On Behalf Of
PeterG Clark
Sent: Wednesday, October 04, 2006 10:58 AM
To: sqr-users@sqrug.org
Subject: [sqr-users] Number to Character
Hi folks,
Normally, this would be the sort of thing I would like to play with
until I got it working, but I am pressed for time and turning to the
tremendous knowledge base on this list :-)
I have a Number(25) field on a table (Oracle) that I know will never
contain more than three significant digits (i.e. 999) and I need to get
it into a 3 character field on a flatfile ... i.e. if the column
contains 7, I need to put 007 in the flatfile field, if it contains 29,
I need 029 to be in the flatfile field, 0 needs to be 000, 567 needs to
be 567, etc.
Anything I've tried with edits, to_char's, pads and trims isn't working
... or at least I am not hitting the right combination.
Thanks in advance.
_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users
_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users