You are here:

AS400 Mid Range/CL program to check the ASP utilityon hourly basis

Advertisement


Question
I'm new to AS400 ,right now i want a CL program to check the ASP utility on hourly basis.right now we check this using DSPSYSSTS command manually..we want the program to be an AUTOSTARTJOB.

plz Advice

THanks in advance

Answer
You will need to write a simple CL program called CHKSYSSTS.
The commands are:


CHKSYSSTS: PGM
LOOP:      DSPSYSSTS OUTPUT(*PRINT)
          DLYJOB DLY(3600)
          GOTO CMDLBL(LOOP)
END:       ENDPGM



Compile the CL program using the CRTCLPGM command.

Then use the ADDAJE command to add an autostart job entry for subsystem QBASE, job name CHKSYSSTS, job description QPGMR in library QGPL.

- Laird

AS400 Mid Range

All Answers


Answers by Expert:


Ask Experts

Volunteer


Concise Systems/Laird Scranton

Expertise

General AS/400, RPG/400, SDA and CL programming questions. AS/400 performance tuning.

Experience


Past/Present clients
CB Sportswear
Coca-Cola of New York
Encore Paper Company
Golub Corporation
HBO Home Video
Imperial Pools
Kaiser Permanente of NE New York
Mallinckrodt Medical
Marigold Foods
Manpower & Associates
National Datacomputers
New York State Easter Seals Society
New York State Food Merchants Association
Pepsi-Cola Allied Bottlers
Petricca Construction
Taconic Telephone Corporation
TOMRA Recycling
Unistress Corporation

©2012 About.com, a part of The New York Times Company. All rights reserved.