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,150 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:       

  2017        2018              
Public schedule Sep Oct Nov Dec Jan Feb Mar Apr May Jun Jul Aug
Northampton   9   4 15     16        
We can run this course at our location or on your site – Please contact us for details

 

Schedule:

2017 / 2018
 
Sep  
Oct 9
Nov  
Dec 4
Jan 15
Feb  
Mar  
Apr 16
May  
Jun  
Jul  
Aug  
We can run this course at our location or on your site – Please contact us for details

 

Book course:

ISCLP CL Programming booking form
Please double check this!
Press 'Submit' below to send your reservation to Sierra. We will confirm the booking in due course. Thank you.
Sending