Sie sind auf Seite 1von 32

Chapter 3

OS/400 Command Structure and Control Language

CL Command Name
CRTLIB Noun (object of the action) Library Verb (action) Create

Understanding AS/400 System Operations

Verbs or Action
Verb/Action Cl Abbreviation Verb/Action Cl Abbreviation

Add Change Clear Create Copy Delete Display Hold

ADD CHG CLR CRT CPY DLT DSP HLD

Release Remove Restore Retrieve Save Send Submit Work with

RLS RMV RST RTV SAV SND SBM WRK


3

Understanding AS/400 System Operations

Nouns
Noun
CL Abbreviation

Noun

CL Abbreviation

Configuratio n Command Description Entry File Job Library List

CFG

Member

MBR

CMD Message D Object E Queue F Source JOB Spool LIB Subsystem Understanding AS/400 System Operations L System

MSG OBJ Q SRC SPL SBS SYS

Verbs, Nouns and Adjectives


CL Abbr.
ACT BRK EDT PRT

Meaning
Active Break Edit Printer

CL Abbr.
CUR PRF STR WRK

Meaning
Current Profile Start Work
5

Understanding AS/400 System Operations

Practice Verbs
Verb
Create Work Display Change Delete Retrieve

CL Abbr.

Verb
Remove Copy Save Restore Command Move

CL Abbr.

Understanding AS/400 System Operations

Practice Nouns and Adjectives


Word
File Object

Abbr.

Word
User Profile

Abbr.

Library
Physical Descriptio n

Queue
Message System
Understanding AS/400 System Operations 7

Command With Adjective


CHGCURLIB Noun (object of the action) Library Adjective (qualifier) Current

Verb (action)Change

Understanding AS/400 System Operations

Common CL Commands
Command
CRTLIB CPYF WRKSPLF CRTSRCPF

Meaning
Create Library Copy File Work with Spool Files Create Source Physical File
Understanding AS/400 System Operations 9

Practice Commands
Command
WRKACTJOB DSPJOBD DLTPF CHGMSGQ
Understanding AS/400 System Operations 10

Meaning

Practice
Abbr.
ADD

Meaning

Abbr.
CHG

Meaning

DSP
SND

DLT
WRK

SAV
SRC

RST
M
Understanding AS/400 System Operations 11

Practice
Abbr. CRT Meaning Abbr. RTV Meaning

HLD
RLS

RMV
SBM

CPY

STR

Understanding AS/400 System Operations

12

Practice Commands
Command Meaning
CRTLIB CRTSRCPF

Command
CPYF CRTDUPOBJ

Meaning

CRTPF
CRTLF DSPPFM

RNMOBJ
ADDLFM ADDPFM
Understanding AS/400 System Operations 13

Practice Commands
Command
ADDLIBLE

Meaning

Command
STRSDA

Meaning

DSPLIBL
STRPDM

WRKSPLF
WRKOUTQ

STRSEU
STRWTR

WRKJOBQ
WRKACTJOB
Understanding AS/400 System Operations 14

Practice Commands
Command
HLDWTR

Meaning Command
DSPMSG

Meaning

RLSWTR
ENDWTR

HLDJOB
RLSJOB

SNDMSG
SNDBRKMSG

HLDOUTQ
RLSOUTQ
Understanding AS/400 System Operations 15

Practice Commands
Command
PWRDWNSYS

Meaning

Command
CHGJOB

Meaning

WRKUSRJOB
DSPUSRPRF

CHGCURLIB
CHGLIB

DSPSYSVAL
MOVOBJ

WRKLIB
WRKJOBD
Understanding AS/400 System Operations 16

Command Prompt - Values


Create Library (CRTLIB) Type choices, press Enter. Library . . . . . . . . . . . . Library type . . . . . . . . . . Text 'description' . . . . . . . ________________ __________ Name *PROD *PROD, *TEST *BLANK_____________________________

F3=Exit F4=Prompt F5=Refresh F13=How to use this display

F10=Additional parameters F24=More keys

Bottom F12=Cancel

Understanding AS/400 System Operations

17

Command Prompt - Keywords


Create Library (CRTLIB) Type choices, press Enter. Library . . . . . . . . . . . . LIB __________ Library type . . . . . . . . . . TYPE *PROD Text 'description' . . . . . . . TEXT *BLANK __________________________________________________________________________

F3=Exit F4=Prompt F5=Refresh F13=How to use this display

F10=Additional parameters F24=More keys

Bottom F12=Cancel

Understanding AS/400 System Operations

18

Field Prompting
Specify Value for Parameter TYPE

Type choice, press Enter.

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

*PROD

F3=Exit

F5=Refresh

F12=Cancel

F13=How to use this display

F24=More keys

Understanding AS/400 System Operations

19

Contextual Help - Field


Create Library (CRTLIB)

Type choices, press Enter.


Library . . . . . . . . . . . . LIB ____________ Library type . . . . . . . . . . TYPE *PROD Text 'descrip ................................................................ : Library type (TYPE) - Help : : : : Specifies the type of library being created. : : : : *PROD : : This is a production library. Database files in : : production libraries cannot be opened for updating if : : a user is in debug mode and he requested that : : production libraries be protected. A user can protect : : all database files in production libraries by : : specifying UPDPROD(*NO) on the Start Debug (STRDBG) : : command to begin testing. However, this protection : : More... : : F2=Extended help F10=Move to top F11=InfoSeeker : F3=Exit F4= : F12=Cancel F20=Enlarge F24=More keys : F13=How to us : : :..............................................................:

Understanding AS/400 System Operations

20

Additional Parameters
Create Library (CRTLIB)

Type choices, press Enter.


Library . . . . . . . . . . . . LIB ___________ Library type . . . . . . . . . . TYPE *PROD Text 'description' . . . . . . . TEXT *BLANK_________________________ _______________________________________________________________________________ Additional Parameters

Authority . . . . . . Auxiliary storage pool Create authority . . . Create object auditing

. . ID . . . .

. . . .

. . . .

. . . .

AUT ASP CRTAUT CRTOBJAUD

*LIBCRTAUT 1 *SYSVAL *SYSVAL

F3=Exit F4=Prompt F24=More keys

F5=Refresh

F12=Cancel

Bottom F13=How to use this display

Understanding AS/400 System Operations

21

Command Format

Commands written in one of these forms


Keyword Positional Combination

Understanding AS/400 System Operations

22

Commands With Parameters


Command Name

Parameter Parameter Parameter (value) (value) (value) | | | | CRTLIB LIB(MYLIBR) TYPE(*PROD) TEXT(My Library) / | \ KEYWORD KEYWORD KEYWORD

Understanding AS/400 System Operations

23

Positional Notation
Command Parameter Parameter Parameter Name 1 (LIB) 2 (TYPE) 3 (TEXT) | | / / | | / / | | / / | | / / CRTLIB MYLIBR *PROD My Library

Understanding AS/400 System Operations

24

Combined
CRTLIB MYLIBR TYPE(*PROD) TEXT(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. Incorrect Example: CRTLIB MYLIBR

TYPE(*PROD)

My Library

Understanding AS/400 System Operations

25

Skip Parameter
CRTLIB MYLIBR TEXT(My Library)

Use *N for default parameter.


CRTLIB MYLIBR *N My Library

Understanding AS/400 System Operations

26

Major Menu
MAJOR Major Command Groups System: BIGBLUE

Select one of the following:


1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. Select Command by Name Verb Commands Subject Commands Object Management Commands File Commands Save and Restore Commands Work Management Commands Data Management Commands Security Commands Print Commands Spooling Commands System Control Commands Program Commands SLTCMD VERB SUBJECT CMDOBJMGT CMDFILE CMDSAVRST CMDWRKMGT CMDDTAMGT CMDSEC CMDPRT CMDSPL CMDSYSCTL CMDPGM More...

Selection or command ===> _________________________________________________________________________


F3=Exit F4=Prompt F9=Retrieve F16=AS/400 Main menu (C) COPYRIGHT IBM CORP. 1980, 1998. F12=Cancel F13=Information Assistant

Understanding AS/400 System Operations

27

Subject Menu
CMDLIB Library Commands

Select one of the following:


Commands 1. Change Current Library 2. Change Library 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. Clear Library Copy Library Create Library Delete library Display Library Display Library Description Query Document Library Reclaim Library Restore Library Restore S/36 Library Members

CHGCURLIB CHGLIB CLRLIB CPYLIB CRTLIB DLTLIB DSPLIB DSPLIBD QRYDOCLIB RCLLIB RSTLIB RSTS36LIBM More...

Selection or command ===> _________________________________________________________________________ F3=Exit F4=Prompt F9=Retrieve F12=Cancel F16=Major menu

Understanding AS/400 System Operations

28

Accessing a Menu
Go to Menu (GO) Type choices, press Enter. Menu . . . . . . . . . . . . . . Library . . . . . . . . . . . Return point . . . . . . . . . . Name, generic*, *ALL Name, *LIBL, *CURLIB... *YES, *NO

*LIBL *YES

Understanding AS/400 System Operations

29

Command Menus
Access menus grouped by Command GO CMDWRK (all work commands) GO CMDxxx (where xxx is any section of a command) GO CMD* (All commands) GO CMDC* (Commands starting with a C)
Understanding AS/400 System Operations 30

Command Entry

BIGBLUE Request level: 7

Previous commands and messages:


(No previous commands or messages)

Bottom Type command, press Enter. ===> __________________________________________________________ _______________________________________________________________ _______________________________________________________________ _______________________________________________________________ F3=Exit F4=Prompt F9=Retrieve F10=Include detailed messages F11=Display full F12=Cancel F13=Information Assistant F24=More keys

Understanding AS/400 System Operations

31

Command Entry Screen


Command Entry BIGBLUE Request level: 4

All previous commands and messages: > /* */ 3 > go cmdprt 3 > call qcmd 4 > CPYF FROMFILE(ASDF) TOFILE(*PRINT) From-file ASDF in *LIBL not found. Copy command ended because of error. 4 > gomajor Command GOMAJOR in library *LIBL not found. Error found on GOMAJOR command. 4 > go Major 4 > Call qcmd End of requests.
Bottom Type command, press Enter. ===> ________________________________________________________________________ ____________________________________________________________________________ ____________________________________________________________________________ __________________________________________ F3=Exit F4=Prompt F9=Retrieve F10=Exclude detailed messages F11=Display full F12=Cancel F13=Information Assistant F24=More keys

Understanding AS/400 System Operations

32

Das könnte Ihnen auch gefallen