OV_MONTH_LASTDAY

LANSA

OV_MONTH_LASTDAY
Finding the Last Day of the Month The Things that Make Up this ExampleTo Execute this Example


  
   Category        : Other vendor built-in functions
   --------

   Function name   : OV_MONTH_LASTDAY
   -------------

   Function No     : 935
   -----------

   DLL Required    : OV_P935.dll or process/function SET_167/OV@P935
   ------------

   Description     : The date of the last day of a month 
   -----------

   Availability    : Windows       -> YES
                     Unix          -> NO
                     OS/400        -> YES

   ARGUMENTS
   ---------

          Type  Required/                                   Length  Decimals
   Number  A/N  Optional Description                        Min Max Min Max
   ------  ---  -------- -----------                        ------- -------

     1     N     Req     Input date                           4   8   0   0

     2     A     Req     The format of the input date         1  20   
                         A, B, D, F, H, J, L, V, W, X, Y,
                         Z, SYSTEM, SYSTEM8, SYSFMT,
                         DDMMYY, YYMMDD, MMDDYY,
                         DDMMYYYY, YYYYMMDD, MMDDYYYY,
                         SYSTEM8, SYSFMT8,
                         YYMM, MMYY, YYYYMM, MMYYYY
 
     3     A     Req     Format for the last day date         1  20   
                         A, B, D, F, H, J, L, V, W, X, Y,
                         Z, SYSTEM, SYSTEM8, SYSFMT,
                         DDMMYY, YYMMDD, MMDDYY,
                         DDMMYYYY, YYYYMMDD, MMDDYYYY,
                         SYSTEM8, SYSFMT8,
                         YYMM, MMYY, YYYYMM, MMYYYY.


   RETURN VALUES
   -------------

          Type  Required/                                   Length  Decimals
   Number  A/N  Optional Description                        Min Max Min Max
   ------  ---  -------- -----------                        ------- -------

     1     N     Req     The date of the last day of the      2   8   0   0
                         month
     2     A     Opt     Return value indicating if the       2   2
                         calculation of the last day of
                         the month was successful.
                         'OK' = was successful
                         'ER' = was unsuccessful

   TECHNICAL NOTES
   ---------------

   * By using a 2 digit return date field and a format for the returned date that ends in 
     DD (e.g. YYYYMMDD), the day can be returned.