GithubHelp home page GithubHelp logo

teqed / teq-tools-for-i Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 12 KB

Some tools I've created for IBM Power i (AS400) systems to make common tasks more trivial.

License: MIT License

Batchfile 71.55% JavaScript 28.45%

teq-tools-for-i's Introduction

teq-tools-for-i

This repository is for storing some tools I've created for IBM Power i (AS400) systems to make common tasks more trivial.

To-do includes converting some unorganized notes and code snippets I have into some generically useful reference programs or scripts. Until then, this repo may be fairly empty.

Some of these tools may be intended for interfacing with RPG or CL programs from batch jobs, i.e. SSH.

findobj.clle

Accepts parameters for the CHKOBJ OBJ(&lib/&obj) OBJTYPE(&type) command, monitors for messages, and returns a value based on the result.

sqlexist.clle

CL procedure for checking the existence of SQL records using RUNSQL SQL(&statement).

Creates a temporary view and writes a record if the selection criteria finds any results, then reads the view to see if any SQL records were found.

Normally, using RUNSQL in CL doesn't give you access to any of the results, so writing to a temporay view and using RCVF is a roundabout way of accomplishing what we're looking for.

I'm not especially pleased with this method, especially since CL requires physical files to exist at compile time so that they can retrieve their columns and assign them as variables. This means that (unless you get creative) you can't use files that you want to exist in QTEMP, and you have to create (potentially empty) physical files in your development environment to compile the program, which may be dropped again every time you run the program.

Instead of continuing down this route of creating wrappers for RUNSQL in CL, I'm exploring some other methods of accessing DB2 on IBMi, like ODBC, which may be seen in other projects.

testpgm.clle

Program that tests other programs that use return values, by using CALLPRC PRC(&procedure) PARM(&parameters). Provides an in-between for procedures that can't be run interactively, but allows changing the variables as you might like. At any given commit these parameters might be tweaked for testing specific programs.

teq-tools-for-i's People

Contributors

teqed avatar

Watchers

 avatar  avatar

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.