AS/400 HELP
"RESOURCES"
DISPLAY HARDWARE STATUS

RESOURCES displays a list of the hardware devices in your AS/400 and highlights any device
that’s currently reporting a
problem. (STS shows PRB) STS of
?? means device was not detected by
this API but and does not necessarily
mean there is anything wrong.
RESOURCES uses API
QGYRHRL via the procedure QfyRtvHdwRscList in service program
QGYRHR
RESOURCES was developed in V5R1 and compiled down to
V4R2 (see NOTE below)
PC INSTRUCTIONS:
Download "RESOURCES” to your PC.
Go to a DOS session and enter the following;
FTP SYSTEM (system = your AS/400’s
name or IP address)
Enter a valid user id and password
CD QGPL
LCD C:\DIRECTORY (directory= the directory on your pc where you
downloaded “resources.savf”
QUOTE
SITE NAMEFMT 1
BIN
PUT
RESOURCES.SAVF
QUOTE RCMD
RSTLIB SAVLIB(RESOURCES) DEV(*SAVF) SAVF(QGPL/RESOURCES)
Note: If there is a security problem restoring all
objects with the command above, sign on
to your as/400 as Qsecofr and run RSTLIB
from the command line.
AS/400
INSTRUCTIONS:
ADDLIBLE RESOURCES
ROURCESS
NOTE: RESOURCES interprets the DEVICE TYPE field with entries provided by IBM in the API documentation (QGYRHRL) “* Unknown *” results when there is no match in the subfield field KIND3. The AS/400 may not return values as documented by IBM . It is simple to modify the program to add another ifeq statement once you know the hexadecimal value. Run in debug mode and enter EVAL KIND3:x at a break point when it’s in the DO loop of loading the subfile
RESOURCES was tested on a model 170 at 5.1 and a model 400 at 4.5. I assume it will work below 4.5