02 - Object Management Concept
02 - Object Management Concept
Presented By
(*FILE) FILE
(*FLR) Folder
(*JOBD) Job description
(*JOBQ) Job Queue
(*JRN & Journal and Journal Receiver
*JRNRCV)
(*LIB) Library
(*LIND) Line Description
(*MENU) Menu
Example Object Types
• System Functions
– Object type verification:
– Object authority verification:
– Object lock enforcement:
– Object damage detection and notification:
User Requested Functions on Objects
• Specific Functions
• Common Functions Apply to All Objects in
General
Object Identification
Object by IBM
Objects in EMPPAYLIB
Object Object
Type Name
*Pgm EMPMST The same name can be used for different
object types. The AS/400 determines
*File EMPMST which operations can be performed on
the object based on its type.
*Pgm EMPPGM1 All objects of the same type must have
different names.
*Pgm EMPPGM2
1. User tasks
2. Office tasks
3. General system tasks
4. Files, libraries, and folders
5. Programming
6. Communications
7. Define or change the system
8. Problem handling
9. Display a menu
10. Information Assistant options
11. IBM i Access tasks
Selection or command
===> strpdm
Selection or command
===> 2
Object:
Name . . . . . . . . . . . PRFCRTHST *ALL, name, *generic*
Type . . . . . . . . . . . *all *ALL, *type
Attribute . . . . . . . . *all *ALL, attribute, *generic*,
*BLANK
Bottom
Parameters or command
===>
F3=Exit F4=Prompt F5=Refresh F6=Create
F9=Retrieve F10=Command entry F23=More options F24=More keys
Finding Objects
How to Find Object?
Library
Why Library Needs?
IBM Libraries
Library Contents
SOURCE
*PGM-CLP
member compile
PAYROLL PAYROLL
*PGM-RPG
compile
EMPMST EMPMST
*FILE-DTA
*FILE-SRC
object
OPR006 *lib
Library Commands
Commands for Library Object:
=====================================================================
There are a number of functions which can be performed on a library from a 5250
emulation session:
The QSYS.LIB file system supports the AS/400 library structure by providing access to
AS/400 database files and all other object types that a library supports or manages.
Because the AS/400 identifies objects by their qualified name (i.e., library/ object),
QSYS.LIB accesses an AS/400 object using the name of the library and the name of the
object. For example, to reference the EMPMASTER file in the PAYROLL library, you'd
refer to PAYROLL/EMPMASTER.
The QDLS file system provides access to documents and folders on the AS/400 and
supports access to stream files. The QDLS file system includes the files stored in AS/400
folders that are usually accessed by OfficeVision for AS/400, AS/400 Client Access, or a
personal computer application.
File System Comparison
IFS Structure
IFS Structure
Queue
Queues are holding areas for
► messages, printed reports, batch jobs, and other
work that is waiting to be received,
► released to the CPU, or accessed by a specific user.
CRTLIB
Noun (object of the action) “Library”
CHGCURLIB
Verb (action)”Change”
CL Commands Parameters
CL Command Parameters
CL Parameter Value
CL Example - Values
Create Library (CRTLIB)
Type choices, press Enter.
Library . . . . . . . . . . . . __________ Name
Library type . . . . . . . . . . *PROD *PROD, *TEST
Text 'description' . . . . . . . *BLANK_____________________________
________________
Bottom
F3=Exit F4=Prompt F5=Refresh F10=Additional parameters F12=Cancel
F13=How to use this display F24=More keys
CL Example - Keywords
Create Library (CRTLIB)
Bottom
F3=Exit F4=Prompt F5=Refresh F10=Additional parameters F12=Cancel
F13=How to use this display F24=More keys
CL Example- Field Prompting
Specify Value for Parameter TYPE
*PROD
*TEST
Additional Parameters
Bottom
F3=Exit F4=Prompt F5=Refresh F12=Cancel F13=How to use this display
F24=More keys
CL - Command Format
There is a rule to remember when you mix parameter entry types: Once
you use your first keyword parameter, you cannot go back to using
positional parameters.
CL - Skip Parameter