×
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.
What I usually do is to create a temporary file with the data I need and,
if it is a small table, I use easy400.net 's routines to convert it
directly to Excel. If the result set is big, I convert it to .CSV .
I don't know if you are aware of the CREATE table statement. Instead of
using an insert, you can create a table directly from your SELECT
statement. Using your example:
DROP TABLE MYLIB/MYFILE;
CREATE TABLE MYLIB/MYFILE AS(
select
f1file,f1mbr,f1mbrname,f1lib,f2file,f2mbr,f2mbrname,f2lib
from qgpl/viewAB
order by coalesce (f1lib,f2lib), coalesce(f1file,f2file),
coalesce(f1mbrname,f2mbrname)
) WITH DATA ;
Most of the time, as my queries can be sometimes a little bit complex, I
encapsulate them writing CREATE TABLE statements from inside a
SQLRPGLEprogram, using Dynamic
SQL.
HTH,
Luis Rodriguez
IBM Certified Systems Expert — eServer i5 iSeries
As an Amazon Associate we earn from qualifying purchases.
This thread ...
Re: Why Doesn't An Index Download In The Correct Order?, (continued)
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.