Convert hour in AS/400

60 pts.
Tags:
AS/400
AS/400 Query
I have a query where the field 'Time' is on hhmmss and I need it only with hhmm. How can I do that?


Software/Hardware used:
Querie at AS400
0

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.
  • philpl1jb

    Here are some questions for you:

    Are you using Query/400 or SQL or something else

    Is the time field a real time field, a 6 digit numeric, a character field or a timestamp field?

    54,090 pointsBadges:
    report
  • SusanaM
    Hi.

    I'm using Query/400 and the time field is a real time field with a 6 digit numeric.

    60 pointsBadges:
    report
  • philpl1jb

    Define result fields

    TIME4              hour(timefld) *100 +
                             minute(timefld)


    54,090 pointsBadges:
    report
  • SusanaM
    Works perfectly. Thank you.
    60 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: