Thanks for the reply Rob
Now you are just making me jealous
We do have plans to upgrade from 5.4 - but that's not helping me at this moment

Alan Shore
E-mail : ASHORE@xxxxxxxx
Phone [O] : (631) 200-5019
Phone [C] : (631) 880-8640
'If you're going through hell, keep going.'
Winston Churchill

-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of rob@xxxxxxxxx
Sent: Monday, August 10, 2015 2:54 PM
To: Midrange Systems Technical Discussion
Subject: Re: convert zoned to integer within SQL

At 7.2 I can do this:
values int(zoned(-1))

And I can do:
CREATE TABLE QTEMP.TEMP (
MYZONED NUMERIC (5 , 2) NOT NULL WITH DEFAULT)

INSERT INTO QTEMP.TEMP (MYZONED) VALUES(-1) WITH NC

INSERT INTO QTEMP.TEMP (MYZONED) VALUES(-1.2) WITH NC

SELECT INT(MYZONED) FROM QTEMP.TEMP


Rob Berendt
--
IBM Certified System Administrator - IBM i 6.1 Group Dekko Dept 1600 Mail to: 2505 Dekko Drive
Garrett, IN 46738
Ship to: Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com





From: Alan Shore <ashore@xxxxxxxx>
To: "midrange-l@xxxxxxxxxxxx" <midrange-l@xxxxxxxxxxxx>
Date: 08/10/2015 02:21 PM
Subject: convert zoned to integer within SQL
Sent by: "MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxx>



Hi everyone
Before I forget - we are on V5r4
Has anyone been able to convert a zoned field to integer within SQL
I know about and have used the api QXXZTOI, but I was hoping someone had
accomplished this in SQL
As always - all responses gratefully accepted

Alan Shore
E-mail : ASHORE@xxxxxxxx
Phone [O] : (631) 200-5019
Phone [C] : (631) 880-8640
'If you're going through hell, keep going.'
Winston Churchill


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.