0% found this document useful (0 votes)
87 views

02 - Object Management Concept

Uploaded by

sohel parvez
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
87 views

02 - Object Management Concept

Uploaded by

sohel parvez
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 69

Object Management Concept

Presented By

Mohammad Sohel Parvez


Senior Principal Officer
IT Division, Head Office
IFIC Bank Ltd.
Object
Example Object Types

(*AUTL) Authorization List


(*CLS) Class
(*CMD) Command
(*CTLD) Controller Description
(*DEVD) Device Description
(*DOC) Document
(*DTAARA) Data Area
(*DTAQ) Data Queue
Example Object Types

(*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

(*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
Object Structure

Object name, type, owner, Object


library, etc. Header
Portion
This could be a files data, Function
program statements, etc. Portion
Object Attributes
Information in the object description includes:
• Name
• Type
• Owner name
• Creation time
• Save time
• Text description
• Library
• Attributes
• Creation date
• Save date
• Off-line size
• Change date
Object Naming
Functions Performed on Objects

• 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

*Pgm UPDPROG These two objects cannot have the same


name because they are the same object
(RPG IV)    types. AS/400 does not distinguish
*Pgm (CL) UPDPROG between sub-object types.
Finding Objects
MAIN IBM i Main Menu
System: IFICTSDV
Select one of the following:

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

90. Sign off

Selection or command
===> strpdm

F3=Exit F4=Prompt F9=Retrieve F12=Cancel F13=Information Assistant


F23=Set initial menu
Finding Objects
Programming Development Manager (PDM)

Select one of the following:

1. Work with libraries


2. Work with objects
3. Work with members

9. Work with user-defined options

Information about new tools - press F1 for details

Selection or command
===> 2

F3=Exit F4=Prompt F9=Retrieve F10=Command entry


F12=Cancel F18=Change defaults
(C) COPYRIGHT IBM CORP. 1981, 2007.
Finding Objects
Specify Objects to Work With

Type choices, press Enter.

Library . . . . . . . . . . PARVEZLIB *CURLIB, name

Object:
Name . . . . . . . . . . . PRFCRTHST *ALL, name, *generic*
Type . . . . . . . . . . . *all *ALL, *type
Attribute . . . . . . . . *all *ALL, attribute, *generic*,
*BLANK

F3=Exit F5=Refresh F12=Cancel


Finding Objects
Work with Objects Using PDM IFICTSDV

Library . . . . . PARVEZLIB Position to . . . . . . . .


Position to type . . . . .

Type options, press Enter.


2=Change 3=Copy 4=Delete 5=Display 7=Rename
8=Display description 9=Save 10=Restore 11=Move ...

Opt Object Type Attribute Text


PRFCRTHST *QRYDFN QRY Profile Creation History

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

PGM1 compile PGM1

*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:

• CLRLIB - Clear a library


• CRTLIB - Create a library
• CHGLIB - Change a library
• CPYLIB - Copy the contents of a library to a new library
• DLTLIB - Delete a library
• DSPLIB - Display the contents of a library
• DSPLIBD - Display a library description
• SAVLIB - Save a copy of one or more libraries
• RSTLIB - Restore one library or a group of libraries to the system
• WRKLIB - Work with libraries
• WRKOBJ - Display a list of one or more objects in a library
What is 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.
• Scanned from top to bottom.
iSeries Library List
Jobs Library List
Commands for Library List

• Commands that affect user portion of library list :


– ADDLIBLE (Add Library List Entry)
– RMVLIBLE (Remove Library List Entry)
– EDTLIBL (Edit Library List Entry)`
Objects – File System
Integrated File System
The two most common file systems included in the IFS structure are:
❶ the library file system => QSYS.LIB,
❷ the document library services file system =>QDLS.

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.

For example, when a message is generated and sent, it


is then retained in the user's message queue.
Message Queue
Output Queue

An output queue (object type *OUTQ) is a holding area for


reports that are waiting to be printed.

An output queue contains printer output waiting to be


printed. This printer output is also called a spooled file. There
can be many output queues, each containing spooled files
from many different jobs and users.
Output Queue
Finding CL Commands
CL Command Structure
CL Commands Structure
CL Commands Structure

CRTLIB
Noun (object of the action) “Library”

Verb (action) “Create”


CL Commands - Verbs

Verb/Action Cl Abbreviation Verb/Action Cl Abbreviation

Add ADD Release RLS


Change CHG Remove RMV
Clear CLR Restore RST
Create CRT Retrieve RTV
Copy CPY Save SAV
Delete DLT Send SND
Display DSP Submit SBM
Hold HLD Work with WRK
CL Commands - Nouns

Noun CL Abbreviation Noun CL Abbreviation

Configuration CFG Member MBR


Command CMD Message MSG
Description D Object OBJ
Entry E Queue Q
File F Source SRC
Job JOB Spool SPL
Library LIB Subsystem SBS
List L System SYS
CL Commands – Verbs, Nouns & Adjectives

CL Abbr. Meaning CL Abbr. Meaning

ACT Active CUR Current

BRK Break PRF Profile

EDT Edit STR Start

PRT Printer WRK Work


CL – Commands with Adjectives

CHGCURLIB

Noun (object of the action) “Library”

Adjective (qualifier) “Current”

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)

Type choices, press Enter.

Library . . . . . . . . . . . . LIB __________


Library type . . . . . . . . . . TYPE *PROD     
Text 'description' . . . . . . . TEXT *BLANK                    
__________________________________________________________________________

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

Type choice, press Enter.

Library type . . . . . . . . . . *PROD     

*PROD
*TEST

F3=Exit F5=Refresh F12=Cancel F13=How to use this display F24=More keys


CL Example - Additional Parameters
Create Library (CRTLIB)

Type choices, press Enter.

Library . . . . . . . . . . . . LIB ___________


Library type . . . . . . . . . . TYPE *PROD      
Text 'description' . . . . . . . TEXT *BLANK_________________________
_______________________________________________________________________________

Additional Parameters

Authority . . . . . . . . . . . AUT *LIBCRTAUT


Auxiliary storage pool ID . . . ASP 1  
Create authority . . . . . . . . CRTAUT *SYSVAL   
Create object auditing . . . . . CRTOBJAUD *SYSVAL   

Bottom
F3=Exit F4=Prompt F5=Refresh F12=Cancel F13=How to use this display
F24=More keys
CL - Command Format

• Commands written in one of these forms


– Keyword
– Positional
– Combination
CL – Keywords Notation
Command
Name Parameter Parameter Parameter
(value) (value) (value)
| | | |
CRTLIB LIB(MYLIBR) TYPE(*PROD) TEXT(‘My Library’)
/ | \
KEYWORD KEYWORD KEYWORD
CL - Positional Notation

Command Parameter Parameter Parameter


Name 1 (LIB) 2 (TYPE) 3 (TEXT)
| | / /
| | / /
| | / /
| | / /
CRTLIB MYLIBR *PROD ‘My Library’
CL – Combined Notation

CRTLIB MYLIBR TYPE(*PROD) TEXT(‘My Library’)


 
 
Incorrect Example:
CRTLIB MYLIBR TYPE(*PROD) ‘My Library’

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

CRTLIB MYLIBR TEXT(‘My Library’)

Use *N for default parameter.

CRTLIB MYLIBR *N ‘My Library’


CL – Command Prompt
CL Commands
CL – Command Entry
Control Language Commands
CL – F11 for Keywords
CL – Conditional Parameters
CL – Major Group Commands
CL – Commands by Category
CL – Accessing a Menu
Go to Menu (GO)

Type choices, press Enter.

Menu . . . . . . . . . . . . . . Name, generic*, *ALL


Library . . . . . . . . . . . *LIBL Name, *LIBL, *CURLIB...
Return point . . . . . . . . . . *YES *YES, *NO
CL – Command Menus

Access menus grouped by Command


• GO CMDWRK (all work commands)
• GO CMDxxx (xxx is any section of a command)
• GO CMD* (All commands)
• GO CMDC* (Commands starting with a ‘C’)
CL – Common Commands
Command Name Brief description
CRTLIB Create a library
DSPLIB Display a library
GO *ALL Lists all menus for system commands
GO ASSIST Go to operational assistant menu
GO CMDJOB Find all job commands
Go CMDOUTQ Find all out queue commands
GO INFO Go to the information assistant options menu
GO MAIN Go to the main menu
GO PRINTER Go to printer menu
GO SUPPORT Go to the support and education menu
SIGNOFF Sign you off the system
SNDBRKMSG Send break message
SNDMSG Send message
STRPRTWTR Start print writer
WRKJOB Work with job (your job)
WRKJOBQ Work with job queues
WRKOUTQ Work with out queues
WRKMSGQ Work with message queues
WRKSPLF Work with Spooled Files
Thank You

You might also like