SAMPLES

Support email

www.MidrangeNews.com

Contact Us

SQL iQuery Logo

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.

MemberLast ModifiedViewsText
CJOB2018-06-20 16.51.52192inline C code for JOB() UDF (DO NOT COMPILE)
COSVER2018-06-20 16.51.52191inline C code for OSVER UDF (DO NOT COMPILE)
COSVRM2018-06-20 16.51.52185inline C code for OSVRM UDF (DO NOT COMPILE)
CRTVCMDD2018-06-20 16.51.5222inline C code for RTVMBRD UDF (DO NOT COMPILE)
CRTVMBRD2018-06-20 16.51.52159inline C code for RTVMBRD UDF (DO NOT COMPILE)
CRTVNETA2018-06-20 16.51.5241inline C code for RTVNETA UDF (DO NOT COMPILE)
CSYSINFO2018-06-20 16.51.52168inline C code for SYSINFO UDF (DO NOT COMPILE)
EDITCODES2018-06-20 16.51.52188RPG and DDS Edit Codes Table
EDITCODEVW2018-06-20 16.51.52162RPG and DDS Edit Codes Table
EDTCDE2018-06-20 16.51.52182RPG and DDS Edit Codes Table - Listing
IBMBLOG2018-06-20 16.51.52877IBM Db2 for i Blog article query
JOB2018-06-22 05.18.52189SQL UDF Source for JOB(jobname,'component')
MBRLIST2018-06-20 16.51.52439Example shows the use of our MBRLIST UDTF
MSGW2018-06-20 16.51.52769Detect & report jobs in Message Wait (MSGW) status
OSVER2018-06-20 16.51.52173SQL UDF Source for OSVER (COMPILE THIS)
OSVRM2018-06-20 16.51.52161SQL UDF Source for OSVRM (COMPILE THIS)
RTVCMDD2018-06-22 05.18.5219SQL UDF Source for RTVCMDD (COMPILE THIS)
RTVMBRD2018-06-20 16.51.52206SQL UDF Source for RTVMBRD (COMPILE THIS)
RTVNETA2018-06-20 16.51.5243SQL UDF Source for RTVNETA (COMPILE THIS)
SYSINFO2018-06-20 16.51.52223SQL UDF Source for SYSINFO (COMPILE THIS)

Copyright © 2015 Cozzi Productions, Inc. All Rights Reserved.