my goal is to duplicate a table - and to use it as a table with _R... functions - not like just a generic stream file.
Do not think that IFS files are good for that.
And I want it in QTEMP as this temporary table must exist only inside this session.
From: c400-l-bounces@xxxxxxxxxxxx [mailto:c400-l-bounces@xxxxxxxxxxxx] On Behalf Of Bill Seurer
Sent: Friday, February 15, 2013 4:25 PM
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.