Code Monkey home page Code Monkey logo

libl's Introduction

libl

This program sets the library list when invoking a PASE program. It provides a thin wrapper around the qlichgll API. While PASE programs may not necessarily care about the library list, calls into native IBM i programs might; this provides a way for PASE-centric programs and scripts to cope with this.

Usage

Please consult the qlichgll documentation if anything seems unclear.

libl takes some flags; the remainder is used to invoke a program with the new library list. (This is because changing the library list only does it for the program it was invoked it; if run without flags; libl would change the list in itself and exit, which wouldn't be terribly useful.)

By default, flags not set will not alter that part of the library list.

  • -l: Add a library to replace the user part of the library list.
  • -L: Remove the user part of the library list.
  • -c: Change the current library.
  • -C: Remove the current library; essentially defaults to QGPL.
  • -p: Set the first product library.
  • -P: Set the second product library.
  • -r: Remove the first product library.
  • -R: Remove the second product library.

After these flags, the argument vector of the program to call is taken. While the -- to begin the argument vector of the program to call is not required, it clarifies that libl will no longer look for flags after it.

In the event that an error occurs, libl will print to stderr and set the return code.

Example

$ libl -c calvin -- system "dsplib lib(*curlib)"
 Library . . . . . . . . . . . . . . . . :   CALVIN
[...]
$ system "dsplib lib(*curlib)"
 Library . . . . . . . . . . . . . . . . :   QGPL
[...]
$ libl -c dummy -- system "dsplib lib(*curlib)"
libl: QLICHGLL returned exception code CPF2110

Building

The source is plain C99. It will need GCC and the system libiconv. To build, simply run make. It can be installed by sticking the created libl program somewhere on your $PATH.

libl's People

Contributors

nattynarwhal avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

itmentalist

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.