• The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
Menu
  • The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
  • Admin Alert: Finding More Elusive OS/400 Commands

    September 1, 2004 Joe Hertvik

    In my last column, I discussed several ways to find and execute OS/400 green-screen commands, even when you don’t know the exact spelling of the command name. While I covered three different ways to find elusive OS/400 commands–using the Major Command Groups menu, the Select Command (SLTCMD) command, and the Verb Commands menu–several readers wrote in to tell me about a few other tricks that accomplish the same thing. Here’s what I learned.

    Jerry Thornton and Ben T. Ray Jr. pointed out that you can get to the various command submenus listed on the Major Command Group, Subject, or Verb menus by going directly to the exact menu that lists a specific group of commands. You can do this by using this template to execute a Go to Menu (GO) command at a command line:

    GO CMDxxxxxx
    

    Where xxxxxx is a two to six character literal that refers to either the major command group you’re looking for, the subject of the command, or the verb that the command uses (all commands that deal with OS/400 file functions containing the literal FILE, for example). So if you wanted to find all the major command group commands for OS/400 file functions, you can bring up a list of these commands by typing the following at the command line:

    GO CMDFILE
    

    And this displays the File Commands menu. Note that we created the menu name to go to by replacing the xxxxxx literal with the word FILE, creating the name of the File Commands menu, CMDFILE. This technique works for all 23 of the major command groups listed on the MCG, including the Save and Restore command menu (CMDSAVRST), the Print command menu (CMDPRT), and the Programming command menu (CMDPGM). So if you know the general command group you want to work with, it’s a simple matter to bring up all the commands for that group by using GO CMDxxxxxx this way. These command menu names are also listed on the right-hand side of each option on the Major Command Groups menu.

    The second way to find a command by using GO CMDxxxxxx is to display and select a command by the subject it refers to, rather than the major group it belongs to. With this technique, if you wanted to find all the commands that deal with RPG processing (which are generally displayed under the Programming major group), you display and select the RPG commands menu by typing the GO command this way:

    GO CMDRPG
    

    Similarly, if you wanted to look at all the commands associated with subsystem descriptions (SBSD), you could find these commands by entering this GO command:

    GO CMDSBSD
    

    And this technique helps you find any of the 150-plus subject command menus that are listed under the main Subject Command menu. If you don’t want to figure out the subject command menu name yourself, all the CMDxxxxxx menu names are also listed on the right-hand side of each option on the Subject Commands menu (GO SUBJECT).

    In addition to using GO to find major group and specific subject command menus, you can use it to find specific verb command menus. Verb commands are grouped together by the action that a command performs, rather than the general grouping the command belongs to (the major group) or the subject it acts upon. So if you wanted to find all the commands that delete OS/400 objects (DLT), you can enter the following GO command:

    GO CMDDLT
    

    If you’re looking for all the commands that add something to an object in OS/400, you would execute this GO command:

    GO CMDADD
    

    Using this GO CMDxxxxxx template, you can find half-remembered OS/400 commands by looking through the command’s major grouping menu (FILE, SEC, DB, etc.), its subject menu (RPG, CL, etc.), or the verb action menu (CHG, ADD, DLT, etc.). This is a fairly easy way to cut down on the number of options you would normally have to scroll through in the MCG, Verb Command, or Subject Command menus.

    In addition to providing this helpful tip, readers Vern Hamberg and Mike Collins showed me another technique for using all the advantages of the Select Command (SLTCMD) command without even entering SLTCMD on a command line.

    Using this technique, I discovered that IBM has opened up a shortcut to SLTCMD by allowing you to turn OS/400 command line entries into SLTCMD wildcard searches. In the last article, I said that you could look up and select from all OS/400 commands that work with documents by entering the following SLTCMD command:

    SLTCMD CMD(WRKDOC*)
    

    But as Mike and Vern showed me, you can also get to the SLTCMD selection screen for all WRKDOC commands by entering the following generic literal on the command line:

    WRKDOC*
    

    By doing this, OS/400 automatically feeds this WRKDOC* wild card into the SLTCMD command and displays the results. This results in a generic command entry scenario that you can take advantage of to display SLTCMD when your memory fails you or when you don’t want to expend the energy to look up the exact command. The only flaw in this scenario, which Vern pointed out, is that IBM does not allow you to place a leading wildcard * in front of your command literal. But I guess you can’t have everything.

    If you still don’t know what literals to use as you’re searching for specific command names, you can always lookup Appendix D of the OS/400 V5R2 CL programming manual (SC41-5721). Appendix D lists all the abbreviations that are used in CL commands, including verbs, subjects, and major control groups. Armed with this information, as well as the techniques presented in this article and the previous article, you should be able to find any elusive OS/400 command when you need it.

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Tags:

    Sponsored by
    WorksRight Software

    Do you need area code information?
    Do you need ZIP Code information?
    Do you need ZIP+4 information?
    Do you need city name information?
    Do you need county information?
    Do you need a nearest dealer locator system?

    We can HELP! We have affordable AS/400 software and data to do all of the above. Whether you need a simple city name retrieval system or a sophisticated CASS postal coding system, we have it for you!

    The ZIP/CITY system is based on 5-digit ZIP Codes. You can retrieve city names, state names, county names, area codes, time zones, latitude, longitude, and more just by knowing the ZIP Code. We supply information on all the latest area code changes. A nearest dealer locator function is also included. ZIP/CITY includes software, data, monthly updates, and unlimited support. The cost is $495 per year.

    PER/ZIP4 is a sophisticated CASS certified postal coding system for assigning ZIP Codes, ZIP+4, carrier route, and delivery point codes. PER/ZIP4 also provides county names and FIPS codes. PER/ZIP4 can be used interactively, in batch, and with callable programs. PER/ZIP4 includes software, data, monthly updates, and unlimited support. The cost is $3,900 for the first year, and $1,950 for renewal.

    Just call us and we’ll arrange for 30 days FREE use of either ZIP/CITY or PER/ZIP4.

    WorksRight Software, Inc.
    Phone: 601-856-8337
    Fax: 601-856-9432
    Email: software@worksright.com
    Website: www.worksright.com

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    CocoBase Object-to-Relational Mapping Tool Gets DB2 Support Companies Want Good Enough IT, Not ‘Best of Breed’

    Leave a Reply Cancel reply

Content archive

  • The Four Hundred
  • Four Hundred Stuff
  • Four Hundred Guru

Recent Posts

  • POWERUp 2025 –Your Source For IBM i 7.6 Information
  • Maxava Consulting Services Does More Than HA/DR Project Management – A Lot More
  • Guru: Creating An SQL Stored Procedure That Returns A Result Set
  • As I See It: At Any Cost
  • IBM i PTF Guide, Volume 27, Number 19
  • IBM Unveils Manzan, A New Open Source Event Monitor For IBM i
  • Say Goodbye To Downtime: Update Your Database Without Taking Your Business Offline
  • i-Rays Brings Observability To IBM i Performance Problems
  • Another Non-TR “Technology Refresh” Happens With IBM i TR6
  • IBM i PTF Guide, Volume 27, Number 18

Subscribe

To get news from IT Jungle sent to your inbox every week, subscribe to our newsletter.

Pages

  • About Us
  • Contact
  • Contributors
  • Four Hundred Monitor
  • IBM i PTF Guide
  • Media Kit
  • Subscribe

Search

Copyright © 2025 IT Jungle