Question

  Asked: Feb 27 2008   5:36 PM GMT
  Asked by: PJBCh


ILE RPG Dates


ILE RPG Dates, Current_Date, Date Type Variables, RPG ILE

How to extract and assign to a variable (Date Type) the Current Or System Date?

Subscribe to Alerts! Get questions and answers delivered to your Inbox.


E-mail me updates on this question



   SUBSCRIBE

hidden modal window

Answer Wiki (Improve, edit or add to this answer)


 RATE THIS ANSWER
+2
Click to Vote:
  •   2
  •  0



You will want to look in the ILE RPG Reference for details, but:


dCurDate s d

/free
CurDate = %date();
dsply CurDate;
*inlr = *on;
return;
/end-free


is one way to get the current system date.

Bruce Vining
http://www.brucevining.com/
Integrated solutions for the System i user community
  • AddThis Social Bookmark Button

Browse more Questions and Answers on Development and AS/400.

Looking for relevant Development Whitepapers? Visit the SearchSQLServer.com Research Library.


Discuss This Answer


You must be logged-in to discuss a question. Log-in/Register

Bigmac46  |   May 27 2008  3:56PM GMT

curdate S D INZ(*SYS)