ibc233

23
IBC233 Lecture 1

Upload: bendek

Post on 03-Feb-2016

50 views

Category:

Documents


0 download

DESCRIPTION

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 - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: IBC233

IBC233

Lecture 1

Page 2: IBC233

Signing On (Lab 0) & Lab 1

Were you successful?Any problems ?

Page 3: IBC233

Different types of Screens

MenuList Command EntryInformation

Can you easily identify the different kinds of screens that you come across.

Page 4: IBC233

OBJECTS

LIBRARY -> MOHAMEDOBJECT -> QRPGSRC (Source File

holds all RPG programs)MEMBERS -> SALESPGM (Single

program source)RECORDS -> Single line of code in

program

Page 5: IBC233

Objects have types or identifiers

Library*LIB

Program*PGM

File*FILE

User Profile*USRPRF

Page 6: IBC233

Continued ...

LIBRARY/OBJECT (*object type)ALLOWED

MOHAMED/PAYROLL (*File) MOHAMED/PAYROLL (*Pgm)

NOT ALLOWED MOHAMED/PAYROLL (*File) MOHAMED/PAYROLL (*File)

Page 7: IBC233

System vs Subsystem

System = ODINSubsystem is a logical grouping of

resources

Page 8: IBC233

Types of Jobs

InteractiveBatch

Page 9: IBC233

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

Page 10: IBC233

CL Syntax

Command-name

(space) parameter

Page 11: IBC233

Commands that do not Require the Entry of Parameters

WRKJOBWRKACTJOBWRKSBMJOB

Page 12: IBC233

Keyword vs Positional Notation

Keyword

WRKOUTQ OUTQ(PRT01)

CRTLIB LIB(MOHAMED) +

TEXT(‘Mohameds Library’)

PositionalWRKOUTQ PRT01

CRTLIB MOHAMED *TEST ‘Mohameds Library’

Page 13: IBC233

Naming of Commands

Based on English!Combination of Verb and Noun

CRTLIB

LibraryCreate

Page 14: IBC233

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

Page 15: IBC233

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

Page 16: IBC233

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

Page 17: IBC233

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

Page 18: IBC233

How do I find the Keywords to a command?

Type the command and press F11

Page 19: IBC233

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.

Page 20: IBC233

Library List cont’d

Determine where a Job finds Objects

Page 21: IBC233

Library Lists cont’d

Don’t rename or delete your current Library!

When would you want to rename a Library?

Page 22: IBC233

Before the Lab

Reread Chapter 2Print Lab 2

Page 23: IBC233

Before Next Class

Do the Review Questions for Chapter 2

Read Chapter 3