Transcript OPS234

IBC233
Lecture 1
Signing On (Lab 0) & Lab 1
Were you successful?
Any problems ?
Different types of Screens
Menu
List
Command Entry
Information
Can you easily identify the different kinds
of screens that you come across.
OBJECTS
LIBRARY -> MOHAMED
OBJECT -> QRPGSRC (Source File holds
all RPG programs)
MEMBERS -> SALESPGM (Single program
source)
RECORDS -> Single line of code in
program
Objects have types or
identifiers
Library
*LIB
User Profile
*USRPRF
Program
*PGM
File
*FILE
Continued ...
LIBRARY/OBJECT (*object type)
ALLOWED
MOHAMED/PAYROLL (*File)
MOHAMED/PAYROLL (*Pgm)
NOT ALLOWED
MOHAMED/PAYROLL (*File)
MOHAMED/PAYROLL (*File)
System vs Subsystem
System = ODIN
Subsystem is a logical grouping of
resources
Types of Jobs
Interactive
Batch
User Profile
Same name as your User ID
Stores your password
Points to your Current Library
Points to your default output queue
Runs your startup programs and menus
Points to the object that stores your
default library list
Lets you know the last time your signed
on
CL Syntax
Command-name
(space) parameter
Commands that do not Require
the Entry of Parameters
WRKJOB
WRKACTJOB
WRKSBMJOB
Keyword vs Positional
Notation
Keyword
WRKOUTQ OUTQ(PRT01)
CRTLIB LIB(MOHAMED) +
TEXT(‘Mohameds Library’)
Positional
WRKOUTQ PRT01
CRTLIB MOHAMED *TEST ‘Mohameds Library’
Naming of Commands
Based on English!
Combination of Verb and Noun
CRTLIB
Create
Library
Naming of Commands
cont’d
Typically start with the following verbs:
CL Verb English Description
CALL
GO
CPY
CRT
DSP
WRK
Call
Go to
Copy
Create
Display
Executes a program
Executes a Menu
Copies a file
Creates an object
Displays something about an
object
Works With Works with an object
CL Commands cont’d
Some typical nouns
CL Noun English Description
LIB
LIBL
OUTQ
JOBQ
Library
Library List
Output Queue
Job Queue
FD
F
USRPRF
File Desc
File
User Profile
Object that holds Objects
List of Libraries for a Job
Object that stores Spool Files
Object that stores Batch Jobs to
be processed
Description of file
Object that stores data
Object that lists attributes about
a Sign On Id
CL Commands cont’d
How do I find the exact syntax (including
keywords) of a command?
Answer:Use AS400 Menus
Use AS400 Prompts (F4)
by pressing F4 at a Command line
by typing command and pressing F4
CL Commands cont’d
AS400 Menus
Menu
Description
MAIN
PROGRAM
MAJOR
CMDCPY
CMDDSP
CMDWRK
CMDLIB
CMDMSG
CMDOUTQ
CMDUSRPRF
Main Menu
Programmers Menu
Sorts Commands
Copy Commands
Display Commands
Work With Commands
Library Commands
Message Commands
Output Queue Commands
User Profile Commands
How do I find the
Keywords to a command?
Type the command and press F11
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 Libraries
Created by Business to organize programs, files, etc.
Library List cont’d
Determine where a Job finds Objects
Library Lists cont’d
Don’t rename or delete your current
Library!
When would you want to rename a
Library?
Before the Lab
Reread Chapter 2
Print Lab 2
Before Next Class
Do the Review Questions for Chapter 2
Read Chapter 3