Twenty years ago these are the kind of things you had to know to work on the old AS400 systems. I found these on an old dusty corner of my homeserver. Enjoy the trip down memory lane or to use old RPG lingo AS400NERD CABEQ ‘1’ START
How to start a CL program ?
How many files can be declared in CL ?
Which precedes, the file declaration or variable declaration ?
Variable declaration and then File declaration.
What are the different types of variables available in CL ?
DEC, CHAR, LGL
In CL Program ‘&’ precedes ____ .
How do you pass parameters in CL ?
Using PARM keyword.
Can libraries be added to the library list through CL ?
Yes, using ADDLIBL.
What is the difference between CAT, TCAT and BCAT ?
CAT : Concatenate two variables or constants into one continuous string.
BCAT : Truncates all trailing blanks in the first character string ; one blank is inserted , then the two character strings are concatenated.
TCAT : Truncates all trailing blanks in the first character string, thetwo character strings are concatenated.
How do you end a CL program ?
What are the different types of messages in CL ?
Immediate message, Break message, Program message, User message.
How can errors be trapped in a CL program?
By using Monitor Message Command ( MONMSG )
What is the maximum length of a variable name in CL ?
Maximum 11 characters (including ‘&’)
What are the limitations of CL (compare to RPG) ?
You cannot use CL program to :
. ADD or UPDATE records in database files
. Use Printer or ICF files
. Use Program described files
. Use the concept of subfile (to display more than one record), but a single output message subfile is a special type of subfile that is supported well in CL
. Use subroutines.
You cannot declare more than one object (file) in a CL program.
IBM i Software Developer, Digital Dad, AS400 Anarchist, RPG Modernizer, Alpha Nerd and Passionate Eater of Cheese and Biscuits. Nick Litten Dot Com is a mixture of blog posts that can be sometimes serious, frequently playful and probably down-right pointless all in the space of a day. Enjoy your stay, feel free to comment and in the words of the most interesting man in the world: Stay thirsty my friend.
How to get a list of all files in an IFS folder
Sample CLP program template
Send IBM i Email including SQL Table Data automatically
CL coding tip #73 – using [COPYRIGHT]
Download and Update WebSphere Development Studio Client WDSC7 for free
How do we Check for Batch or Interactive in CLLE
Developerworks Connections Sunset – How to Extend RDi
Why use IBM i RDi?