1) CALL as400 QCMDEXC to DLYJOB
or
2)
H Bnddir('ROUTINES/SRVPGM':'QC2LE')
D sleep PR 10I 0 EXTPROC('sleep')
D seconds 10U 0 VALUE
or, microseconds as400
D sleep PR 10I 0 EXTPROC('usleep')
D useconds 10U 0 VALUE
Then just sleep(60 * 10); (10 Mins)
or
use the MI WAITTIME instruction.
H DFTACTGRP(*NO)
DWait pr extproc('_WAITTIME')
D 16
DTemplate ds
D Interval 20u 0
D Options 8 inz(*loval)
DOneSecond s 20u 0 inz(4096000000)
C *entry plist
C parm NbrSecs 15 5
C eval Interval = NbrSecs * OneSecond
C callp Wait(Template)
C move '1' *inlr
C return
Supplying a value of 5 for NbrSecs would give you a 5 second delay to you as400 program.
Thursday, January 13, 2005
Subscribe to:
Post Comments (Atom)
Popular Posts
- AS400 Job Scheduler
- Recover or reset QSECOFR passwords
- UDATE and *DATE in AS400 RPG
- About Me
- Contact Us
- About Us
- WAS Application hangs with previous J2CA0086W warning messages STATE_TRAN_WRAPPER_INUSE
- eBook making on the PSP
- mrc online lab for anyone who wants to try their hand at building Java servlet applications
- Installing Mambo on Linux
No comments:
Post a Comment