
SQL iQuery™
Examples and Demo Scripts
The list below contains several SQL and iQuery example scripts and UDF/UDTF source members. They may be accessed in the QDEMOSRC file in the IQUERY library.
To run the samples use the RUNiQRY command as follows:
RUNiQRY SRCMBR(mmmmm) SRCFILE(IQUERY/QSQLSRC)
Where mmmmm is the name of the sample source member from the list below.
To compile the samples that are UDF/UDTF functions, use
RUNSQLSTM SRCMBR(mmmmm) SRCFILE(IQUERY/QSQLSRC)
Note that you "compile" the SQL code only, not the C-code as that is inline code that will automatically get compiled by the RUNSQLSTM command. Just be sure you store the example C code in the IQUERY library or change the INCLUDE statement within the SQL UDF/UDTF source code to point at whatever library you are using.
Click the Sample name to view the SQL iQuery source in that member.
Powered by COZTOOLS find out more
Click on a name in the list to view its contents.
Source Viewer © 2004 Robert Cozzi, Jr. All rights reserved.
Member | Last Modified | Views | Text |
CJOB | 2018-04-24 14.28.25 | 158 | inline C code for JOB() UDF (DO NOT COMPILE) |
COSVER | 2018-04-24 14.28.25 | 160 | inline C code for OSVER UDF (DO NOT COMPILE) |
COSVRM | 2018-04-24 14.28.25 | 158 | inline C code for OSVRM UDF (DO NOT COMPILE) |
CRTVMBRD | 2018-04-24 14.28.25 | 130 | inline C code for RTVMBRD UDF (DO NOT COMPILE) |
CRTVNETA | 2018-04-24 14.28.25 | 6 | inline C code for RTVNETA UDF (DO NOT COMPILE) |
CSYSINFO | 2018-04-24 14.28.25 | 141 | inline C code for SYSINFO UDF (DO NOT COMPILE) |
EDITCODES | 2018-04-24 14.28.25 | 157 | RPG and DDS Edit Codes Table |
EDITCODEVW | 2018-04-24 14.28.25 | 135 | RPG and DDS Edit Codes Table |
EDTCDE | 2018-04-24 14.28.25 | 150 | RPG and DDS Edit Codes Table - Listing |
IBMBLOG | 2018-04-24 14.28.25 | 814 | IBM Db2 for i Blog article query |
JOB | 2018-04-24 14.28.25 | 150 | SQL UDF Source for JOB(jobname,'component') |
MBRLIST | 2018-04-24 14.28.25 | 378 | Example shows the use of our MBRLIST UDTF |
MSGW | 2018-04-24 14.28.25 | 705 | Detect & report jobs in Message Wait (MSGW) status |
OSVER | 2018-04-24 14.28.25 | 142 | SQL UDF Source for OSVER (COMPILE THIS) |
OSVRM | 2018-04-24 14.28.25 | 131 | SQL UDF Source for OSVRM (COMPILE THIS) |
RTVMBRD | 2018-04-24 14.28.25 | 173 | SQL UDF Source for RTVMBRD (COMPILE THIS) |
RTVNETA | 2018-04-24 14.28.25 | 8 | SQL UDF Source for RTVNETA (COMPILE THIS) |
SYSINFO | 2018-04-24 14.28.25 | 192 | SQL UDF Source for SYSINFO (COMPILE THIS) |