AS/400 RPGLE system date

90 pts.
Tags:
AS/400
RPGLE
How do I retrieve the system date in RPGLE? And is coding needed for me?

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Discuss This Question: 4  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • CharlieBrowne
    Use %TimeStamp
    55,540 pointsBadges:
    report
  • Splat
    Where do you want to retrieve it? In an RPG program? In a CL program?
    9,635 pointsBadges:
    report
  • ToddN2000
    Do you just want date or date and time? What format do you want the date YY/MM/DD, YYYY/MM/DD, DD/MM/YY... Provide some more details and where in your code you are having an issue.
    49,660 pointsBadges:
    report
  • Splat
    Sorry about the previous comment - I didn't read the initial question closely. UDATE, *DATE, UMONTH, *MONTH, UDAY, *DAY, UYEAR, *YEAR are available in RPGLE (they provide the run time date which may or may not be congruent with your requirements), as are the %DATE and %TIMESTAMP functions. The DATE keyword in display and printer files is also capable of supplying the system date.
    9,635 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: