You Can View User Feedback To This Tip
Don't get me wrong. The SLTCMD command is great, but it only allows you to search with an ending wildcard (i.e. SLTCMD WRKDST*). There are times when you need more flexibility. If you want to find all the OS/400 commands with a certain string (i.e. "DST") SLTCMD doesn't help. Do the following:
- STRPDM.
- Take option 1 (Work with libraries).
- Key in QSYS and press Enter.
- Key in option 12 and press F4.
- Key in your search string with the appropriate wildcards (i.e. *DST*) in the Name field.
- Key in *CMD in the Type field.
- Press Enter.
Voila! A list of the OS/400 commands that match your string, with text descriptions!
Forgive me, but I just figured out an even easier way. For the previous example, enter the following command:
WRKOBJPDM LIB(QSYS) OBJ('*dst*') OBJTYPE(*CMD)
"Live and learn."
WRKOBJPDM LIB(QSYS) OBJ('*dst*') OBJTYPE(*CMD)
USER FEEDBACK TO THIS TIP
- Regarding SLTCMD improvement: Clever, but there is an even shorter path to
enlightenment. Type in "GO CMD" in front of any iSeries 400 cmd "radical" and you will get the same thing. Example: "GO CMDDSP". The ending wildcard is also allowed: "GO CMDDSP*" which shows all DSPs and DSPDs. Bill Hine
==================================
MORE INFORMATION ON THIS TOPIC
==================================
The Best Web Links: tips, tutorials and more.
Ask your programming questions--or help out your peers by answering them--in our live discussion forums.
Ask the Experts yourself: Our application development gurus are waiting to answer your programming questions.