System i (AS/400, iSeries, i5) CL  Programming

Course Details:

Course code: ISCLP View/Download data sheet (PDF)
Duration: 3 Days Book Course
Price: £1,650 Return to Courses

Course Outline:

CL commands are integral to IBM i and when incorporated into programs many procedures can be automated and controlled in a very flexible manner. This course is aimed at programmers and support staff who wish to be able to automate and control operational procedures and system applications or modify and support existing CL programs and procedures.

Pre-requisites:

It is expected that delegates will be able to find their way around the system and have a basic understanding of objects, libraries, PDM, SEU, SDA (or RSE & RDi). The System Facilities course (ISSFC) covers all of these areas comprehensively.

Course content:

  Introduction to the language and environment:
   • When and Where CL commands can be executed
   • CL program source code & structure (CLP & CLLE)
   • Programs, Modules and Procedures (ILE v OPM CL Programming)
   • Compiling and Binding (CRTCLPGM, CRTBNDCL, CRTCLMOD, CRTPGM)
  Basic Operations Functions and Variables:
   • Declaring & initialising variables (DCL)
   • Changing values in variables (CHGVAR)
   • Receiving parameters (PGM)
   • Passing variables between programs & procedures (CALL, CALLPRC)
   • Intercepting errors (MONMSG)
   • Validating object existence (CHKOBJ)
   • Multi-member files and overrides (OVRDBF)
 
Using pre-defined messages & data items:
  • Retrieving system information (RTV commands)
  • Message Files, Message Descriptions and Message Queues
  • Using pre-defined messages (SNDUSRMSG, SNDPGMMSG, RCVMSG)
  Conditional & Repetitive processing:
  • Controlling logic with conditions (IF, ELSE, SELECT:WHEN, GOTO)
  • Grouping conditional actions (DO, ENDDO)
  • Repeating Code (DOUNTIL, DOWHILE, DOFOR)
  • Using Modern Sub-Routine coding techniques in CL
  Data Areas:
  • Define and use Data area objects and Local Data Area (*LDA)
  • Object Locking (ALCOBJ, DLCOBJ)
  • Job Control (DLYJOB)
 
Database Files:
  • Declaration (DCLF)
  • Creating Files from CL commands DSP… RUNQRY…
  • Reading Files in CL (RCVF)
  Display Files:
  • Declaration (DCLF)
  • How to create a basic display file (SDA/RDi)
  • Display, Read, Wait (SNDRCVF, WAIT)
  • Logic for a Display File program
  • Coding screen timeout with password check (CHKPWD)
  Tools to aid in discovering program bugs:
  
• Program Dump
 
 • Enabling debug for a program
 
 • Interactive Source Debug (OPM & ILE)
 
Creating Basic User Defined CL-Commands:
  • Program & Command Relationship
  • Using Command Source statements (CMD, PARM, PMTCTL, QUAL)

Follow on Courses:

To expand programming skills consider the RPG and SQL suite of courses.

Schedule:       

  2024                      
Public schedule Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
Northampton           3            
                                                           We can offer dates for this course on request – Please contact us for details.

 

Schedule:

2024
 
Jan  
Feb  
Mar  
Apr  
May  
Jun 3
Jul  
Aug  
Sep  
Oct  
Nov  
Dec  
We can offer dates for this course on request – Please contact us for details.

 

Book course:

ISCLP CL Programming booking form
Please double check this!
Please tick the box below to confirm that you agree to the Privacy Policy of Sierra Training.
Please tick the box below to confirm that you agree to the Terms & Conditions of Sierra Training.
Sending