SQL Joins in the world of IBM i - like Join Logical Files but sexier
In my ongoing mission to use SQL rather than the older style direct file IO (which I will called DDS) - I've found lots of improvements and things that I really like about SQL in general. One of the...
View ArticleSQL RPG and the annoying compile COMMIT *NONE thing
SQL has been a major game changer in the RPG programming world.I first played with SQL back the golden days of RPG3 and RPG400 when we were all wrapped up in using Commitment Control. Journalling files...
View ArticleVarying fields in DDS after SQL:
I found this terrific article over at IT Jungle. It's an oldie but a goldieWorking with Varying-Length Database FieldsHey, David:We use a utility to replicate data files between our iSeries system and...
View ArticleSystem21 - Phone numbers for any customers on sales orders
During a meeting this morning, I was asked to provide a list of all Customer phone numbers for any System21 Customers that have ever been used on a Sales Order.Perhaps this sounds like a complicated...
View ArticleSpeeding up SQLRPGLE using indexes instead of logicals
SQL is a wonderful beast for quickly getting data from huge tables (aka Files). The trouble with SQL is that it's so very simple to use; programmers get lazy and sometimes forget to do the analysis to...
View ArticleCPF327E Unable to move file into a new library
That was a weird error!I created a work file in my library, by copying an existing file from another library. I tinkered with it, loaded it with data and then wanted to rename it and store it alongside...
View Articleupgrade from PF to DDL (SQLSTM) using TURNOVER from UNICOM SOFTLANDING
When you do the RUNSQLSTM to create your SQL Objects - Do not qualify library names but use the Turnover variables just like you would define PDM variables:? RUNSQLSTM SRCFILE("&SL"/"&SF"...
View ArticleReplace IBM i Native File Access with SQL
I found this excellent article by Birgitta Hauser (BHA@Toolmaker.de), Software and Database Engineer, Toolmaker Advanced Efficiency GmbHJust in case it vanishes I'm going to reproduce it here and have...
View ArticleAdopting Authority - Problems with SQL RPG Programs
RPG PROGRAM USER(*OWNER) - Adopts the object owner level of AuthorityMost IBM i Programmers are aware of the USER(*OWNER) compile setting -- anyone calling this program will adopt the authority level...
View ArticleRPGLE and SQLRPGLE - The dreaded USRPRF(*OWNER) conundrum
How does USER(*OWNER) work with RPGLE Programs?If you compile IBM i programs using USRPRF(*OWNER) then they will adopt the security setting for the program owner at runtime. #sometimesIf you are...
View Article
More Pages to Explore .....