RPGLE Basic commands on Libraries

Life@Twenty
3 min readMar 22, 2024

--

We are going to cover :-

  1. Conventions
  2. Create Library
  3. Change type of library
  4. Edit Library List
  5. Shortcuts
  6. To copy, rename and display library
  7. 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

  1. QRPGSRC — it has rpg programs
  2. QCLSRC-it has clp programs
  3. QDDSDTA- it has Physical and Logical files
  4. QDDSDSPF- it has Display Files, Display Files, Windows
  5. 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.

--

--

Life@Twenty

Hey all, one day I came to know that knowledge & experience can't be stolen from the person,but these valuables can be learnt from sharing.That's why I am here.