Wishing you, and your family, a happy Thanksgiving.
From AS/400 to IBM i, advice about programming, operations, and anything else I can think of.
Have you have upgraded your connections between systems from using the default SNA communication protocol to IP?
In a previous post I wrote about using the Add Server Authority Entry command, ADDSVRAUTE, to map user profiles on the local system to one on the remote for DDM files.
If you are using SQL to communicate between partitions, with the three-part name, your systems will use the Relational Database Directory Entries, RDBE, for the configuration between system, and that should be using IP connections too.
How can I tell who has server authority entries?
Yesterday, Thursday November 19, IBM announced that the new Technology Refreshes, IBM i 7.6 TR3 and IBM i 7.5 TR9, that were scheduled to be available today, November 20, have been postponed until Friday December 4.
You can read their announcement here.
The idea for this post came from a LinkedIn post by Pete Massiello. In it he mentioned a command I had not heard of before, ANZDFTPWD, and I decided to investigate it did to determine how I could use it.
IBM's definition of a default password is where the password is the same as the user profile. The Analyze Default Passwords command, ANZDFTPWD, can do three things:
Steps 2 and 3 can be combined.
If I type the command at a command line and press F4 to prompt the following screen is displayed:
IBM have published a couple of interesting guides in the past few days.
The first is the biannual update to the "IBM i on Power - Performance FAQ". This guide provides us, IBM i developers and administrators, with tips on how to measure and improve the performance of our IBM Power servers, IBM i partitions, the Db2 database, and the programs that run within it.
You can download the document from here.
The second is the "IBM Power11 performance optimization for IBM i" which endeavors to help us minimize the CPU utilization of our IBM i applications on IBM Power servers.
This document can be downloaded here.
I download these guides and read the passages I feel are relevant to my situation. I recommend you do the same with both of these.
I have always wanted the best way to identify which libraries, on the IBM i partition I was using, belong to IBM. I had come up with doing things like considering all libraries that start with "Q", "SYS", and "#". But that was never a guarantee to separate IBM's from others' libraries.
IBM gave me a way to identify their libraries, using the SQL OBJECT_STATISTICS table function. It allowed me to identify most of the IBM libraries, but not all. I have made some additions to what they told me to make it mostly work.
I need to use three columns from OBJECT_STATISTIC results:
IBM told me that any libraries created by the profiles QLPINSTALL and *IBM would allow me to identify what should be considered IBM libraries. On further investigation on several IBM i partitions I have found what I would also consider to be IBM libraries that were created by the user profile QSYS, or are owned by QSYS.
The statement I came up with is:
At IBM’s TechXchange I had the opportunity to expand the RPGPGM.COM-unity. You can see who joined, and I gave ribbons to, here. I am sure you will recognize some of the faces and names of the people.
If you see me at an IBM i event, feel free to come over and say "Hi". In all likelihood I will have a RPGPGM.COM-unity ribbon on me, and you can join the community. All I ask in return is a photograph of you with it.
If you would like to learn more about the RPGPGM.COM-unity click here.
One of what, IMHO, is the best modifications in the latest Technology Refreshes, IBM i 7.6 TR2 and 7.5 TR8, has been the new parameters added to the JOBLOG_INFO table function. These being:
I can view all of my job's joblog using the following SQL statement:
The Fall Technology Refreshes were announced at IBM’s TechXchange conference yesterday. IBM i TR3 and 7.5 TR 9 are planned to be available November 20 December 4, 2026.
What caught my eye in these are:
And many more cool things!
Thanks to the latest Technology Refreshes, IBM i 7.6 TR2 and 7.5 TR8, we can now give our sheets generated by GENERATE_SPREADSHEET real names, rather than "Sheet 1". This only works for Microsoft Excel, XLS and XLSX, and OpenDocument, ODS, spreadsheets.
There is a new parameter for GENERATE_SPREADSHEET, SHEET_NAME, that allows you to give the sheet a name. While there does not appear to be a limit in the number of characters you can use in this parameter, Excel has a limitation of 31 characters for a sheet name. Before you go and start making your sheet name 31 characters you need to read on to understand why your sheet names will need to be less than that.
In my examples I want to generate a list of names in Excel from the PERSON file I have used before. I want to concatenate the last and first names together, and sort the results by name.
Let me jump straight to my first example, generating an Excel spreadsheet in ACS' Run SQL Scripts, RSS.
I was notified on Monday that this website, RPGPGM.COM, for the second year has won an award from Feedspot.
Anuj Agarwal, founder of FeedSpot, informed me of this:
I emailed regarding your blog Rpgpgm.Com which was selected by FeedSpot as one of the Top 10 IBM Blogs on the web (2026 Edition).
This year RPGPGM.COM is ranked in eighth place.
Thank you Anuj, and the panel at FeedSpot, for this honor.