|
Chandana,
For a one-off, I would do this in iSeries Navigator and then cut & paste
the results into Excel.
If a production report, you need to do the usual printer file, read first
record, loop until eof, print (check for overflow + print), etc.
Hope this helps.
Glenn Gundermann
ggundermann@xxxxxx
(647) 272-3295
> I have the following SQL statement built in free code.
>
> Please advise, how to send this query results to a spoolfile, to print
> the report.
>
>
> EXEC SQL
> INSERT INTO TADYERRPF
> SELECT RPASTR, RPASTR*1 AS STORE, RPEMPL, RPLNM, RPFNM, RPMSG,
> (RPRMO*1000000)+( RPRDA*10000)+RPRYR AS DATE, RPRYR, RPRMO, RPRDA,
> RPFISY, RPFISW, (RPFISY*100)+RPFISW AS FISCAL
> FROM DBREPRINT WHERE RPERR1 <> 11
> ORDER BY RPASTR, RPEMPL, RPMSG, RPRYR, RPRMO, RPRDA
> With NC;
>
> Appreciate your kind assistance.
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.