Download ppt - Last Week’s Review

Transcript
Page 1: Last Week’s Review

Last Week’s Review

Any Questions?

Page 2: Last Week’s Review

CL Syntax

Command-name

(space) parameter

Page 3: Last Week’s Review

CL Syntax

• Do all commands have parameters?

• Why should you always press F4 following a command instead of enter?

Page 4: Last Week’s Review

Positional or Keyword?

By Keyword, both these are allowed

CRTLIB LIB(PAYROLL) TYPE(*TEST) TEXT(‘Payroll Development’)

CRTLIB TYPE(*TEST) TEXT(‘Payroll Development’) LIB(PAYROLL)

Page 5: Last Week’s Review

Positional

• Allowed:– CRTLIB PAYROLL *TEST

• Not Allowed– CRTLIB *TEST PAYROLL

Page 6: Last Week’s Review

Syntax Question

• How could you find the keyword syntax to Create a Physical File named EMPPF in Library IBC233LIB with a record length of 120 characters?

Page 7: Last Week’s Review

Menu Questions

• Which menu groups together all of the Work With commands?

• Which menu groups together all of the commands by subject?

Page 8: Last Week’s Review

Menu

• Menus GO MAIN main menu (F16)

GO MAJOR major commands menu (F4)

GO VERB action menu

GO SUBJECT objects menu

GO CMDxxxx verb, noun, function

Page 9: Last Week’s Review

4 Parts of a Library List

(or the 4 library list types)

• System (SYS)

• Product (PRD)

• Current (CUR)

• User (USR)

Page 10: Last Week’s Review

Library List Commands• ADDLIBLE

– Adds an entry to a library list to the USER portion of the library list

• RMVLIBLE– Removes an entry from the USER portion of

the library list

• EDTLIBL– Adds/Deletes/Changes entries on the USER

portion of the library list

Page 11: Last Week’s Review

Library List Commands

• CHGCURLIB– Changes the Current Library

• CHGLIBL– Changes the Current Library and allows

Add/Change/Delete to the USER portion of the library list.

• All Library List commands are listed on the CMDLIBL menu.

Page 12: Last Week’s Review

Data Storage HierarchyMOHAMED - *LIB IBC233LIB - *LIB DA233x99 - *LIB

Object1*PGM

Object2*OUTQ

Object3*FILE

Reviews*FILE

Review1

Review2

Review3

Labanswers*FILE

Answers

Lab1

DA233x99*OUTQ

Reviews*FILE

Review1

Review2

Page 13: Last Week’s Review

Objects

Chapter 3

Page 14: Last Week’s Review

Today’s Lecture

• Use of ‘*’ on the AS/400

• Use of ‘?’ on the AS/400

• AS/400 Architecture

• Object Types

• Storing Objects

• Manipulating Library Lists

• Spooled Files

• Work with Jobs Commands

Page 15: Last Week’s Review

What does the ‘*’ denote?

Page 16: Last Week’s Review

‘*’ (Asterix)

• When used before an ‘AS/400’ word, indicates that the word is a special value.eg. CRTLIB LIB(MYLIB) TYPE(*TEST) TEXT(‘Test Library)

• When used at the end of a word, indicates a generic combination of alphanumerics (wildcards).eg. WRKLIB TST*

Page 17: Last Week’s Review

Use of the ‘?’

• Entering a command to see all possible values for a parameter.

• F4 does the same

Page 18: Last Week’s Review

What is an Object?

Page 19: Last Week’s Review

Objects

• Takes up Space on the AS400

• Has a Description

• Has an Object Type

Page 20: Last Week’s Review

Object Types

Object Type Object Desc Subtypes

*CMD Command*FILE File PF

LFDSPFPRTF

*JOBD Jobd Description*LIB Library *PROD

*TEST*OUTQ Output Queue*JOBQ Job Queue*PGM Program Source Language

eg. CBL, RPG CLP

Page 21: Last Week’s Review

A Library Search

Direction ofsearch

Part ofLibrary List

Library ContainsObject

Object Type

System QSYSQHLPSYSQUSRSYS

CurrentMYLIB

ACTCUSPROGAFILEB

*FILE*PGM*FILE

UserARLIB

TSTLIB1

FILEMACTCUSFILEXACTCUS

*FILE*PGM*FILE*PGM

Page 22: Last Week’s Review

Object Types

• Certain types of commands only work with certain types of Object Typeseg. DSPUSRPRF

• Object Type is assigned to the Object at time of creationeg. CRTLIB creates objects with a type of

*LIB

Page 23: Last Week’s Review

How does the AS/400 find Objects?

Page 24: Last Week’s Review

AS/400 finds Objects

• Qualified NamesLibrary/ObjectIBC233LIB/REVIEWS

• Using Library Lists!How are Library Lists sequenced?

Page 25: Last Week’s Review

AS/400 finds Objects

Note: Library Descriptions, Device Descriptions and User Profiles are stored in QSYS. All other Object Types can be stored anywhere.

Page 26: Last Week’s Review

What is a Spooled File?

Page 27: Last Week’s Review

Spooled Files

• AS/400 objects that contain data for printing

• Are stored in Output Queues

• To print a Spooled File, the file must be moved to an Output Queue attached to a printer.

Page 28: Last Week’s Review

How Do Spooled Files get Created?

Program/Command

Data ReportLayout

Job Output Queue

*FILE*FILE

Spooled File

QINTER

Page 29: Last Week’s Review

DC234X99

SPLF#1

SPLF#2

PRT01

SPLF#3

SPLF#4Change theSpooled Fileto OutQPRT01

Page 30: Last Week’s Review

Work with Jobs Command

• To display information about your current Interactive job, simply type: WRKJOB

• To display information about any other job, use the Work With Job and enter the Job Name and User. Number is Optional.

• To display your Batch Jobs, use the Work with Submitted Jobs Commands (WRKSBMJOB)

Page 31: Last Week’s Review

WRKUSRJOB

• Shows you a list of all of the jobs that you own on the system irregardless of the subsystem

• Status – Active = Job is currently running– Outq = Job is finished– Jobq = Job is waiting to process.

• To delete a ‘run-away’ job, take option 4

Page 32: Last Week’s Review

Problems ?

• Enter GO SENECA on the command line. You will get a menu for information on fixing your user profile if you cannot sign on.

Page 33: Last Week’s Review

Test 1 Date

IBC233 - Friday Sept. 26, 2003

Page 34: Last Week’s Review

Before Next Lab

• Reread Chapter 3. Maybe now it makes sense

• Print Lab 3.

Page 35: Last Week’s Review

Before Next Class

• Do the Review Questions for Chapter 3.

• Read Chapter 11.


Recommended