
Starting with CL
CL Highlights
-
Operating system language for AS/400
-
Control functions of the OS
-
Can invoke system function from command line
-
Can be invoked from user menus
-
Can be coded and compiled into programs
-
Very powerful
-
Easy to learn
CL Command structure
Command Parameter
DSPLIB LIB(INVLIB)
DSP - Action LIB - Keyword
LIB - Item Abbr.. INVLIB - Value
Usage of Cl commands
-
In a batch job to control the flow of processing & calling other programs
-
To write simple menu applications & based on the option selected, call the corresponding program
-
To handle errors from a command or program execution by monitoring messages
-
To provide some predefined set of routine procedures for the system operator like saving/restoring of objects or libraries
-
To control group jobs in an interactive session
-
To control the jobs that may have to be run at the end of day, end of week, end of month etc.