× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Here is some code currently running in production on
our V7R1 system i:

C/EXEC SQL
C+ DECLARE GLOBAL TEMPORARY TABLE lcp980wk1
C+ ( delloc CHAR(4) NOT NULL,
C+ deldat NUMERIC(7,0) NOT NULL,
C+ delrte CHAR(5) NOT NULL,
C+ pocnumint NUMERIC(5,0) NOT NULL,
C+ outnum NUMERIC(13,0) NOT NULL,
C+ pocsfxvp CHAR(5) NOT NULL,
C+ vehnum CHAR(5) NOT NULL,
C+ vehdcr CHAR(30) NOT NULL,
C+ door CHAR(5) NOT NULL
C+ )
C+ WITH REPLACE NOT LOGGED
C/END-EXEC



-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Buck Calabro
Sent: Tuesday, January 07, 2014 11:27 AM
To: midrange-l@xxxxxxxxxxxx
Subject: Re: Global temporary tables not possible in IBM i DB2?

On 1/7/2014 12:38 PM, Matt Olson wrote:
http://publib.boulder.ibm.com/infocenter/dzichelp/v2r2/index.jsp?topic
=%2Fcom.ibm.db2z10.doc.intro%2Fsrc%2Ftpc%2Fdb2z_creationoftemporarytab
les.htm

Get syntax error when running the following statement:

CREATE GLOBAL TEMPOARY TABLE TEMPROD
(SERIALNO CHAR(8) NOT NULL,
DESCRIPTION VARCHAR(60) NOT NULL,
MFGCOSTAMT DECIMAL(8,2) ,
MFGDEPTNO CHAR(3) ,
MARKUPPCT SMALLINT ,
SALESDEPTNO CHAR(3) ,
CURDATE DATE NOT NULL);

[Matt-Olson2]


The DB2 for i reference is at:
http://pic.dhe.ibm.com/infocenter/iseries/v7r1m0/index.jsp?topic=%2Fdb2%2Frbafzintro.htm
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/midrange-l.


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.