Difference between revisions of "RPG Built In Functions"
From MidrangeWiki
m (Built In Functions moved to RPG Built In Functions) |
(Tabula Format is easier on the eyes, Sorting data makes it informative) |
||
Line 1: | Line 1: | ||
[[Category: Quick Reference]] | [[Category: Quick Reference]] | ||
[[Category:RPG]] | [[Category:RPG]] | ||
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBABS %ABS | + | {| class="sortable" border="1" |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBADDR %ADDR | + | ! Note !! Function !! Description !! Type |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBALLOC %ALLOC | + | |- |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm# | + | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBABS %ABS] || Absolute Value of Expression || Evaluate |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm# | + | |- |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm# | + | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBADDR %ADDR] || Get Address of Variable || Pointer |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm# | + | |- |
− | + | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBALLOC %ALLOC] || Allocate Storage || | |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm# | + | |- |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm# | + | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBABS %ABS] || Absolute Value of Expression || Evaluate |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm# | + | |- |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm# | + | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBADDR %ADDR] || Get Address of Variable || Pointer |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm# | + | |- |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm# | + | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBALLOC %ALLOC] || Allocate Storage || |
− | + | |- | |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm# | + | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBAND %BITAND] || Bitwise AND Operation || Binary |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm# | + | |- |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm# | + | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBNOT %BITNOT] || Invert Bits || Binary |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm# | + | |- |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm# | + | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBOR %BITOR] || Bitwise OR Operation || Binary |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm# | + | |- |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm# | + | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBXOR %BITXOR] || Bitwise Exclusive-OR Operation || Binary |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm# | + | |- |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm# | + | | • || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#Header_720 %BIT examples] || Bit Operations || Binary |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm# | + | |- |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm# | + | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBCHAR %CHAR] || Convert to Character Data || Format |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm# | + | |- |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm# | + | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBCHK %CHECK] || Check Characters || |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm# | + | |- |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm# | + | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBCHKR %CHECKR] || Check Reverse || |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm# | + | |- |
− | + | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBDATE %DATE] || Convert to Date || Date | |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm# | + | |- |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm# | + | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBDAY %DAYS] || Number of Days || Date |
− | + | |- | |
− | + | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBDEC %DEC] || Convert to Packed Decimal Format || Format | |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm# | + | |- |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm# | + | | • || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBDECH %DECH] || Convert to Packed Decimal Format with Half Adjust || Format |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm# | + | |- |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm# | + | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBDECP %DECPOS] || Get Number of Decimal Positions || |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm# | + | |- |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm# | + | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBDIF %DIFF] || Difference Between Two Date, Time, or Timestamp Values || Date |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm# | + | |- |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm# | + | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBDIV %DIV] || Return Integer Portion of Quotient || Evaluate |
− | + | |- | |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm# | + | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBEDITC %EDITC] || Edit Value Using an Editcode || Format |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm# | + | |- |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm# | + | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBEDITF %EDITFLT] || Convert to Float External Representation || Format |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm# | + | |- |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm# | + | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBEDITW %EDITW] || Edit Value Using an Editword || Format |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm# | + | |- |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm# | + | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBELEM %ELEM] || Get Number of Elements || |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm# | + | |- |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm# | + | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBEOF %EOF] || Return End or Beginning of File Condition || Pointer |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm# | + | |- |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm# | + | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBEQUAL %EQUAL] || Return Exact Match Condition || Flag |
− | + | |- | |
− | + | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBERROR %ERROR] || Return Error Condition || Flag | |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm# | + | |- |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm# | + | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBFIELDS %FIELDS] || Fields to update || |
− | + | |- | |
− | + | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBFLOAT %FLOAT] || Convert to Floating Format || Format | |
− | + | |- | |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm# | + | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBFOUND %FOUND] || Return Found Condition || Flag |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm# | + | |- |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm# | + | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBGRAPH %GRAPH] || Convert to Graphic Value || Format |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm# | + | |- |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm# | + | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBHOU %HOURS] || Number of Hours || Time |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm# | + | |- |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm# | + | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBINT %INT] || Convert to Integer Format || Format |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm# | + | |- |
− | + | | • || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBINTH %INTH] || Convert to Integer Format with Half Adjust || Format | |
− | + | |- | |
− | + | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBKDS %KDS] || Search Arguments in Data Structure || | |
− | [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBYEAR %YEARS | + | |- |
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBLEN %LEN] || Get or Set Length || | ||
+ | |- | ||
+ | | • || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRLNRIGHT %LEN] || Used for its Value || | ||
+ | |- | ||
+ | | • || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRLENLEFT %LEN] || Used to Set the Length of Variable-Length Fields || | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBLOO %LOOKUPxx] || Look Up an Array Element || Search | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBMIN %MINUTES] || Number of Minutes || Time | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBMON %MONTHS] || Number of Months || Date | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBMSEC %MSECONDS] || Number of Microseconds || Time | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBNULL %NULLIND] || Query or Set Null Indicator || Flag | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBOCCUR %OCCUR] || Set/Get Occurrence of a Data Structure || Pointer | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBOPEN %OPEN] || Return File Open Condition || Flag | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBPADDR %PADDR] || Get Procedure Address || Pointer | ||
+ | |- | ||
+ | | • || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#Header_758 %PADDR] || Used with a Prototype || | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBPARM %PARMS] || Return Number of Parameters || | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBREALL %REALLOC] || Reallocate Storage || | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBREM %REM] || Return Integer Remainder || Evaluate | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBREPL %REPLACE] || Replace Character String || | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBSCAN %SCAN] || Scan for Characters || Search | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBSEC %SECONDS] || Number of Seconds || Time | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBSHUT %SHTDN] || Shut Down || | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBSIZE %SIZE] || Get Size in Bytes || | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBSQRT %SQRT] || Square Root of Expression || Evaluate | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBSTAT %STATUS] || Return File or Program Status || Flag | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBSTR %STR] || Get or Store Null-Terminated String || | ||
+ | |- | ||
+ | | • || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBSTRR %STR] || Used to Get Null-Terminated String || | ||
+ | |- | ||
+ | | • || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBSTRL %STR] || Used to Store Null-Terminated String || | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBSUBD %SUBDT] || Extract a Portion of a Date, Time, or Timestamp || Date | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBSUBS9 %SUBST] || Get Substring || | ||
+ | |- | ||
+ | | • || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBSUBSV %SUBST] || Used for its Value || | ||
+ | |- | ||
+ | | • || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBSUBSA %SUBST] || Used as the Result of an Assignment || | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBTHIS %THIS] || Return Class Instance for Native Method || | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBTIME %TIME] || Convert to Time || Time | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBTMST %TIMESTAMP] || Convert to Timestamp || Date | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBTLOO %TLOOKUPxx] || Look Up a Table Element || Search | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBTRIM %TRIM] || Trim Blanks at Edges || | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBTRIML %TRIML] || Trim Leading Blanks || | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBTRIMR %TRIMR] || Trim Trailing Blanks || | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBUCS2 %UCS2] || Convert to UCS-2 Value || Format | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBUNS %UNS] || Convert to Unsigned Format || Format | ||
+ | |- | ||
+ | | • || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBUNSH %UNSH] || Convert to Unsigned Format with Half Adjust || Format | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBXFOOT %XFOOT] || Sum Array Expression Elements || Evaluate | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBXLAT %XLATE] || Translate || | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBYEAR %YEARS] || Number of Years || Date | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBAND %BITAND] || Bitwise AND Operation || Binary | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBNOT %BITNOT] || Invert Bits || Binary | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBOR %BITOR] || Bitwise OR Operation || Binary | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBXOR %BITXOR] || Bitwise Exclusive-OR Operation || Binary | ||
+ | |- | ||
+ | | • || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#Header_720 Examples] || Bit Operations || Binary | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBCHAR %CHAR] || Convert to Character Data || Format | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBCHK %CHECK] || Check Characters || | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBCHKR %CHECKR] || Check Reverse || | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBDATE %DATE] || Convert to Date || Date | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBDAY %DAYS] || Number of Days || Date | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBDEC %DEC] || Convert to Packed Decimal Format || Format | ||
+ | |- | ||
+ | | • || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBDECH %DECH] || Convert to Packed Decimal Format with Half Adjust || Format | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBDECP %DECPOS] || Get Number of Decimal Positions || | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBDIF %DIFF] || Difference Between Two Date, Time, or Timestamp Values || Date | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBDIV %DIV] || Return Integer Portion of Quotient || Evaluate | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBEDITC %EDITC] || Edit Value Using an Editcode || Format | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBEDITF %EDITFLT] || Convert to Float External Representation || Format | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBEDITW %EDITW] || Edit Value Using an Editword || Format | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBELEM %ELEM] || Get Number of Elements || | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBEOF %EOF] || Return End or Beginning of File Condition || Pointer | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBEQUAL %EQUAL] || Return Exact Match Condition || Flag | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBERROR %ERROR] || Return Error Condition || Flag | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBFIELDS %FIELDS] || Fields to update || | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBFLOAT %FLOAT] || Convert to Floating Format || Format | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBFOUND %FOUND] || Return Found Condition || Flag | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBGRAPH %GRAPH] || Convert to Graphic Value || Format | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBHOU %HOURS] || Number of Hours || Time | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBINT %INT] || Convert to Integer Format || Format | ||
+ | |- | ||
+ | | • || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBINTH %INTH] || Convert to Integer Format with Half Adjust || Format | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBKDS %KDS] || Search Arguments in Data Structure || Search | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBLEN %LEN] || Get or Set Length || | ||
+ | |- | ||
+ | | • || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRLNRIGHT %LEN] || Used for its Value || | ||
+ | |- | ||
+ | | • || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRLENLEFT %LEN] || Used to Set the Length of Variable-Length Fields || | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBLOO %LOOKUPxx] || Look Up an Array Element || Search | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBMIN %MINUTES] || Number of Minutes || Time | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBMON %MONTHS] || Number of Months || Date | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBMSEC %MSECONDS] || Number of Microseconds || Time | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBNULL %NULLIND] || Query or Set Null Indicator || Flag | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBOCCUR %OCCUR] || Set/Get Occurrence of a Data Structure || Pointer | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBOPEN %OPEN] || Return File Open Condition || Flag | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBPADDR %PADDR] || Get Procedure Address || Pointer | ||
+ | |- | ||
+ | | • || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#Header_758 %PADDR] || Used with a Prototype || Pointer | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBPARM %PARMS] || Return Number of Parameters || | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBREALL %REALLOC] || Reallocate Storage || | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBREM %REM] || Return Integer Remainder || Evaluate | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBREPL %REPLACE] || Replace Character String | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBSCAN %SCAN] || Scan for Characters || Search | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBSEC %SECONDS] || Number of Seconds || Time | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBSHUT %SHTDN] || Shut Down || | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBSIZE %SIZE] || Get Size in Bytes || | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBSQRT %SQRT] || Square Root of Expression || Evaluate | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBSTAT %STATUS] || Return File or Program Status || Flag | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBSTR %STR] || Get or Store Null-Terminated String || | ||
+ | |- | ||
+ | | • || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBSTRR %STR] || Used to Get Null-Terminated String || | ||
+ | |- | ||
+ | | • || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBSTRL %STR] || Used to Store Null-Terminated String || | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBSUBD %SUBDT] || Extract a Portion of a Date, Time, or Timestamp || Date | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBSUBS9 %SUBST] || Get Substring || | ||
+ | |- | ||
+ | | • || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBSUBSV %SUBST] || Used for its Value || | ||
+ | |- | ||
+ | | • || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBSUBSA %SUBST] || Used as the Result of an Assignment || | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBTHIS %THIS] || Return Class Instance for Native Method || | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBTIME %TIME] || Convert to Time || Time | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBTMST %TIMESTAMP] || Convert to Timestamp || Date | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBTLOO %TLOOKUPxx] || Look Up a Table Element || Search | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBTRIM %TRIM] || Trim Blanks at Edges || | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBTRIML %TRIML] || Trim Leading Blanks || | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBTRIMR %TRIMR] || Trim Trailing Blanks || | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBUCS2 %UCS2] || Convert to UCS-2 Value || Format | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBUNS %UNS] || Convert to Unsigned Format || Format | ||
+ | |- | ||
+ | | • || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBUNSH %UNSH] || Convert to Unsigned Format with Half Adjust || Format | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBXFOOT %XFOOT] || Sum Array Expression Elements || Evaluate | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBXLAT %XLATE] || Translate || | ||
+ | |- | ||
+ | | || [http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508429.htm#HDRBBYEAR %YEARS] || Number of Years || Date | ||
+ | |} |
Revision as of 09:32, 9 June 2008
Note | Function | Description | Type |
---|---|---|---|
%ABS | Absolute Value of Expression | Evaluate | |
%ADDR | Get Address of Variable | Pointer | |
%ALLOC | Allocate Storage | ||
%ABS | Absolute Value of Expression | Evaluate | |
%ADDR | Get Address of Variable | Pointer | |
%ALLOC | Allocate Storage | ||
%BITAND | Bitwise AND Operation | Binary | |
%BITNOT | Invert Bits | Binary | |
%BITOR | Bitwise OR Operation | Binary | |
%BITXOR | Bitwise Exclusive-OR Operation | Binary | |
• | %BIT examples | Bit Operations | Binary |
%CHAR | Convert to Character Data | Format | |
%CHECK | Check Characters | ||
%CHECKR | Check Reverse | ||
%DATE | Convert to Date | Date | |
%DAYS | Number of Days | Date | |
%DEC | Convert to Packed Decimal Format | Format | |
• | %DECH | Convert to Packed Decimal Format with Half Adjust | Format |
%DECPOS | Get Number of Decimal Positions | ||
%DIFF | Difference Between Two Date, Time, or Timestamp Values | Date | |
%DIV | Return Integer Portion of Quotient | Evaluate | |
%EDITC | Edit Value Using an Editcode | Format | |
%EDITFLT | Convert to Float External Representation | Format | |
%EDITW | Edit Value Using an Editword | Format | |
%ELEM | Get Number of Elements | ||
%EOF | Return End or Beginning of File Condition | Pointer | |
%EQUAL | Return Exact Match Condition | Flag | |
%ERROR | Return Error Condition | Flag | |
%FIELDS | Fields to update | ||
%FLOAT | Convert to Floating Format | Format | |
%FOUND | Return Found Condition | Flag | |
%GRAPH | Convert to Graphic Value | Format | |
%HOURS | Number of Hours | Time | |
%INT | Convert to Integer Format | Format | |
• | %INTH | Convert to Integer Format with Half Adjust | Format |
%KDS | Search Arguments in Data Structure | ||
%LEN | Get or Set Length | ||
• | %LEN | Used for its Value | |
• | %LEN | Used to Set the Length of Variable-Length Fields | |
%LOOKUPxx | Look Up an Array Element | Search | |
%MINUTES | Number of Minutes | Time | |
%MONTHS | Number of Months | Date | |
%MSECONDS | Number of Microseconds | Time | |
%NULLIND | Query or Set Null Indicator | Flag | |
%OCCUR | Set/Get Occurrence of a Data Structure | Pointer | |
%OPEN | Return File Open Condition | Flag | |
%PADDR | Get Procedure Address | Pointer | |
• | %PADDR | Used with a Prototype | |
%PARMS | Return Number of Parameters | ||
%REALLOC | Reallocate Storage | ||
%REM | Return Integer Remainder | Evaluate | |
%REPLACE | Replace Character String | ||
%SCAN | Scan for Characters | Search | |
%SECONDS | Number of Seconds | Time | |
%SHTDN | Shut Down | ||
%SIZE | Get Size in Bytes | ||
%SQRT | Square Root of Expression | Evaluate | |
%STATUS | Return File or Program Status | Flag | |
%STR | Get or Store Null-Terminated String | ||
• | %STR | Used to Get Null-Terminated String | |
• | %STR | Used to Store Null-Terminated String | |
%SUBDT | Extract a Portion of a Date, Time, or Timestamp | Date | |
%SUBST | Get Substring | ||
• | %SUBST | Used for its Value | |
• | %SUBST | Used as the Result of an Assignment | |
%THIS | Return Class Instance for Native Method | ||
%TIME | Convert to Time | Time | |
%TIMESTAMP | Convert to Timestamp | Date | |
%TLOOKUPxx | Look Up a Table Element | Search | |
%TRIM | Trim Blanks at Edges | ||
%TRIML | Trim Leading Blanks | ||
%TRIMR | Trim Trailing Blanks | ||
%UCS2 | Convert to UCS-2 Value | Format | |
%UNS | Convert to Unsigned Format | Format | |
• | %UNSH | Convert to Unsigned Format with Half Adjust | Format |
%XFOOT | Sum Array Expression Elements | Evaluate | |
%XLATE | Translate | ||
%YEARS | Number of Years | Date | |
%BITAND | Bitwise AND Operation | Binary | |
%BITNOT | Invert Bits | Binary | |
%BITOR | Bitwise OR Operation | Binary | |
%BITXOR | Bitwise Exclusive-OR Operation | Binary | |
• | Examples | Bit Operations | Binary |
%CHAR | Convert to Character Data | Format | |
%CHECK | Check Characters | ||
%CHECKR | Check Reverse | ||
%DATE | Convert to Date | Date | |
%DAYS | Number of Days | Date | |
%DEC | Convert to Packed Decimal Format | Format | |
• | %DECH | Convert to Packed Decimal Format with Half Adjust | Format |
%DECPOS | Get Number of Decimal Positions | ||
%DIFF | Difference Between Two Date, Time, or Timestamp Values | Date | |
%DIV | Return Integer Portion of Quotient | Evaluate | |
%EDITC | Edit Value Using an Editcode | Format | |
%EDITFLT | Convert to Float External Representation | Format | |
%EDITW | Edit Value Using an Editword | Format | |
%ELEM | Get Number of Elements | ||
%EOF | Return End or Beginning of File Condition | Pointer | |
%EQUAL | Return Exact Match Condition | Flag | |
%ERROR | Return Error Condition | Flag | |
%FIELDS | Fields to update | ||
%FLOAT | Convert to Floating Format | Format | |
%FOUND | Return Found Condition | Flag | |
%GRAPH | Convert to Graphic Value | Format | |
%HOURS | Number of Hours | Time | |
%INT | Convert to Integer Format | Format | |
• | %INTH | Convert to Integer Format with Half Adjust | Format |
%KDS | Search Arguments in Data Structure | Search | |
%LEN | Get or Set Length | ||
• | %LEN | Used for its Value | |
• | %LEN | Used to Set the Length of Variable-Length Fields | |
%LOOKUPxx | Look Up an Array Element | Search | |
%MINUTES | Number of Minutes | Time | |
%MONTHS | Number of Months | Date | |
%MSECONDS | Number of Microseconds | Time | |
%NULLIND | Query or Set Null Indicator | Flag | |
%OCCUR | Set/Get Occurrence of a Data Structure | Pointer | |
%OPEN | Return File Open Condition | Flag | |
%PADDR | Get Procedure Address | Pointer | |
• | %PADDR | Used with a Prototype | Pointer |
%PARMS | Return Number of Parameters | ||
%REALLOC | Reallocate Storage | ||
%REM | Return Integer Remainder | Evaluate | |
%REPLACE | Replace Character String | ||
%SCAN | Scan for Characters | Search | |
%SECONDS | Number of Seconds | Time | |
%SHTDN | Shut Down | ||
%SIZE | Get Size in Bytes | ||
%SQRT | Square Root of Expression | Evaluate | |
%STATUS | Return File or Program Status | Flag | |
%STR | Get or Store Null-Terminated String | ||
• | %STR | Used to Get Null-Terminated String | |
• | %STR | Used to Store Null-Terminated String | |
%SUBDT | Extract a Portion of a Date, Time, or Timestamp | Date | |
%SUBST | Get Substring | ||
• | %SUBST | Used for its Value | |
• | %SUBST | Used as the Result of an Assignment | |
%THIS | Return Class Instance for Native Method | ||
%TIME | Convert to Time | Time | |
%TIMESTAMP | Convert to Timestamp | Date | |
%TLOOKUPxx | Look Up a Table Element | Search | |
%TRIM | Trim Blanks at Edges | ||
%TRIML | Trim Leading Blanks | ||
%TRIMR | Trim Trailing Blanks | ||
%UCS2 | Convert to UCS-2 Value | Format | |
%UNS | Convert to Unsigned Format | Format | |
• | %UNSH | Convert to Unsigned Format with Half Adjust | Format |
%XFOOT | Sum Array Expression Elements | Evaluate | |
%XLATE | Translate | ||
%YEARS | Number of Years | Date |