Python on IBM i has proven itself as a tool for building utilities to create/read Excel files, transfer data, automate processes, call REST APIs such as Salesforce and ServiceNow, monitor applications, and more. What was missing was an easy way to use the power of Python from CL and RPG.
In 2019 we introduced you to the PYRUN command for running Python scripts from CL and RPG programs.
In this post we introduce you to QSHPYRUN, the next generation of PYRUN and part of Richard Schoen’s open source QShell on i Library – QshOni. QSHONI makes it easy for traditional CL and RPG programs to call Python utilities and use their output. This is supported via the QSHPYRUN command. QSHONI also supports general calls to other QShell, PASE and bash calls via the QSHEXEC and QSHBASH commands. This means QSHONI commands support calling Python, Node, PHP, Java and all things open source, making QSHONI much more versatile than the standalone PYRUN command was. The QSHONI commands can safely live side-by-side with the PYRUN command because they live in different IBM i libraries. This allows for migration to QSHPYRUN to happen as needed. Read more →
Using PHP with Rational Developer for IBM i
/2 Comments/in IBM i, PHP /by Calvin BuckleyHowever, there are some additional steps to take and quirks to be aware of. This post provides the steps for a trouble-free installation of PDT, with tips to resolve common issues.
Read more →
Integrate Python into CL & RPG on IBM i – 2021 Update
/1 Comment/in Open Source, Python, RPG /by Richard SchoenIn 2019 we introduced you to the PYRUN command for running Python scripts from CL and RPG programs.
In this post we introduce you to QSHPYRUN, the next generation of PYRUN and part of Richard Schoen’s open source QShell on i Library – QshOni. QSHONI makes it easy for traditional CL and RPG programs to call Python utilities and use their output. This is supported via the QSHPYRUN command. QSHONI also supports general calls to other QShell, PASE and bash calls via the QSHEXEC and QSHBASH commands. This means QSHONI commands support calling Python, Node, PHP, Java and all things open source, making QSHONI much more versatile than the standalone PYRUN command was. The QSHONI commands can safely live side-by-side with the PYRUN command because they live in different IBM i libraries. This allows for migration to QSHPYRUN to happen as needed. Read more →
Tutorial: Integrate Node.js with RPG without a Connector
/0 Comments/in Db2 for i, Node.js, RPG /by Alan SeidenLiam Allan has shown the power of using open source tools that are available to everyone. He recommends accessing IBM i business logic and data using open source tools, without proprietary connectors.
Read more →
How to Validate Self-Signed SSL / TLS Certificates from IBM i
/6 Comments/in Open Source, Web development /by Alan Seiden(Co-authored by Gautier Dumas and Calvin Buckley)
Self-signed certificates are most useful in situations where public trust of a certificate is unnecessary, such as:
Read more →
Storing Passwords Safely
/4 Comments/in PHP /by Calvin BuckleyRead more →
Set Up PHP Servers in Seconds with Siteadd
/0 Comments/in Apache, PHP, Seiden PHP+, Web development /by Amy LantzUPDATE: CommunityPlus+ PHP is now known as Seiden PHP. A modest but powerful utility “stole the show” during last week’s Lunch & Learn with Alan Seiden and Paul Tuohy. Packaged with CommunityPlus+ PHP, Seiden Group’s siteadd creates an Apache HTTP instance and a FastCGI configuration customized for your needs. In seconds, you’ll be able to launch a sample PHP page to test your new web instance.
How to Measure Python Speed with QCachegrind
/1 Comment/in Python /by Calvin BuckleyTo make it easier, the QCachegrind tool graphically displays profiler output from a variety of languages. We first introduced our build of QCachegrind as a PHP tool, but you can put your Python programs under the QCachegrind microscope as well.
Read more →
Reading and Writing Physical Files in a Shell using Rfile
/4 Comments/in IBM i /by Calvin BuckleyWant to read source member data from within an IBM i shell environment, such as SSH, QShell, or QP2TERM? Need to copy records from a text file to a physical file? Want a quick way to upload a save file without needing FTP?
IBM i’s Rfile command can do all these things easily. Rfile is designed to be easy to integrate into scripts, so it’s a great tool to have at hand.
Read more →
Node.js and IBM i – Getting Started Guide
/0 Comments/in APIs & Web Services, Node.js /by Liam Barry AllanThis guide will outline writing your first Node.js application. Node.js is a packaged version of the V8 Javascript engine, created by Google and shipped in Chromium. Although Node.js is cross-platform, specific tips for IBM i are given in section 8.
Detecting Memory Leaks in PHP Extensions During Development
/4 Comments/in PHP /by Calvin BuckleyAs official maintainers of the ibm_db2 and PDO_IBM extensions, we’ve been on a quest to find and eliminate any memory leaks from these popular PHP modules.
With such a comprehensive goal, we needed a strategy. For extensions that have comprehensive test suites we decided that, in addition to reviewing the usual regression tests, why not also use the tests to detect leaks?
What follows is a technical look at how we do it.
Read more →