Q. How do I change an eight-digit date (YYYYMMDD) into a seven-digit Julian date (YYYYDDD)? A. Simply use CVTDAT TOFMT(*LONGJUL). If running V3R6 or lower, there are PTFs available to support the *LONGJUL format. Tip by Tino Zijdel in the NEWS/400 CL Forum

REGISTER NOW TO ACCESS THIS ARTICLE

All registered users get access to premium content on iPro Developer for free.

Already registered? here.