Intermediate CL Programming

About Intermediate CL Programming

It's time to play with some more IBM i Control Language Programming (CLP). Let's take some example programs, focussed on Beginner to Intermediate skillsets and walk through them line by line...

Module Content

It's time to play with some more IBM i Control Language Programming (CLP). Let's take some example programs, focussed on Beginner to Intermediate skillsets and walk through them line by line...

Example CL Program - EMLOUTQ - What is in this CL program?

Let's take an IBM i File (SQL Table), convert it to a comma separated spreadsheet (CSV) and email it!

To list all files in an IFS (Integrated File System) folder using QSHELL on an IBM i system, you can use the "ls" command. Here's a simple example: 1. Open QSHELL: QSH 2. Navigate to the desired directory: cd /path/to/your/IFS/folder 3. List all files: ls -a If you want to list files with specific details or in a sorted manner, you can modify the command. For example, to list all files including hidden ones and sort them, you can use: ls -al | sort This command will list all files (-a), provide detailed information (-l), and sort the output.

This CONTROL LANGUAGE code example submits a job, then uses the program message queue to retrieve the information for that submitted job and share it back to the user. This is also added into my standard CL TEMPLATE - in this video I will walk you through the entire thing and explain how it works.

This CONTROL LANGUAGE code example sends a message to the USER. Waits for his/her reply and acts upon it. This is based on a request from a subscriber who wanted to "ask the user which iASP they want to use during their signon process" as part of a Proof of Concept. It's quick and dirty - but works great.

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