Objects, Libraries, and Library Lists Chapter 4 Objects, Libraries, and Library Lists
Understanding AS/400 System Operations What Is an Object? An object is anything that exists, occupies storage, and on which operations (commands) can be performed. Understanding AS/400 System Operations
Understanding AS/400 System Operations Object Structure Object name, type, owner, library, etc. Object Header Portion This could be a files data, program statements, etc. Function Portion of Object Figure 4-1:Object Structure Understanding AS/400 System Operations
WRKOBJ Command Understanding AS/400 System Operations Work with Objects (WRKOBJ) Type choices, press Enter. Object . . . . . . . . . . Name, generic*, *ALL Library . . . . . . . . *LIBL Name, *LIBL, *CURLIB... Object type . . . . . . .*ALL *ALL, *ALRTBL, *AUTL... Bottom F3=Exit F4=Prompt F5=Refresh F12=Cancel F13=How to use this display F24=More keys Understanding AS/400 System Operations
Understanding AS/400 System Operations Object Attributes Name Type Owner name Creation time Save time Text description Library Attributes Creation date Save date Off-line size Change date Understanding AS/400 System Operations
EMPPAYLIB Library Contents EMPMST (*pgm) EMPMST(*file) EMPPGM1 (*pgm) QDDSSRC (*file) EMPPGM2 (*pgm) QCBLSRC (*file) Understanding AS/400 System Operations
Understanding AS/400 System Operations Objects in EMPPAYLIB Object Type Object Name *Pgm *File EMPMST EMPMST The same name can be used for different object types. The AS/400 determines which operations can be performed on the object based on its type. EMPPGM1 EMPPGM2 All objects of the same type must have different names. (RPG IV) *Pgm (CL) UPDPROG These two objects cannot have the same name because they are the same object types. AS/400 does not distinguish between sub-object types. Understanding AS/400 System Operations
Understanding AS/400 System Operations Library Contents Understanding AS/400 System Operations
Understanding AS/400 System Operations Object Attributes Understanding AS/400 System Operations
Understanding AS/400 System Operations Object Definition Source Code Compile CRTPF CRTLF CRTRPGPGM Etc. Object Code Understanding AS/400 System Operations
Understanding AS/400 System Operations Compile Commands Object Type Command Physical File CRTPF Logical File CRTLF RPG Program (not ILE) CRTRPGPGM CLP Program CRTCLP Display file CRTDSPF ILE RPG Program CRTBNDRPG Program CRTPGM Understanding AS/400 System Operations
Understanding AS/400 System Operations Example Object Types (*AUTL) Authorization List (*CLS) Class (*CMD) Command (*CTLD) Controller Description (*DEVD) Device Description (*DOC) Document (*DTAARA) Data Area (*DTAQ) Data Queue Understanding AS/400 System Operations
Understanding AS/400 System Operations Example Object Types (*FILE) FILE (*FLR) Folder (*JOBD) Job description (*JOBQ) Job Queue (*JRN & *JRNRCV) Journal and Journal Receiver (*LIB) Library (*LIND) Line Description (*MENU) Menu Understanding AS/400 System Operations
Understanding AS/400 System Operations Example Object Types (*MSGF) Message File (*MSGQ) Message Queue *MODULE Module (*Module) (*OUTQ) Output Queue (*PGM) Program (*PNLGRP) Panel Group (*SBSD) Subsystem Description (*SRVPGM) Service Program (*USRPRF) User Profile Understanding AS/400 System Operations
Functions Performed on Objects System Functions Object type verification: Object authority verification: Object lock enforcement: Object damage detection and notification: Understanding AS/400 System Operations
User Requested Functions on Objects Specific Functions Common Functions Apply to All Objects in General Understanding AS/400 System Operations
Managing Objects – Operational Assistant (OA) SETUP Customize Your System, Users, and Devices System: BIGBLUE To select an option, type its number below and press Enter: 1. Change system options 2. Cleanup tasks 3. Power on and off tasks 4. Disk space tasks 5. Backup tasks 10. Work with user enrollment 11. Change passwords for IBM-supplied users 20. Communications configuration tasks Type a menu option below ___ F1=Help F3=Exit F9=Command line F12=Cancel Understanding AS/400 System Operations
Understanding AS/400 System Operations Libraries The basic building block of your work on the AS/400 will be the library. A library, which is itself an object, is a container for objects. Understanding AS/400 System Operations
PAYLIB Directory Structure Object Name Object Type Object Address Payroll Paymstr Paytrans Payoutq *PGM *FILE *OUTQ Address Understanding AS/400 System Operations
File Allocation Table (FAT) Address Allocation Address 1 Allocated Address 2 Free Address 3 Address 4 Address 5 Understanding AS/400 System Operations
IBM Supplied Libraries QSYS: Most important library on the AS/400. Contains OS/400, and master directory of all libraries. Don’t delete or rename. Need to operate the system. Some objects MUST be in QSYS. User Profiles Device descriptions Authorization lists Library object descriptions QUSRSYS: Place user objects, considered more or less “system” objects. Typically message queues for user profiles. Understanding AS/400 System Operations
IBM Supplied Libraries – Cont. QHLPSYS: All help information Search Index Objects QGPL: General Purpose Library. Contains objects used by the system or users. Contains job queues, subsystem descriptions, source physical files and output queues. Don’t store unnecessary objects in QGPL Do not delete or rename this library. Understanding AS/400 System Operations
IBM Supplied Libraries – Cont. QSPL: Spooling library. Contains several databases files in spooling system. Used to store reports and printed output waiting to print. QDOC: Folders and documents created and maintained in library QDOC. Use Save Document Library Objects (SAVDLO) and Restore Document Library Objects (RSTDLO). Understanding AS/400 System Operations
IBM Supplied Libraries – Cont. QTEMP: Created for every active job automatically. Lasts only for the duration of the job. Functions as a “scratch pad”, for temporary objects. Understanding AS/400 System Operations
Understanding AS/400 System Operations Product Libraries IBM licensed program products are self-contained software packages. Each comes in a separate library (a product library). Understanding AS/400 System Operations
Creating a Library Understanding AS/400 System Operations Create Library (CRTLIB) Type choices, press Enter. Library . . . . . . . . . . . . Name Library type . . . . . . . . . . *PROD *PROD, *TEST Text 'description' . . . . . . . *BLANK Additional Parameters Authority . . . . . . . . . . *LIBCRTAUT Name, *LIBCRTAUT, *CHANGE... Auxiliary storage pool ID . . 1 1-16 Create authority . . . . . . . *SYSVAL Name, *SYSVAL, *CHANGE... Create object auditing . . . . *SYSVAL Character value, *SYSVAL... Bottom F3=Exit F4=Prompt F5=Refresh F12=Cancel F13=How to use this display F24=More keys Understanding AS/400 System Operations
Working With Libraries Work with Libraries (WRKLIB) Type choices, press Enter. Library . . . . . . . . . . . . *LIBL Name, generic*, *LIBL... Bottom F3=Exit F4=Prompt F5=Refresh F12=Cancel F13=How to use this display F24=More keys Understanding AS/400 System Operations
All User Libraries screen Work with Libraries Type options, press Enter. 1=Create 2=Change 3=Copy 4=Delete 5=Display 6=Print 8=Display library description 9=Save 10=Restore 11=Save changed objects 12=Work with objects 14=Clear Opt Library Attribute Text #LIBRARY PROD ADA0268LIB PROD this is Sung'library. ADA3574LIB PROD AGE1278LIB PROD Cindy's programmer's library ALEX PROD AND2554LIB PROD AND554LIB PROD ANJ2529LIB PROD Rob Anjema library APPDTA PROD COLLECTION - created by SQL More... Parameters for options 1, 2, 3, 5, 8, 9, 10, 11 and 12 or command ===> F3=Exit F4=Prompt F5=Refresh F9=Retrieve F11=Display names only F12=Cancel F16=Repeat position to F17=Position to Understanding AS/400 System Operations
Understanding AS/400 System Operations Objects in a Library Work with Objects Type options, press Enter. 2=Edit authority 3=Copy 4=Delete 5=Display authority 7=Rename 8=Display description 13=Change description Opt Object Type Library Attribute Text AGTMSTDFU *PGM ANJ2529LIB DFU AGTMSTDFU AGTSLSDFU *PGM ANJ2529LIB DFU AGTSLSDFU ASSIGNNODO *PGM ANJ2529LIB CLP Assignment 3: changed with ASSIGN3 *PGM ANJ2529LIB CLP Assignment 3: Menu BRKMSTDFU *PGM ANJ2529LIB DFU BRKMSTDFU CH11EX2 *PGM ANJ2529LIB RPGLE Chapter 11, Assignment 2 CH12Q1 *PGM ANJ2529LIB RPGLE Chapter 12, Assignment 1 CH12Q1DFU *PGM ANJ2529LIB DFU CH12Q1DFU CH12Q1X *PGM ANJ2529LIB RPGLE Chapter 12, Assignment 1 CH13Q1RPG *PGM ANJ2529LIB RPGLE Chapter 13, Assignment 1 CH13Q2RPG *PGM ANJ2529LIB RPGLE Chapter 13, Assignment 2 More... Parameters for options 5, 7 and 13 or command ===> F3=Exit F4=Prompt F5=Refresh F9=Retrieve F11=Display names and types F12=Cancel F16=Repeat position to F17=Position to Understanding AS/400 System Operations
Understanding AS/400 System Operations Library List List of system, product, and user libraries. Library list give the default list of libraries to be searched for an object. Every job has a library list. Library list has a maximum of 40 names. Scanned from top to bottom. Understanding AS/400 System Operations
Understanding AS/400 System Operations Library List Sections Portion Values/Command Contents System Library QSYSLIBL QSYS 1-15 libraries Product Library Optional Current Library CHGCURLIB From User Profile User Library QUSRLIBL QTEMP 1-25 Libraries Understanding AS/400 System Operations
Commands for Library List Commands that affect user portion of library list ADDLIBLE RMVLIBLE EDTLIBLE Understanding AS/400 System Operations
Understanding AS/400 System Operations Display a Library List Display Library List System: BIGBLUE Type options, press Enter. 5=Display objects in library Opt Library Type Text QSYS SYS System Library QSYS2 SYS System Library for CPI's QHLPSYS SYS QUSRSYS SYS OPR0001 CUR Operations Marge Hohly COMMONLIB USR QGPL USR QTEMP USR Bottom F3=Exit F12=Cancel F17=Top F18=Bottom (C) COPYRIGHT IBM CORP. 1980, 1998. Understanding AS/400 System Operations