![Page 1: iSeries Lecture 4 ‘*’ (Asterix) When used before an ‘AS/400’ word, indicates that the word is a special value. eg. CRTLIB LIB(MYLIB) TYPE(*TEST) TEXT(‘Test](https://reader035.vdocuments.site/reader035/viewer/2022062715/56649d965503460f94a7fea1/html5/thumbnails/1.jpg)
iSeries
Lecture 4
![Page 2: iSeries Lecture 4 ‘*’ (Asterix) When used before an ‘AS/400’ word, indicates that the word is a special value. eg. CRTLIB LIB(MYLIB) TYPE(*TEST) TEXT(‘Test](https://reader035.vdocuments.site/reader035/viewer/2022062715/56649d965503460f94a7fea1/html5/thumbnails/2.jpg)
‘*’ (Asterix)
• When used before an ‘AS/400’ word, indicates that the word is a special value.eg. CRTLIB LIB(MYLIB) TYPE(*TEST) TEXT(‘Test Library)
• When used at the end of a word, indicates a generic combination of alphanumerics (wildcards).eg. WRKLIB TST*
![Page 3: iSeries Lecture 4 ‘*’ (Asterix) When used before an ‘AS/400’ word, indicates that the word is a special value. eg. CRTLIB LIB(MYLIB) TYPE(*TEST) TEXT(‘Test](https://reader035.vdocuments.site/reader035/viewer/2022062715/56649d965503460f94a7fea1/html5/thumbnails/3.jpg)
How does the AS/400 find Objects?
![Page 4: iSeries Lecture 4 ‘*’ (Asterix) When used before an ‘AS/400’ word, indicates that the word is a special value. eg. CRTLIB LIB(MYLIB) TYPE(*TEST) TEXT(‘Test](https://reader035.vdocuments.site/reader035/viewer/2022062715/56649d965503460f94a7fea1/html5/thumbnails/4.jpg)
iSeries finds Objects
• Qualified NamesLibrary/ObjectBTO230LIB/PGM1
• Using Library Lists!How are Library Lists sequenced?
![Page 5: iSeries Lecture 4 ‘*’ (Asterix) When used before an ‘AS/400’ word, indicates that the word is a special value. eg. CRTLIB LIB(MYLIB) TYPE(*TEST) TEXT(‘Test](https://reader035.vdocuments.site/reader035/viewer/2022062715/56649d965503460f94a7fea1/html5/thumbnails/5.jpg)
When would you use a Qualified Name to find an object?
• The object exists in two or more libraries on your library list.
• The object does not exist on your library list.
• You do not have authority to the object, but want to check if it exists.
![Page 6: iSeries Lecture 4 ‘*’ (Asterix) When used before an ‘AS/400’ word, indicates that the word is a special value. eg. CRTLIB LIB(MYLIB) TYPE(*TEST) TEXT(‘Test](https://reader035.vdocuments.site/reader035/viewer/2022062715/56649d965503460f94a7fea1/html5/thumbnails/6.jpg)
iSeries finds Objects
Note: Library Descriptions, Device Descriptions and User Profiles are stored in QSYS. All other Object Types can be stored anywhere.
![Page 7: iSeries Lecture 4 ‘*’ (Asterix) When used before an ‘AS/400’ word, indicates that the word is a special value. eg. CRTLIB LIB(MYLIB) TYPE(*TEST) TEXT(‘Test](https://reader035.vdocuments.site/reader035/viewer/2022062715/56649d965503460f94a7fea1/html5/thumbnails/7.jpg)
Library List
• Determine where a Job finds Objects
![Page 8: iSeries Lecture 4 ‘*’ (Asterix) When used before an ‘AS/400’ word, indicates that the word is a special value. eg. CRTLIB LIB(MYLIB) TYPE(*TEST) TEXT(‘Test](https://reader035.vdocuments.site/reader035/viewer/2022062715/56649d965503460f94a7fea1/html5/thumbnails/8.jpg)
Library Lists
• Each job has an attached Library List• Different Types of Libraries:
– System: IBM Supplied– Product: Added automatically when an IBM
product is used– Current: Defined by an individual user ID
User ID’s default Library
– User: Non-IBM Supplied LibrariesCreated by Business to organize
programs, files, etc.
![Page 9: iSeries Lecture 4 ‘*’ (Asterix) When used before an ‘AS/400’ word, indicates that the word is a special value. eg. CRTLIB LIB(MYLIB) TYPE(*TEST) TEXT(‘Test](https://reader035.vdocuments.site/reader035/viewer/2022062715/56649d965503460f94a7fea1/html5/thumbnails/9.jpg)
CL Syntax
Command-name
(space) parameter
![Page 10: iSeries Lecture 4 ‘*’ (Asterix) When used before an ‘AS/400’ word, indicates that the word is a special value. eg. CRTLIB LIB(MYLIB) TYPE(*TEST) TEXT(‘Test](https://reader035.vdocuments.site/reader035/viewer/2022062715/56649d965503460f94a7fea1/html5/thumbnails/10.jpg)
CL
• Control Language (CL) is a set of commands that you use to control operations and to request system-related functions on the IBM AS/400 computer.
![Page 11: iSeries Lecture 4 ‘*’ (Asterix) When used before an ‘AS/400’ word, indicates that the word is a special value. eg. CRTLIB LIB(MYLIB) TYPE(*TEST) TEXT(‘Test](https://reader035.vdocuments.site/reader035/viewer/2022062715/56649d965503460f94a7fea1/html5/thumbnails/11.jpg)
Naming of Commands
• Based on English!
• Combination of Verb and Noun
CRTLIB
LibraryCreate
![Page 12: iSeries Lecture 4 ‘*’ (Asterix) When used before an ‘AS/400’ word, indicates that the word is a special value. eg. CRTLIB LIB(MYLIB) TYPE(*TEST) TEXT(‘Test](https://reader035.vdocuments.site/reader035/viewer/2022062715/56649d965503460f94a7fea1/html5/thumbnails/12.jpg)
CL Commands
• Some typical nouns
CL Noun English DescriptionLIB Library Object that holds Objects
LIBL Library List List of Libraries for a Job
OUTQ Output Queue Object that stores Spool Files
JOBQ Job Queue Object that stores Batch Jobs to be processed
FD File Desc Description of file
F File Object that stores data
USRPRF User Profile Object that lists attributes about
a Sign On Id
![Page 13: iSeries Lecture 4 ‘*’ (Asterix) When used before an ‘AS/400’ word, indicates that the word is a special value. eg. CRTLIB LIB(MYLIB) TYPE(*TEST) TEXT(‘Test](https://reader035.vdocuments.site/reader035/viewer/2022062715/56649d965503460f94a7fea1/html5/thumbnails/13.jpg)
CL
• CL serves purposes comparable to Job Control Language (JCL) on mainframe computers.
• CL provides much more functionality than JCL.• • CL is similar to the PC-DOS commands you may use on a PC. DOS
operations like copying files, redirecting output, and making directories have direct CL counterparts.
• CL is very rich in function but it is not considered to be a high-level language (HLL). You would not, for example, write a payroll application using CL.
![Page 14: iSeries Lecture 4 ‘*’ (Asterix) When used before an ‘AS/400’ word, indicates that the word is a special value. eg. CRTLIB LIB(MYLIB) TYPE(*TEST) TEXT(‘Test](https://reader035.vdocuments.site/reader035/viewer/2022062715/56649d965503460f94a7fea1/html5/thumbnails/14.jpg)
CL
• CL commands may be entered into the system interactively on an AS/400 command line or included in a CL program
• group CL commands together, they may be compiled into a program object or submitted for interpretation during a batch process
![Page 15: iSeries Lecture 4 ‘*’ (Asterix) When used before an ‘AS/400’ word, indicates that the word is a special value. eg. CRTLIB LIB(MYLIB) TYPE(*TEST) TEXT(‘Test](https://reader035.vdocuments.site/reader035/viewer/2022062715/56649d965503460f94a7fea1/html5/thumbnails/15.jpg)
CL
1. Using what you know about abbreviated verbs and subjects, identify the function of the following AS/400 CL commands:
a. ADDLIBLE
b. CHGPGM
c. CLRPFM
d. RMVMSGD
e. DSPOBJAUT
![Page 16: iSeries Lecture 4 ‘*’ (Asterix) When used before an ‘AS/400’ word, indicates that the word is a special value. eg. CRTLIB LIB(MYLIB) TYPE(*TEST) TEXT(‘Test](https://reader035.vdocuments.site/reader035/viewer/2022062715/56649d965503460f94a7fea1/html5/thumbnails/16.jpg)
CL
1. What is a source physical file and what does it contain?
2. What steps would you follow to create a CL program?
3. When will the CL compiler not produce a CL program object?
![Page 17: iSeries Lecture 4 ‘*’ (Asterix) When used before an ‘AS/400’ word, indicates that the word is a special value. eg. CRTLIB LIB(MYLIB) TYPE(*TEST) TEXT(‘Test](https://reader035.vdocuments.site/reader035/viewer/2022062715/56649d965503460f94a7fea1/html5/thumbnails/17.jpg)
CL programming
1. Here are the four steps typically involved with creating a CL program:
1. Create a source physical file in your library to hold the source code for your CL programs QCLSRC
2. For each specific program, add a member to the source physical file. F6
3. Type all the needed CL commands into the source member SEU
4. Compile the CL program, creating a program object option 14
![Page 18: iSeries Lecture 4 ‘*’ (Asterix) When used before an ‘AS/400’ word, indicates that the word is a special value. eg. CRTLIB LIB(MYLIB) TYPE(*TEST) TEXT(‘Test](https://reader035.vdocuments.site/reader035/viewer/2022062715/56649d965503460f94a7fea1/html5/thumbnails/18.jpg)
![Page 19: iSeries Lecture 4 ‘*’ (Asterix) When used before an ‘AS/400’ word, indicates that the word is a special value. eg. CRTLIB LIB(MYLIB) TYPE(*TEST) TEXT(‘Test](https://reader035.vdocuments.site/reader035/viewer/2022062715/56649d965503460f94a7fea1/html5/thumbnails/19.jpg)
![Page 20: iSeries Lecture 4 ‘*’ (Asterix) When used before an ‘AS/400’ word, indicates that the word is a special value. eg. CRTLIB LIB(MYLIB) TYPE(*TEST) TEXT(‘Test](https://reader035.vdocuments.site/reader035/viewer/2022062715/56649d965503460f94a7fea1/html5/thumbnails/20.jpg)
![Page 21: iSeries Lecture 4 ‘*’ (Asterix) When used before an ‘AS/400’ word, indicates that the word is a special value. eg. CRTLIB LIB(MYLIB) TYPE(*TEST) TEXT(‘Test](https://reader035.vdocuments.site/reader035/viewer/2022062715/56649d965503460f94a7fea1/html5/thumbnails/21.jpg)
![Page 22: iSeries Lecture 4 ‘*’ (Asterix) When used before an ‘AS/400’ word, indicates that the word is a special value. eg. CRTLIB LIB(MYLIB) TYPE(*TEST) TEXT(‘Test](https://reader035.vdocuments.site/reader035/viewer/2022062715/56649d965503460f94a7fea1/html5/thumbnails/22.jpg)
![Page 23: iSeries Lecture 4 ‘*’ (Asterix) When used before an ‘AS/400’ word, indicates that the word is a special value. eg. CRTLIB LIB(MYLIB) TYPE(*TEST) TEXT(‘Test](https://reader035.vdocuments.site/reader035/viewer/2022062715/56649d965503460f94a7fea1/html5/thumbnails/23.jpg)
![Page 24: iSeries Lecture 4 ‘*’ (Asterix) When used before an ‘AS/400’ word, indicates that the word is a special value. eg. CRTLIB LIB(MYLIB) TYPE(*TEST) TEXT(‘Test](https://reader035.vdocuments.site/reader035/viewer/2022062715/56649d965503460f94a7fea1/html5/thumbnails/24.jpg)
![Page 25: iSeries Lecture 4 ‘*’ (Asterix) When used before an ‘AS/400’ word, indicates that the word is a special value. eg. CRTLIB LIB(MYLIB) TYPE(*TEST) TEXT(‘Test](https://reader035.vdocuments.site/reader035/viewer/2022062715/56649d965503460f94a7fea1/html5/thumbnails/25.jpg)
![Page 26: iSeries Lecture 4 ‘*’ (Asterix) When used before an ‘AS/400’ word, indicates that the word is a special value. eg. CRTLIB LIB(MYLIB) TYPE(*TEST) TEXT(‘Test](https://reader035.vdocuments.site/reader035/viewer/2022062715/56649d965503460f94a7fea1/html5/thumbnails/26.jpg)
![Page 27: iSeries Lecture 4 ‘*’ (Asterix) When used before an ‘AS/400’ word, indicates that the word is a special value. eg. CRTLIB LIB(MYLIB) TYPE(*TEST) TEXT(‘Test](https://reader035.vdocuments.site/reader035/viewer/2022062715/56649d965503460f94a7fea1/html5/thumbnails/27.jpg)