Presentation is loading. Please wait.

Presentation is loading. Please wait.

OS/400 Command Structure and Control Language

Similar presentations


Presentation on theme: "OS/400 Command Structure and Control Language"— Presentation transcript:

1 OS/400 Command Structure and Control Language
Chapter 3 OS/400 Command Structure and Control Language

2 Understanding AS/400 System Operations
CL Command Name CRTLIB Noun (object of the action) “Library” Verb (action) “Create” Understanding AS/400 System Operations

3 Understanding AS/400 System Operations
Verbs or Action 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 Verbs and Action works generally consist of: Three letters Most significant non-repeating consonants Understanding AS/400 System Operations

4 Understanding AS/400 System Operations
Nouns 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 Nouns generally are: 1-4 characters Understanding AS/400 System Operations

5 Verbs, Nouns and Adjectives
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 Understanding AS/400 System Operations
Practice Verbs Verb CL Abbr. Create Remove Work Copy Display Save Change Restore Delete Command Retrieve Move Create CRT Work WRK Display DSP Change CHG Delete DLT Retrieve RTV Remove RMV Copy CPY Save SAV Restore RST Command CMD Move MOV Understanding AS/400 System Operations

7 Practice Nouns and Adjectives
Word Abbr. File User Object Profile Library Queue Physical Message Description System File F Object OBJ Library LIB Physical P Description D User USR Profile PRF Queue Q Message MSG System SYS 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 Understanding AS/400 System Operations
Common CL Commands Command Meaning CRTLIB Create Library CPYF Copy File WRKSPLF Work with Spool Files CRTSRCPF Create Source Physical File Understanding AS/400 System Operations

10 Understanding AS/400 System Operations
Practice Commands Command Meaning WRKACTJOB DSPJOBD DLTPF CHGMSGQ WRKACTJOB Work with Active Jobs DSPJOBD Display Job Description DLTPF Delete Physical File CHGMSGQ Change Message Queue Understanding AS/400 System Operations

11 Understanding AS/400 System Operations
Practice Abbr. Meaning ADD CHG DSP DLT SND WRK SAV RST SRC M ADD Add DSP Display SND Send SAV Save SRC Source CHG Change DLT Delete WRK Work RST Restore M Member Understanding AS/400 System Operations

12 Understanding AS/400 System Operations
Practice Abbr. Meaning CRT RTV HLD RMV RLS SBM CPY STR CRT Create HLD Hold RLS Release CPY Copy RTV Retrieve RMV Remove SBM Submit STR Start Understanding AS/400 System Operations

13 Understanding AS/400 System Operations
Practice Commands Command Meaning CRTLIB CPYF CRTSRCPF CRTDUPOBJ CRTPF RNMOBJ CRTLF ADDLFM DSPPFM ADDPFM CRTLIB Create library CRTSRCPF Create Source Physical File CRTPF Create Physical File CRTLF Create Logical File DSPPFM Display Physical File Member CPYF Copy File CRTDUPOBJ Create Duplicate Object RNMOBJ Rename Object ADDLFM Add Logical File Member ADDPFM Add Physical File Member Understanding AS/400 System Operations

14 Understanding AS/400 System Operations
Practice Commands Command Meaning ADDLIBLE STRSDA DSPLIBL WRKSPLF STRPDM WRKOUTQ STRSEU WRKJOBQ STRWTR WRKACTJOB ADDLIBLE Add Library List Entry DSPLIBL Display Library List STRPDM Start PDM (Program Development Management) STRSEU Start SEU (Source Entry Utility) STRWTR Start Writer STRSDA Start SDA (Screen Design Aid) WRKSPLF Work Spool File WRKOUTQ Work Output Queue WRKJOBQ Work Job Queue WRKACTJOB Work Active Job Understanding AS/400 System Operations

15 Understanding AS/400 System Operations
Practice Commands Command Meaning HLDWTR DSPMSG RLSWTR HLDJOB ENDWTR RLSJOB SNDMSG HLDOUTQ SNDBRKMSG RLSOUTQ HLDWTR Hold Writer RLSWTR Release Writer ENDWTR End Writer SNDMSG Send Message SNDBRKMSG Send Break Message DSPMSG Display Message HLDJOB Hold Job RLSJOB Release Job HLDOUTQ Hold Output Queue RLSOUTQ Release Output Queue Understanding AS/400 System Operations

16 Understanding AS/400 System Operations
Practice Commands Command Meaning PWRDWNSYS CHGJOB WRKUSRJOB CHGCURLIB DSPUSRPRF CHGLIB DSPSYSVAL WRKLIB MOVOBJ WRKJOBD PWRDWNSYS Power Down System WRKUSRJOB Work User Job DSPUSRPRF Display User Profile DSPSYSVAL Display System Value MOVOBJ Move Object CHGJOB Change Job CHGCURLIB Change Current Library CHGLIB Change Library WRKLIB Work Library WRKJOBD Work Job Description 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 Use F4 to prompt on a command. Note the permissible values for fields Show Default values Define Special Values 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 Understanding AS/400 System Operations
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    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 Understanding AS/400 System Operations
Command Format Commands written in one of these forms Keyword Positional Combination Understanding AS/400 System Operations

23 Commands With Parameters
Name Parameter Parameter Parameter (value) (value) (value) | | | | CRTLIB LIB(MYLIBR) TYPE(*PROD) TEXT(‘My Library’) / | \ KEYWORD KEYWORD KEYWORD Understanding AS/400 System Operations

24 Understanding AS/400 System Operations
Positional Notation Command Parameter Parameter Parameter Name 1 (LIB) (TYPE) (TEXT) | | / / | | / / | | / / | | / / CRTLIB MYLIBR *PROD ‘My Library’ Understanding AS/400 System Operations

25 Understanding AS/400 System Operations
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 Understanding AS/400 System Operations
Skip Parameter CRTLIB MYLIBR TEXT(‘My Library’) Use *N for default parameter. CRTLIB MYLIBR *N ‘My Library’ Understanding AS/400 System Operations

27 Understanding AS/400 System Operations
Major Menu MAJOR 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 Understanding AS/400 System Operations
Subject Menu CMDLIB 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 Understanding AS/400 System Operations
Accessing a Menu Go 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 Understanding AS/400 System Operations
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 Understanding AS/400 System Operations
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 Understanding AS/400 System Operations
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


Download ppt "OS/400 Command Structure and Control Language"

Similar presentations


Ads by Google