× 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.




JK,
All else failing, you could at least launch an SQL select request by
writing the SQL statement to a source file and executing that via the
RUNSQLSTM cmd,
(not certain if RUNSQLSTM needs ST1) otherwise there is an ancient
technique for running SQL without ST1 by creating a generic *QMQRY,
(which, because it accepts parms to embed in the SQL statement, allows
you to embed the entire statement by passing each part of it as a parm).
The SQL could insert the result set into a work file which you would
have to read via RPG.

But, nothing is easier than Net.data for getting something on the web
(no cost since you've already got it)

Peter

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of johnking@xxxxxxx
Sent: Thursday, 2 October 2008 9:29 a.m.
To: rpg400-l@xxxxxxxxxxxx
Subject: Creating SQL result set in RPG without 5722ST1

All,

Am experimenting with the excellent "RPG to the Web" articles published
earlier this year by SK and have run into a slight problem in that our
shop does not have
5722ST1 SQL Developer Kit so it isn't possible for me to compile SQLRPG.

I've had success in the past using QSQPRCED and SQL CLI to prepare and
execute SQL statements from RPG, but this is the first time I've needed
to create and return a result set. Presumably there are one or more API
calls that simulate "SET RESULT SETS" but my inexperience is showing as
I cannot put all the pieces together.

Can anyone point me in the right direction? Unfortunately, purchasing
5722ST1 isn't an option here - our iSeries shop is in the process of
being replaced by a 'nix system and I am specifically disallowed from
purchasing or installing any additional software during the process. All
education is on my dime and spare time...

Many thanks, JK



---- Msg sent via Internet America Webmail - www.internetamerica.com
--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing
list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/rpg400-l.

#####################################################################################
This correspondence is for the named person's use only. It may contain confidential or legally privileged information, or both. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this correspondence in error, please immediately delete it from your system and notify the sender. You must not disclose, copy or rely on any part of this correspondence if you are not the intended recipient. Any views expressed in this message are those of the individual sender, except where the sender expressly, and with authority, states them to be the views of Veda Advantage. If you need assistance, please contact Veda Advantage on either :- Australia 133124 or New Zealand +64 9 367 6200

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.