AS400 query

5 pts.
Tags:
AS/400
AS/400 date format
AS/400 Query
I want to be able to write a query that says take xdate field plus a number of days. How do I do this

Answer Wiki

Thanks. We'll let you know when a new response is added.

Try this link

http://www.tek-tips.com/viewthread.cfm?qid=1477112&page=7

Discuss This Question: 2  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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • carlosdl
    More details will probably be needed, but maybe you can simply add the desired number of days directly. Something like
    SELECT your_date_column + 5  FROM your_table
    or
    SELECT your_date_column + 5 DAYS FROM your_table
    69,920 pointsBadges:
    report
  • TomLiotta
    I want to be able to write a query that says take xdate field... To answer, we need to know what query product you will use and what the definition of the xdate column is. Carlosdl has provided a valid answer if you will use SQL for the query and if xdate is a DATE data type. Tom
    125,585 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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

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

Following