Peter,
I liked your original idea more. It seemed to be more efficient - especially from the programming point of view.
-----Original Message-----
From: c400-l-bounces@xxxxxxxxxxxx [mailto:c400-l-bounces@xxxxxxxxxxxx] On Behalf Of Daransky, Peter
Sent: Friday, February 15, 2013 4:31 PM
To: Bare Metal Programming IBM i (AS/400 and iSeries)
Subject: Re: [C400-L] Creating temporary table
... good idea, if you create C Module with CRTCMOD SYSIFCOPT(*NOIFSIO), then tmpnam() returns a name in QTEMP.
-----Original Message-----
From: c400-l-bounces@xxxxxxxxxxxx [mailto:c400-l-bounces@xxxxxxxxxxxx] On Behalf Of Bill Seurer
Sent: Freitag, 15. Februar 2013 15:25
To: Bare Metal Programming IBM i (AS/400 and iSeries)
Subject: Re: [C400-L] Creating temporary table
c400-l-bounces@xxxxxxxxxxxx wrote on 02/15/2013 03:07:22 AM:
All these methods seem odd - that made me think that maybe there is
some better way...
Is there any way you can duplicate it without using CRTDUPOBJ? If so you could use the tmpnam function (or one of its cousins) to create a temporary file in IFS in /tmp without worrying about getting a conflict.
See:
http://publib.boulder.ibm.com/infocenter/iseries/v7r1m0/index.jsp?topic=%2Frtref%2Ftmpnam9.htm
--
- Bill
--
This is the Bare Metal Programming IBM i (AS/400 and iSeries) (C400-L) mailing list To post a message email: C400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/c400-l
or email: C400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/c400-l.
--
This is the Bare Metal Programming IBM i (AS/400 and iSeries) (C400-L) mailing list To post a message email: C400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/c400-l
or email: C400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/c400-l.
As an Amazon Associate we earn from qualifying purchases.