IBM i Stuff
- The target library will contain both source and objects.
- /copy file directives of the form /copy NBTYGPL/QRPGLESRC,ILEHeader should be changed to reflect the target environment. One option is to change the command to /copy QRPGLESRC,ILEHeader removing the explicit library reference. In this way the /copy will use the library list of the job that's running the BUILD command. Also, it's a good idea to use INCLUDE instead of COPY. The syntax is the same and it handles SQL related includes better.
- The build utility will create source PF's as needed and will replace any source PF members which have the same source file and member name. Source PF members which are not named the same as what the BUILD utility is importing will NOT be affected.
- check whether git is already installed
- from bash command line
- git --version // if version is returned then skip to Configure Git
- from bash command line
- configure VS Code as your default editor
- git config --global core.editor "code --wait"
- Clone github repository https://github.com/smartrocks/IBMi to an IBM i IFS
- Change IFS path and target library below as needed
- CRTBNDCL PGM(DAVIDKECK1/BUILD) SRCSTMF('/home/davidkeck/smartrocks/ibmi/qcllesrc/build.clle') TEXT('Copy src from IFS and build objects') DFTACTGRP(*NO) ACTGRP(QILE) DBGVIEW(*ALL)
- CRTCMD CMD(DAVIDKECK1/BUILD) PGM(DAVIDKECK1/BUILD) SRCSTMF('/home/davidkeck/smartrocks/ibmi/qcmdsrc/build.cmd') TEXT('Cpy IFS src and build')
- BUILD and F4 to prompt from IBM i command line
- BUILD LIBRARY(DAVIDKECK1) FOLDER('/home/davidkeck/smartrocks/ibmi')
- ex. Target library: DAVIDKECK1
- ex. Source IFS path: /home/davidkeck/smartrocks/ibmi
- BUILD LIBRARY(DAVIDKECK1) FOLDER('/home/davidkeck/smartrocks/ibmi')