Skip to content

mlitters/OSSILE

 
 

Repository files navigation

OSSILE

Welcome to the OSSILE project. This project is to serve three purposes:

  1. This project is to provide, via the open source community, a wide set of utilities for IBM i. They will get built into the OSSILE library.
  2. This project is to provide working examples of various things in ILE languages (RPG, C, C++)
  3. This project is to provide working examples of SQL (while not technically ILE, the examples are included here due to strong affinity and usefulness)

Currently included in OSSILE

Installing OSSILE on your IBM i

Method 1: download the .zip file and compile

  1. Download https://github.com/OSSILE/OSSILE/archive/master.zip and place it in IFS
  2. From a PASE-capable shell (ssh client, QP2term, etc), run:
  • jar xvf OSSILE-master.zip

  • cd OSSILE-master/main && chmod +x ./setup && ./setup

    To exclude an item from building, remove it from buildlist.txt or comment it out with a preceding '#'

Method 2: Download *SAVF

  1. Create a save file object on IBM i.
  2. Download https://github.com/OSSILE/OSSILE/blob/master/ossile.savfsrc and upload it to the IBM i, replacing the contents of the save file you've created
  3. Use the RSTLIB command to restore the OSSILE library from the save file. For example:
  • RSTLIB SAVLIB(OSSILE) DEV(*SAVF) SAVF(MYLIB/MYSAVF)

Method 3: Installing via Relic Package Manager

Each directory in /main/ is a seperate item, each are installable seperatly with Relic. The base command is RELICGET PLOC('https://github.com/OSSILE/OSSILE/archive/master.zip') PDIR('OSSILE-master/main/<ITEM>') PNAME(OSSILE), where <ITEM> is one of those directories. For example:

  • PDIR('OSSILE-master/main/crtfrmstmf')
  • PDIR('OSSILE-master/main/udtf_image_catalog_details')

OSSILE directory structure

These are the main directories within OSSILE:

main/

This directory houses complete, buildable code. In other words, it contains all the tools and utilities we list above as "included in OSSILE". Each subdirectory represents a separate buildable item.

code_examples/

This is where one can find examples of how to accomplish various tasks in ILE languages. They do not need to be working, compilable examples, though that is preferred. Inside this directory, there are subdirectories for the various ILE languages. The code examples are located in the appropriate lanuage directory.

sql_examples/

This directory houses examples of how to accomplish various tasks using SQL scripts.

Contributing

See CONTRIBUTING.md

About

A wide set of utilities for IBM i.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 72.8%
  • SQLPL 10.8%
  • Shell 7.5%
  • CLIPS 4.2%
  • Batchfile 2.6%
  • Makefile 2.1%