- Notifications
You must be signed in to change notification settings - Fork1
iSeries - Universal Compile with Source
License
cod-e-ash/UCompile
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This is part of myRPG Utils
series to help overcome some of the day-to-day activities which can be automated.
We usually compile our objects in source while testing. Also, there are some parameters that we need to change everytime before compilation. This program will help you with that.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
You need to have AS400 Machine access (duh!)
Create a RPGUtils Source File to store the files.
CRTSRCPF RPGUTILS
UCOMPILE
This is the main program.UCOMPCMD
Driver command source file.
Step 1.Upload all files to AS400 server, use ftp.DO NOT CHANGE THE MODE TO BINARY.
open pub400.com username password cd /QSYS.LIB cd YOURLIB.LIB cd RPGUTILS.FILE mput *.MBR disconnect quit
Step 2.Change the atribute type accordingly once uploaded.
UCOMPILE CLLE UCOMPCMD CMD
Step3.Use below command to compile.
CRTBNDCL PGM(YOURLIB/UCOMPILE) SRCFILE((YOURLIB/RPGUTILS) SRCMBR(UCOMPILE) REPLACE(*NO) CRTCMD CMD(YOURLIB/UCOMPILE) PGM(*LIBL/UCOMPILE) SRCFILE(YOURLIB/RPGUTILS) SRCMBR(UCOMPCMD) REPLACE(*YES)
Step4.Add new user option.
Enter commandWKRMBRPDM
and then goto user options usingF16
.
PressF6
to add a new user option.
SetOption asCP
. (Instead of CP, you can use any aything that you want for option.)
SetCommand asUCOMPILE(&L &F &N &S)
Now, instead of compiling withOption 14, you can useCP to compile with your own options.
Ashish Bagaddeo
This project is licensed under the Apache License v2.0 - see theLICENSE.md file for details
Thankswww.PUB400.com for hosting a public server.