Caution: This article is designed to help you learn some basic commands for the IBM iSeries. Not every user has the security to run all of the commands listed below. Make sure that you have permission to make any changes to your system before doing so. RJS Software does not accept any responsibilty for lost information or data due to using any of our Knowledge Base Articles.
Things To Know
Help - Pressing F1 while the cursor is on a message, command, or value will often bring up a help screen with more information.
Prompt - Pressing F4 after typing a command prompts a list of values that can be passed to that command. The prompt screen displays all available parameters and acceptable values for those parameters.
Security - As stated above: Not every user has the security to run all of the commands listed below. Make sure that you have permission to make any changes to your system before doing so. RJS Software does not accept any responsibilty for lost information or data due to using any of our Knowledge Base Articles.
Command Line Length
Many commands are actually longer than the one or two lines typically given in the Command Line Interface.
To display a larger command line, type: CALL QCMD
To display a full page command line, type: CALL QCMD, F11
Displaying System Values
If you have any RJS Software product on the iSeries, you can run the following commands to display the OS/400 operating system version, serial number, model number, and partiion (LPAR) number where the product is installed:
General iSeries information: /PRDINFO
Serial number: DSPSYSVAL QSRLNBR
Model number: DSPSYSVAL QMODEL
See Local system.
Type: GO LICPGM
AS/400 TCP/IP address:
To find system values (the long way):
Next to the value you need, type 5.
The value displays.
For example: To view the value for the serial number, type 5 next to QSRLNBR.
To Display System Operator Messages
The messages display.
To Display the Session Job Log
When the job log displays, press F10 to see a detailed log.
Page up from the bottom to see the most current activity.
Library and Library List Commands:
To display your current library list: DSPLIBL
To add a library to your library list: ADDLIBLE
To remove a library from your library list: RMVLIBLE
To see if a library is present: WRKLIB
To find the current version of a RJS Software product library:
In Data area name, type VERSION.
In Library, type the library name.
To display all the objects within a library: WRKOBJPDM
Output Queue and Report Commands
To display all output queues: WRKOUTQ *ALL
Note: This is helpful for checking whether an output queue's exists.
To display a specific output queue: WRKOUTQ
Note: You use the an asterix (*) as a wildcard character to display all output queues with similar names.
Note: If you have the same output queue in multiple libraries, you may need to specify the library as well.
To create an output queue: CRTOUTQ /
Note: If you do not specify a library when you create the output queue, the output queue is created in the QGPL library by default.
To clear an output queue (delete all spool files in the output queue): CLROUTQ /
Note: If you do not specify a library name, it will clear the first output queue with the matching name in your library list.
To delete an output queue: DLTOUTQ /
Note: If you do not specify a library name, it will delete the first output queue with the matching name in your library list.
To view reports by owner:
Type 5 next to the appropriate user.
Choose the output queue.
Viewing Directories and Files on the IFS (Integrated File System)
File structure on the IFS is similar to the UNIX file system (even the commands match). All directory or file paths start with a forward slash (/) to indicate the root of the system. The rest follows basic directory structures.
To access the root directory on the IFS:
Run: WRKLNK "/"
Type 5 next to the folder to view its contents.
To access a directory called RJSTEMP in the root of the IFS:
Run: WRKLNK "/RJSTEMP"
Type 5 next to the folder to view its contents.
Checking a User Profile
To view all the user profiles: WRKUSRPRF *ALL
To view a specific user profile: WRKUSRPRF
User settings of importance (primarily for the WinSpool products):
STATUS should be ENABLED.
SET PASSWORD TO EXPIRE should be NO.
LIMIT CAPABILITIES - If *YES, RJS Software has a Notes technical document that tells you what commands you need. Search the document for limited* to access it.
Check the user class - *SECOFR indicates security officer level.
FTP Server Commands:
To check on FTP server status:
If the FTP server is running, there will be and entry called FTP-CON in Local Port, and it will have a state of LISTEN.
To start the FTP server: STRTCPSVR *FTP
To end the FTP server: ENDTCPSVR *FTP
To change FTP timeout:
Note: The inactivity time-out is 300 seconds (5 minutes) by default. Setting it to 0 indicates no time-out. After changing the FTP attributes, you must stop the FTP server and restart.
To verify that you can log on to your iSeries FTP Server from DOS:
Go to the DOS prompt.
You should then be asked for a user ID and password. If this fails or doesn't happen, there is a problem connecting to the iSeries FTP server and RJS Software products will not work until this issue is resolved.