Sunday, November 20, 2011

INTRINSIC FUNCTIONS:



LENGTH         Returns the length of the PIC clause. Used for finding length of group
item that spanned across multiple levels.
MAX             Returns the content of the argument that contains the maximum value
MIN              Returns the content of the argument that contains the minimum value
NUMVAL        Returns the numeric value represented by an alphanumeric character
string specified in the argument.
NUMVAL-C     Same as NUMVAL but currency and decimal points are ignored during conversion.
CURRENT       Returns 21 Chars alphanumeric value – YYYYMMDDHHMMSSnnnnnn
DATE           
INTEGER OF DATE     Returns INTEGER equivalent of Gregorian date passed.
INTEGER OF DAY      Returns INTEGER equivalent of Julian date passed.
DATE OF INTEGER     Returns Gregorian date for the integer passed.
DAY OF INTEGER      Returns Julian date for the integer passed.

Note: FUNCTION INTEGER OF DATE (01-01-1601) returns 1.

No comments:

Post a Comment