Rational Developer for System z
PL/I for Windows, Version 8.0, Programming Guide

Implicit DATE assignments

The DATE attribute can also cause implicit conversions to occur in assignments of two variables declared with date patterns.

Even if you do not choose a windowing solution, you might have some code that needs to manipulate both two- and four-digit years. You can use multiple date patterns to help you in these situations:

  dcl old_date char(6) date('YYMMDD');
  dcl new_date char(8) date('YYYYMMDD');

  new_date = old_date;

Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)