IBC233
Lecture 1
Signing On (Lab 0) & Lab 1
Were you successful?Any problems ?
Different types of Screens
MenuList Command EntryInformation
Can you easily identify the different kinds of screens that you come across.
OBJECTS
LIBRARY -> MOHAMEDOBJECT -> 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
Program*PGM
File*FILE
User Profile*USRPRF
Continued ...
LIBRARY/OBJECT (*object type)ALLOWED
MOHAMED/PAYROLL (*File) MOHAMED/PAYROLL (*Pgm)
NOT ALLOWED MOHAMED/PAYROLL (*File) MOHAMED/PAYROLL (*File)
System vs Subsystem
System = ODINSubsystem is a logical grouping of
resources
Types of Jobs
InteractiveBatch
User Profile
Same name as your User IDStores your passwordPoints to your Current LibraryPoints to your default output queueRuns your startup programs and menusPoints to the object that stores your
default library listLets you know the last time your signed on
CL Syntax
Command-name
(space) parameter
Commands that do not Require the Entry of Parameters
WRKJOBWRKACTJOBWRKSBMJOB
Keyword vs Positional Notation
Keyword
WRKOUTQ OUTQ(PRT01)
CRTLIB LIB(MOHAMED) +
TEXT(‘Mohameds Library’)
PositionalWRKOUTQ PRT01
CRTLIB MOHAMED *TEST ‘Mohameds Library’
Naming of Commands
Based on English!Combination of Verb and Noun
CRTLIB
LibraryCreate
Naming of Commands cont’d
Typically start with the following verbs:CL Verb English DescriptionCALL Call Executes a programGO Go to Executes a MenuCPY Copy Copies a fileCRT Create Creates an objectDSP Display Displays something about an
objectWRK Works With Works with an object
CL Commands cont’d
Some typical nounsCL Noun English DescriptionLIB Library Object that holds ObjectsLIBL Library List List of Libraries for a JobOUTQ Output QueueObject that stores Spool FilesJOBQ Job Queue Object that stores Batch Jobs to
be processedFD File Desc Description of fileF File Object that stores dataUSRPRF User Profile 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 MenusUse AS400 Prompts (F4)
by pressing F4 at a Command line
by typing command and pressing F4
CL Commands cont’d
AS400 MenusMenu DescriptionMAIN Main MenuPROGRAM Programmers MenuMAJOR Sorts CommandsCMDCPY Copy CommandsCMDDSP Display CommandsCMDWRK Work With CommandsCMDLIB Library CommandsCMDMSG Message CommandsCMDOUTQ Output Queue CommandsCMDUSRPRF 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 ListDifferent 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 2Print Lab 2
Before Next Class
Do the Review Questions for Chapter 2
Read Chapter 3