Timestamps and V5R1 RPG
August 28, 2002 Timothy Prickett Morgan
Hey, Ted:
I enjoy reading the tech tips in Midrange Guru, especially how to break up a string in Qshell . (You figured that out on a cocktail napkin at a bar, right?)
Craig Rutledge’s recent tip on comparing timestamps in RPG free is a bit too “robust.” To create a timestamp, just do this:
legacy_stamp = %date(legacy_date:*MDY) + %time(legacy_time:*hms); defined_stamp = defined_date + defined_time;
|
— Chris
I can’t take credit for the Qshell tip to split up a parameter. As with so many other RPG, CL, OCL, and VB tricks of the trade, I learned that tip from