REXX code that uses the DATE function invokes the TSO/E REXX version of the function when running under TSO/E.
Note: Use the DATE function in OPS/REXX or AOF rules.
The OPS/REXX non-SAA extension to the DATE function has the following format:
var = DATE([x][,source-date][,y])
(Optional) Includes, as in standard REXX, the format of the date that is returned by the function and may be any of the following standard REXX date formats: B, C, D, E, J, M, N, O, S, U, W
Default: N
(Optional) Includes, as in standard REXX, the date to be returned by the function.
Default: The current date at execution time.
(Optional) Includes, as in standard REXX, the format of the source-date. However, unlike standard REXX, the only accepted values for y are B and S.
Default: yyyyddd, where ddd is the Julian day of the year yyyy.
This format is useful for calculating past and future dates. For example, the date 1 Feb 2009 in standard REXX format N is expressed as 2009032 in this default format that is unique to OPS/REXX.
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |