5 pts.
 ILE RPG Dates
How to extract and assign to a variable (Date Type) the Current Or System Date?

Software/Hardware used:
ASKED: February 27, 2008  5:36 PM
UPDATED: May 27, 2008  3:56 PM

Answer Wiki:
You will want to look in the <a href="http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/books/c092508602.htm">ILE RPG Reference</a> for details, but: <pre> dCurDate s d /free CurDate = %date(); dsply CurDate; *inlr = *on; return; /end-free </pre> is one way to get the current system date. Bruce Vining <a href="http://www.brucevining.com/">http://www.brucevining.com/</a> Integrated solutions for the System i user community
Last Wiki Answer Submitted:  February 27, 2008  7:21 pm  by  bvining   6,055 pts.
All Answer Wiki Contributors:  bvining   6,055 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

curdate S D INZ(*SYS)

 1,000 pts.