Download presentation
Presentation is loading. Please wait.
Published byMatthew Wells Modified over 9 years ago
2
IBC233 Lecture 2 Updated Summer 2006
3
Agenda Review What’s ODIN doing? Library List Websphere –Filters
4
Review Where will you find course notes? Where will you find schedules, labs and assignments? What is Client Access? Where do you get software for free? Who is PROFPLUTO?
5
What’s ODIN Doing? WoRK with ACTive JOBs System vs Subsystem Effects of an infinite loop
6
How the iSeries finds Objects When an object is created, it is created ‘in’ a particular library. To access an object, the iSeries needs to know what library the object is in. (CL) Commands prompt you for the object name and library name. *LIBL is the default for library
7
Library Lists The list of Libraries through which the iSeries searches to find objects. Similar to the DOS ‘Path’ concept Each Job has a library list *LIBL = library list
8
Library Lists cont’d A Library List consists of 4 parts: –System Libraries (up to 15) –Product Libraries (none, 1 or 2) –Current Library(1 only) –User Library ( up to 25) To view your library list - DSPLIBL
9
How do Libraries get on your Library List? When you sign on, your library list is built from: –QSYSLIBL (system value) –QUSRLIBL (system value) –Current library from User Profile Product libraries are added as needed by the system
10
Library List Commands ADDLIBLE –Adds an entry to a library list to the USER portion of the library list RMVLIBLE –Removes an entry from the USER portion of the library list EDTLIBL –Adds/Deletes/Changes entries on the USER portion of the library list
11
Library List Commands CHGCURLIB –Changes the Current Library CHGLIBL –Changes the Current Library and allows Add/Change/Delete to the USER portion of the library list. All Library List commands are listed on the CMDLIBL menu.
12
Question Why would we want to change our library list? Is BAC344LIB a Current Library or a User Library?
13
Hunt for the program Hello
14
Storing Objects When an object is created, it is stored in the library specified. If no library is specified, it is stored in *CURLIB (current library). If there is no current library, it is stored in QGPL library. Exception: Library Descriptions, Device Descriptions and User Profiles are always stored in library QSYS.
15
Writing a program CL Compiler Source Code QCLLESRC *FILE (PGM1) Compiled Listing (PGM1) PGM1 *PGM *OUTQ WRKSPLF Successfully Completed *MSGQ DSPMSG
16
CL Commands RTVJOBA – ReTrieVe JOB Attributes –Retrieves information about the environment RTVUSRPRF – ReTrieVe USeR PRoFile –Retrieves information about the User profile that started the job SNDPGMMSG –Sends a message to the bottom of the screen DCL – DeCLare CHGVAR – CHanGe a VARiable
17
ConCATenate Strings FLDA = ‘Cindy ‘ FLDB = ‘Laurin ‘ *CAT –Combines the strings, as they are –FLDA *CAT FLDB? *BCAT –Combines the strings by stripping the trailing spaces off the left string and replacing it with 1 character –FLDA *BCAT FLDB? *TCAT –Combines the string by stripping the trailing spaces off the left string. –FLDA *TCAT FLDB?
18
Steps to Creating a CL Program (using Websphere) Create a Source Physical File to hold the code if it doesn’t already exist Create a Source Member in the Source Physical File Type in code Exit and Save Compile
19
Properties of an Object DSPOBJD
20
Changing the User Profile Adding an initial program Use the CHGPRF command
21
Homework?
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.