There are many different ways of getting source code and data out of the IBM i.
Continue readingCategory Archives: IBM i
ILE RPG procedures Proper-, Pascal- and CamelCase
A replacement for DISPL
There are a number of shortcomings using DISPL, such as the message to display can be maximum 52 characters.
Continue readingILE RPG procedures Num2BPre() and Num2SPre() to format numbers in short form
These procedure displays numbers in short form, that is with nomination as Thousand, Millions, Miliards etc.
Continue readingILE RPG procedure PopMnu() to display a popup menu
ILE RPG procedure FindFiles() to search the IFS for files, version 2
This procedure searches the IFS tree structure (including sub-directories) for files and directories having a name that matches the mask 🙂 Continue reading
ILE RPG procedure to split a filename into name and extension
This procedure splits a filename (must be without path name) into the name and the extension.
If the filename has more than one dot, the name and extension is split at the last dot.
This is version 2 of the SplitFn() procedure.
ILE RPG procedure to convert a string to upper/lower case – fast
Please note: As of April 2021, IBM has published PTFs for V7.3 and V7.4 that gives the ILE RPG langugage two new BIF (Build In Functions) to convert to upper and lower case. Continue reading
The program you wish you have written
Do you know the feeling? There is that program, that you just wish you got the idea for and wrote? Continue reading
At last! Useable data from IBM i using FTP
There are quite many ways to get data from the IBM i to a PC. FTP is a relative simple method to use, however if the file contains packed or binary fields you end up having a PC file containing strange characters. You have to find another, and typically more complicated, method to do it.
Today this changes as I will show you a Windows Command file, that will transfer a physical or logical file from the IBM i and create a PC file in CSV format, where packed and binary fields are converted to a readable format and columns having headers 🙂