|
<<SNIP>>
DECLARE GLOBAL TEMPORARY TABLE NEW_FILE LIKE OLD_FILE;
Will create the table in QTEMP and will exist as long as the JOB
is active. The Job could mean Workstation if that's where it's
being called from.
When you execute this statement, you would want to check for
SQLCODE = -601. If equal then table already exists. So now
you need to delete all records to clear it.
Personally, I prefer to drop the table and rebuild it. Too
many times, I've needed to change the table and had phone calls
saying something wasn't working because the user still had the
old version of the table active in their workstation job.
As an Amazon Associate we earn from qualifying purchases.
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.