Here are some AS/400 utilities that you may find useful. We do assume that anyone interested in these commands has a certain amount of technical knowledge about the AS/400 and will be able to figure out most of the stuff here. Please feel free to contact Herb if you have any questions or comments.
The source code for these utilities is stored as TEXT files and you can either download the source and use CPYFRMPCD to copy them into a source file or just CUT/PASTE the source right into a source member. Each component is stored as a text file (.txt extension) with the following naming convention: Zxxxxxxxxx_ttt.txt
This first block of utilities consists of a command and an associated CL command processing program (except for ZBRKMSGPGM, which is only a CL program). We will be adding further instructions to some of these commands but, for now, be aware that any of the RTV (retrieve) commands should include the ALLOW(*IPGM *BPGM) keyword on the CRTCMD. |
|
This next block of utilities is a little more complex. I do most of my AS/400 coding in C (because I don't have an RPG compiler and I'm NOT doing them in COBOL!) and these ones do have an associated C program. I realize that most AS/400 shops don't have a C compiler so I have also included a file that contains the compiled C program. The programs are compiled under V3R1M0 and were then saved to a save file. I used my variation of CPYFRMSAVF (from QUSRTOOLS) to convert the save file to a physical file and then used CPYTOPCD to copy the physical file to shared folders. You will need to reverse the process in order to use the programs. Please see ZCPYSAVF (Copy from/to save file) for a better description of the process or to download code to build the utility. |
|
This next block of utilities has no source code because I wrote them in C a long time ago and don't have access to the source. Each command will consist of either 1 or 2 ZIP files that you can download. The first ZIP file (in the "ZIP File" column) will be created with the ZCPYSAVF (Copy from/to save file) utility and you will need to reverse the process in order to install the components on your system. The second ZIP file (in the "FTP File" column) contains a binary copy of the save file that was FTP'd onto a PC. If you have FTP installed and running on your AS/400 this may be a more desirable option for you. I will add more detailed instructions later but for now just create a save file on the AS/400 and FTP the unzipped version of this file right into it and use RSTLIB to restore the objects. If you want more details feel free to email Herb either at home or work. |
|