RPGLE Basic commands on Libraries
We are going to cover :-
- Conventions
- Create Library
- Change type of library
- Edit Library List
- Shortcuts
- To copy, rename and display library
- Delete library
Conventions
In As400 we have conventional names to create source physical files inside libraries based on the objects we keep in it. Some conventions are
- QRPGSRC — it has rpg programs
- QCLSRC-it has clp programs
- QDDSDTA- it has Physical and Logical files
- QDDSDSPF- it has Display Files, Display Files, Windows
- QDDSPRTF- it has Printer Files
Navigation
Library → Source Physical Files -> Programs
Similar to File Explorer as
Folder -> Folder -> Progams
Create Library
command: crtlib libraryName
To check whether library is created
Here the type of library is PROD.
During testing, in
PROD — objects inside the libraries can be updated
TEST— objects inside the libraries can not be updated
Change type of library
command: chglib
then give library name
Edit Library List
To compile the program inside the library, it should be added to Edit Library List.
command: edtlibl
Add your library name in the Sequence Number 0, then press Enter.
Now the Files can be compiled inside your library.
To display all libraries which is in edtlibl.
command: dsplibl
Shortcuts:
command: addlibl libraryName
library1 is added in Edit Library List using this command too. To check it see using edtlibl
To remove the library from Edit Library List
command: rmvlible libraryName
again you can check using edtlibl whether library is removed successfully.
To copy, rename and display library
command: wrklibpdm
Delete library
command: dltlib libraryName
Ending Note…
Coming up with “Hello world program” using rpgle.
Cheers and stay happy :)
To stay updated with the blogs please follow Life@Twenty. It will really really make me to love my passion even more and more.