Information about SQL programming
You should only do the declare once and only once. Take it out of this subroutine, and put it in your program initialization routine, or somewhere...
For better performance, I'd suggest a couple things: 1) Review the syntax of your SQL statement. There might be a more efficient way to write it. 2)...
** This thread discusses the article: TechTip: SQL and i5/OS Record Format Names ** ** This thread discusses the Content article: TechTip: SQL and...
You are on the right track. As IBM support once told me..."There is open, and there is open". The cursor you "close" in your RPG code is not really...
In DDS, I have the following definitions in a data dictionary: A CSTCDE 6A COLHDG('Constant Code') A ACCTYP R REFFLD(CSTCDE) A COLHDG('Accessory...
I had the same problem, and created a UDF to deal with it. As to how elegant or efficient the "solution" might be I can't say, but it gets the job...
How to specify member name in SQL. I am trying to update file with specific member name but I cant do it on interactice sql. Any help will be...
This has baffled me for a while. I will run an SQL statement using the DB Monitor and see what indexes are suggested. I will create that index by...
If I understood you, the VB code calls the CL, and the CL calls the RPG, which returns the Result set. Yes?
Does an AS400 only have one Relational database per partition? How does the AS400 reference the server name and database name that someone types in...
Hi denicolamd, Not knowing the context of your application it's not easy to make any suggestions. I assume you are accessing DB2 tables from the...
'JO%SEPH%' or 'JO_EPH%' for just a single character. The extra % at the end makes all the difference. I can't tell you exactly why, it just works. I...
So there is no need to build the first view ahead of time, you can define it on the fly, as you create sqlview2. <hr width=50 align=left>Code
** This thread discusses the article: Access Your iSeries Data Quickly and Simply ** ** This thread discusses the Content article: Access Your...
If this query is to be a permanent report you may want to try Query Manager, (STRQM) and imbed your SQL statements there and define a QM Form for it....
I am needing to access files on remote systems thru DDM files using an SQL RPGLE program, but I recieve an sqlcod error SQLCOD = -000000501 that says...
You might want to try this SQL command Select Field1, Field2, Fieldxyz, .... RRN(FileName) From FileName It will return the Relative Record number to...
** This thread discusses the Content article: Partner TechTip: Work with Non-iSeries Data in iSeries Applications ** 0
** This thread discusses the article: Embedded SQL and Dynamic Sorting Subfiles ** Hi Kevin I have been given a project that requires the need to...
I did not get a chance to test the whole thing but try this... update test1 a set a.zona12 = (select coalesce(b.zona22,a.zona12) from test2 b where...
Use this control to limit the display of threads to those newer than the specified time frame.
Allows you to choose the data by which the thread list will be sorted.
Order threads in...
Note: when sorting by date, 'descending order' will show the newest results first.
Forum Rules