Upload
aditi-jadhav
View
35
Download
7
Tags:
Embed Size (px)
Citation preview
1
Chapter 3
OS/400 Command Structure and Control Language
Understanding AS/400 System Operations 2
CL Command Name
CRTLIB
Noun (object of the action) “Library”
Verb (action) “Create”
Understanding AS/400 System Operations 3
Verbs or ActionVerb/Action Cl Abbreviation Verb/Action Cl Abbreviation
Add ADD Release RLS
Change CHG Remove RMV
Clear CLR Restore RST
Create CRT Retrieve RTV
Copy CPY Save SAV
Delete DLT Send SND
Display DSP Submit SBM
Hold HLD Work with
WRK
Understanding AS/400 System Operations 4
NounsNoun CL Abbreviation Noun CL
Abbreviation
Configuration
CFG Member MBR
Command CMD Message MSG
Description
D Object OBJ
Entry E Queue Q
File F Source SRC
Job JOB Spool SPL
Library LIB Subsystem
SBS
List L System SYS
Understanding AS/400 System Operations 5
Verbs, Nouns and AdjectivesCL Abbr. Meaning CL Abbr. Meaning
ACT Active CUR Current
BRK Break PRF Profile
EDT Edit STR Start
PRT Printer WRK Work
Understanding AS/400 System Operations 6
Practice VerbsVerb CL Abbr. Verb CL Abbr.
Create Remove
Work Copy
Display Save
Change Restore
Delete Command
Retrieve Move
Understanding AS/400 System Operations 7
Practice Nouns and AdjectivesWord Abbr. Word Abbr.
File User
Object Profile
Library Queue
Physical Message
Description
System
Understanding AS/400 System Operations 8
Command With Adjective
CHGCURLIB
Noun (object of the action) “Library”
Adjective (qualifier) “Current”
Verb (action)”Change”
Understanding AS/400 System Operations 9
Common CL CommandsCommand Meaning
CRTLIB Create Library
CPYF Copy File
WRKSPLF Work with Spool Files
CRTSRCPF Create Source Physical File
Understanding AS/400 System Operations 10
Practice Commands
Command Meaning
WRKACTJOB
DSPJOBD
DLTPF
CHGMSGQ
Understanding AS/400 System Operations 11
PracticeAbbr. Meaning Abbr. Meaning
ADD CHG
DSP DLT
SND WRK
SAV RST
SRC M
Understanding AS/400 System Operations 12
Practice
Abbr. Meaning Abbr. Meaning
CRT RTV
HLD RMV
RLS SBM
CPY STR
Understanding AS/400 System Operations 13
Practice CommandsComman
dMeanin
gCommand Meaning
CRTLIB CPYF
CRTSRCPF
CRTDUPOBJ
CRTPF RNMOBJ
CRTLF ADDLFM
DSPPFM ADDPFM
Understanding AS/400 System Operations 14
Practice Commands
Command
Meaning Command Meaning
ADDLIBLE STRSDA
DSPLIBL WRKSPLF
STRPDM WRKOUTQ
STRSEU WRKJOBQ
STRWTR WRKACTJOB
Understanding AS/400 System Operations 15
Practice CommandsCommand Meanin
gComman
dMeaning
HLDWTR DSPMSG
RLSWTR HLDJOB
ENDWTR RLSJOB
SNDMSG HLDOUTQ
SNDBRKMSG
RLSOUTQ
Understanding AS/400 System Operations 16
Practice CommandsCommand Meanin
gCommand Meanin
g
PWRDWNSYS
CHGJOB
WRKUSRJOB CHGCURLIB
DSPUSRPRF CHGLIB
DSPSYSVAL WRKLIB
MOVOBJ WRKJOBD
Understanding AS/400 System Operations 17
Command Prompt - Values Create Library (CRTLIB)
Type choices, press Enter.
Library . . . . . . . . . . . . __________ Name
Library type . . . . . . . . . . *PROD *PROD, *TEST
Text 'description' . . . . . . . *BLANK_____________________________
________________
Bottom
F3=Exit F4=Prompt F5=Refresh F10=Additional parameters F12=Cancel
F13=How to use this display F24=More keys
Understanding AS/400 System Operations 18
Command Prompt - Keywords
Create Library (CRTLIB) Type choices, press Enter. Library . . . . . . . . . . . . LIB __________ Library type . . . . . . . . . . TYPE *PROD Text 'description' . . . . . . . TEXT *BLANK __________________________________________________________________________ Bottom F3=Exit F4=Prompt F5=Refresh F10=Additional parameters F12=Cancel F13=How to use this display F24=More keys
Understanding AS/400 System Operations 19
Field Prompting Specify Value for Parameter TYPE Type choice, press Enter. Library type . . . . . . . . . . *PROD *PROD *TEST F3=Exit F5=Refresh F12=Cancel F13=How to use this display F24=More keys
Understanding AS/400 System Operations 20
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 21
Additional Parameters Create Library (CRTLIB) Type choices, press Enter. Library . . . . . . . . . . . . LIB ___________ Library type . . . . . . . . . . TYPE *PROD Text 'description' . . . . . . . TEXT *BLANK_________________________ _______________________________________________________________________________ Additional Parameters Authority . . . . . . . . . . . AUT *LIBCRTAUT Auxiliary storage pool ID . . . ASP 1 Create authority . . . . . . . . CRTAUT *SYSVAL Create object auditing . . . . . CRTOBJAUD *SYSVAL Bottom F3=Exit F4=Prompt F5=Refresh F12=Cancel F13=How to use this display F24=More keys
Understanding AS/400 System Operations 22
Command Format Commands written in one of these
forms Keyword Positional Combination
Understanding AS/400 System Operations 23
Commands With ParametersCommand
Name Parameter Parameter Parameter
(value) (value) (value)
| | | |
CRTLIB LIB(MYLIBR) TYPE(*PROD) TEXT(‘My Library’)
/ | \
KEYWORD KEYWORD KEYWORD
Understanding AS/400 System Operations 24
Positional NotationCommand Parameter Parameter Parameter Name 1 (LIB) 2 (TYPE) 3 (TEXT)
| | / /
| | / /
| | / /
| | / /
CRTLIB MYLIBR *PROD ‘My Library’
Understanding AS/400 System Operations 25
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 26
Skip Parameter CRTLIB MYLIBR TEXT(‘My Library’)
Use *N for default parameter.
CRTLIB MYLIBR *N ‘My Library’
Understanding AS/400 System Operations 27
Major MenuMAJOR Major Command Groups
System: BIGBLUE
Select one of the following:
1. Select Command by Name SLTCMD
2. Verb Commands VERB
3. Subject Commands SUBJECT
4. Object Management Commands CMDOBJMGT
5. File Commands CMDFILE
6. Save and Restore Commands CMDSAVRST
7. Work Management Commands CMDWRKMGT
8. Data Management Commands CMDDTAMGT
9. Security Commands CMDSEC
10. Print Commands CMDPRT
11. Spooling Commands CMDSPL
12. System Control Commands CMDSYSCTL
13. Program Commands CMDPGM
More...
Selection or command
===> _________________________________________________________________________
F3=Exit F4=Prompt F9=Retrieve F12=Cancel F13=Information Assistant
F16=AS/400 Main menu
(C) COPYRIGHT IBM CORP. 1980, 1998.
Understanding AS/400 System Operations 28
Subject MenuCMDLIB Library Commands
Select one of the following:
Commands
1. Change Current Library CHGCURLIB
2. Change Library CHGLIB
4. Clear Library CLRLIB
5. Copy Library CPYLIB
6. Create Library CRTLIB
7. Delete library DLTLIB
8. Display Library DSPLIB
9. Display Library Description DSPLIBD
10. Query Document Library QRYDOCLIB
11. Reclaim Library RCLLIB
12. Restore Library RSTLIB
13. Restore S/36 Library Members RSTS36LIBM
More...
Selection or command
===> _________________________________________________________________________
F3=Exit F4=Prompt F9=Retrieve F12=Cancel F16=Major menu
Understanding AS/400 System Operations 29
Accessing a MenuGo to Menu (GO)
Type choices, press Enter.
Menu . . . . . . . . . . . . . . Name, generic*, *ALL
Library . . . . . . . . . . . *LIBL Name, *LIBL, *CURLIB...
Return point . . . . . . . . . . *YES *YES, *NO
Understanding AS/400 System Operations 30
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 31
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 32
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