MPE/iX Quick Reference Guide (32650-90881)

94 Chapter3
Intrinsics Descriptions
Descriptions of the Intrinsics Available in MPE/iX
HPDDATEDIFF
NM callable only.
This intrinsic determines the number of days that separate two given dates.
I32V * * I32 I32 I32V
HPDATEDIFF(datecode, firstdate,seconddate,diffindays,status,cutoff)
HPDDATEFORMAT
NM callable only.
You can use this routine to format the dates that can be combinations of
display formats as explained below. Many of these elements are taken from
ALLBASE/SQL date formats.
You can convert dates in the \Supported Date Formats" to a display string of your choice
(with restrictions). The HPDATEFORMAT intrinsic will accept these format strings. The
format specifcation strings can have the following syntax:
[{Format Element}{Punctuation}]
HPDDATEOFFSET
NM callable only.
This intrinsic adds or subtracts a specified offset to or from the given date.
I32V * I32V * I32 I32V
HPDATEOFFSET
(datecode, inputdate,offset,outputdate,status,cutoff)
HPDDATEVALIDATE
NM callable only.
This intrinsic checks the validity of the given date with respect to the supported formats
given in the table, “Supported Date Formats.”.
I32 I32V * I32V
result
:= HPDATEVALIDATE(datecode, inputdate, cutoff)
HPDEBUG
NM callable only.
Enters the system debugger and optionally executes a defined set of system debug
commands.
I32 CA I32V *
HPDEBUG(
status,cmdstr
[,
itemnum,item
][...]);
HPDEVCONTROL
NM callable only.