You are here:

AS400 Mid Range/Job to Monitor file to process records immediately when file updates

Advertisement


Question
I am looking for the best solution on the iseries to monitor a file and when records are added to the file run a CL to process records.

Answer
One simple way would be to write a CL program and submit it each day to run in batch.  

PGM
DCL &RECORDS *DEC 15 0

START: RTVMBRD FILE(library/file) NBRRCDS(&RECORDS)

IF (&RECORDS *NE 0) THEN(DO)
CALL pgmname
ENDDO

DLYJOB 60
GOTO START

ENDPGM

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.