Download and Install YAJL for IBM i

YAJL (Yet Another JSON Library) is a JSON parsing and generation library that can be used in RPG and other programming languages on the IBM i platform.

To download and install YAJL (Yet Another JSON Library) from Scott Klement's repository for IBM i, you can follow these steps:

Download YAJL

  • Visit Scott Klement's YAJL Page: Go to the Scott Klement's YAJL page.
  • Download the Source Code: On the YAJL page, you will find links to download the source code. You can download the latest version as a ZIP file. Look for a link that says something like "Download YAJL" or "YAJL Source Code" -- Or use the mirrored link in the RESOURCES section below

Transfer Files to IBM i

  • Transfer the Files: Use an FTP client (like FileZilla) or the IBM i Navigator to transfer the downloaded ZIP file to your IBM i system. You can place it in a library or a specific directory where you want to install YAJL.
  • Unzip the Files: If you transferred a ZIP file, you will need to unzip it. You can use a tool like unzip on the IBM i command line if you have it installed, or you can unzip it on your local machine and then transfer the unzipped files to the IBM i.

Compile the Source Code

  • Open a 5250 Session: Log in to your IBM i system using a 5250 terminal session.
  • Create a Library: If you don’t already have a library for YAJL, create one: CRTLIB LIB(YAJL) TEXT('YAJL Library')
  • Change to the Source Directory: Use the CD command to navigate to the directory where you transferred the YAJL source files.
  • Compile the Source: You will typically find a source member named YAJL or similar in the downloaded files. Use the following command to compile it: CRTRPGMOD MODULE(YAJL/YAJL) SRCFILE(YAJL/SRCSRC) SRCMBR(YAJL)
  • Create the Service Program: After compiling the module, create a service program: CRTSRVPGM SRVPGM(YAJL/YAJL) MODULE(YAJL/YAJL) EXPORT(*ALL)

Set Up the Environment

  • Add the Library to the Library List: Ensure that the library containing YAJL is in your library list. You can do this by using the ADDLIBLE command: ADDLIBLE LIB(YAJL)

Test the Installation

  • Run Sample Programs: YAJL usually comes with sample programs. You can run these to verify that the installation was successful. Look for sample programs in the source files and compile them similarly to how you compiled the main library.

By following these steps, you should be able to successfully download, install, and set up YAJL from Scott Klement on your IBM i system.

  • Documentation: Refer to the documentation provided in Scott Klement's YAJL repository for detailed instructions on usage and examples.
  • Dependencies: Ensure that your IBM i system has the necessary prerequisites for YAJL, such as the appropriate version of the operating system and any required APIs.
  • Support: If you encounter issues, consider checking Scott Klement's website or community forums for assistance.
  • Resources

    Resource 1

    YAJL for IBM i V7R1+ September 2024

    {"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}
    >