|
|
|
The following are Michael's collection of tips,
techniques, and helpful info for RPG programmers.
Click Here
for my personal RPG PROGRAMMING style guide.
(Updated January / 2011 )
Click Here for the JobLog_Write function and service program code. (Updated January / 2011 )
The sleep() and
usleep() api's
(Added August/2008)
These "C" library functions are a very clean way to
make your program sleep (delay), and give you the ability to create a delay of a
single microsecond. (Something the DLYJOB can not do.)
Time_TopOfTheHour Function (Added August/2008)
Here's a nifty function that returns the top of the
hour for the system time, or for a time value passed as an option parameter.
The
TIME_DelayJobUntil Procedure (Added
August/2008)
This procedure allows you to do something the DLYJOB
can not do; delay a job and resume at a later time while intermittingly checking
for a shutdown request. No longer do your jobs have to be ended abnormally
if you need to shut down the job, subsystem, or system. This procedure
will check at frequent intervals for a shutdown (10 second default, but
practically any value can be optionally passed.) The procedure will also
resume at the very microsecond that the requested time is reached.
RDi Free
Trial (Added July/2008)
Click
this link to be directed to the IBM site where you can
download a free 60 day trial of the new Rational Developer for System i V7.1,
also known as Rdi. If you've been using Websphere, then
RDi will look identical. If you have been stuck on PDM/SEU, then this
trial will give you some exposure to the future direction of application
development on the i5 platform.
The system() api (Added
August/2008)
Click this link
to look at an example of using the system() api
call. The system() api is a great alternative to QCMDEXC.
Executing i5/OS Commands
From RPG - The Clean and Easy Way (Added
August/2008)
Click this link
to see how to create a service program of i5/OS
commands that can quickly and cleanly be used in RPG programs.