1. Chapter 3 OS/400 Command Structure and Control Language 2. CL Command Name * CRTLIB * Noun (object of the action) "Library" * Verb (action) "Create" 3. Verbs or Action ______________________________________________________________ Verb/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 ______________|__________________|____________|________________ 4. Nouns ___________________________________________________________________ NOUN |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 ________________|_________________|______________|_________________ 5. Verbs, Nouns and Adjectives _____________________________________________ CL Abbr. |Meaning | CL Abbr. |Meaning ____________|__________|____________|________ ACT |Active |CUR |Current BRK |Break |PRF |Profile EDT |Edit |STR |Start PRT |Printer |WRK |Work ____________|__________|____________|_________ 6. Practice Verbs __________________________________________ Verb | CL Abbr. | Verb | CL Abbr. _________|___________|_________|__________ Create | |Remove | Work | |Copy | Display | |Save | Change | |Restore | Delete | |Command | Retrieve| |Move | _________|___________|_________|___________ 7. Practice Nouns and Adjectives ________________________________________ Word | Abbr. |Word | Abbr. ______________|_______|_________|_______ File | |User | Object | |Profile | Library | |Queue | Physical | |Message | Description | |System | _______________|_______|_________|________ 8. Command With Adjective * CHGCURLIB * Noun (object of the action) "Library" * Adjective (qualifier) "Current" * Verb (action) "Change" 9. Common CL Commands ________________________________________________________ Command | Meaning __________________|______________________________ CRTLIB |Create Library CPYF |Copy File WRKSPLF |Work with Spool Files CRTSRCPF |Create Source Physical File __________________|______________________________ 10. Practice Commands ________________________________________________ Command | Meaning ___________________|____________________________ WRKACTJOB | DSPJOBD | DLTPF | CHGMSGQ | ___________________|_____________________________ 11. Practice _________________________________________________ Abbr. |Meaning |Abbr. |Meaning ___________|__________|__________|_______________ ADD | |CHG | DSP | |DLT | SND | |WRK | SAV | |RST | SRC | |M | ___________|__________|__________|_______________ 12. Practice __________________________________________________ Abbr. |Meaning |Abbr. |Meaning ____________|__________|___________|______________ CRT | |RTV | HLD | |RMV | RLS | |SBM | CPY | |STR | ____________|__________|___________|______________ 13. Practice Commands ____________________________________________________ Command |Meaning |Command |Meaning _______________|__________|___________|_____________ CRTLIB | |CPYF | CRTSRCPF | |CRTDUPOBJ | CRTPF | |RNMOBJ | CRTLF | |ADDLFM | DSPPFM | |ADDPFM | _______________|__________|___________|______________ 14. Practice Commands __________________________________________________________ Command |Meaning |Command |Meaning ________________|___________|______________|______________ ADDLIBLE | |STRSDA | DSPLIBL | |WRKSPLF | STRPDM | |WRKOUTQ | STRSEU | |WRKJOBQ | STRWTR | |WRKACTJOB | ________________|___________|______________|_______________ 15. Practice Commands _________________________________________________________ Command | |Command | ___________________|__________|____________|_____________ HLDWTR | |DSPMSG | RLSWTR | |HLDJOB | ENDWTR | |RLSJOB | SNDMSG | |HLDOUTQ | SNDBRKMSG | |RLSOUTQ | __________________|__________|____________|______________ 16. Practice Commands ___________________________________________________________ Command |Meaning |Command |Meaning ___________________|__________|_______________|____________ PWRDWNSYS | |CHGJOB | WRKUSRJOB | |CHGCURLIB | DSPUSRPRF | |CHGLIB | DSPSYSVAL | |WRKLIB | MOVOBJ | |WRKJOBD | ___________________|__________|_______________|_____________ 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 | |_______________________________________________________________________| 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 | |__________________________________________________________________________| 19. Field Prompting ______________________________________________________________________________ | Specify Value for Parameter | | | | | | Type choice, press Enter. | | | | | | Library type . . . . . . . . . . *PROD | | | | *PROD | | *TEST | | | | | |F3=Exit F5=Refresh F12=Cancel F13=How to use this display F24=More keys | |____________________________________________________________________________| 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 : : | | :.........................................................: | |____________________________________________________________________________| 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 | |_______________________________________________________________________________| 22. Command Format * Commands written in one of these forms * Keyword * Positional * Combination 23. Commands With Parameters Command Name Parameter Parameter Parameter (value) (value) (value) | | | | CRTLIB LIB(MYLIBR) TYPE(*PROD) TEXT(‘My Library’) / | | | KEYWORD KEYWORD KEYWORD 24. Positional Notation Command Parameter Parameter Parameter Name 1 (LIB) 2 (TYPE) 3 (TEXT) | | / / | | / / | | / / | | / / CRTLIB MYLIBR *PROD ‘My Library’ 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’ 26. Skip Parameter * CRTLIB MYLIBR TEXT(‘My Library’) * Use *N for default parameter. * CRTLIB MYLIBR *N ‘My Library’ 27. Major Menu * Figure 3-9 28. Subject Menu * Figure 3-10 29. Accessing a Menu * Prompted screen for GO command, showing parameters and values available 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’) 31. Click To Add Title * Command Entry Screen. Produces with 'Call QCMD' command string. 32. Command Entry Screen * Command Entry screen after F10 is pressed and messages are displayed. Similar to figure 3-12