Display in a DDS *DATE defined as *MDY but I want to show as *DMY format

45 pts.
Tags:
AS/400
How do I display in a DDS Menu the *DATE defined as *MDY but I want to show as *DMY format?

Answer Wiki

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

In your database you can use varchar as the data type instead of date. It works fine for me

Discuss This Question: 10  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
  • RuiMachado99
    but the *DATE is the QDATE  System Value that i want to use is to show in a DSPF and Menu
    45 pointsBadges:
    report
  • 7778
    make your question clear. want is it that you actually want
    45 pointsBadges:
    report
  • RuiMachado99
    i want to use *DATE that is defined as *MDY in the AS/400 i m using, and show in a DSPF that *DATE as a *DMY format type the keywords EDTWRD or EDTMSK are not allowed because is a
     Constant  . . . :   *DATE
     Length  . . . . :   6,0 
    45 pointsBadges:
    report
  • RuiMachado99
    did you understand me was i cleare now???

    45 pointsBadges:
    report
  • philpl1jb
    50,425 pointsBadges:
    report
  • philpl1jb

    Sorry, I misread .. your not using a date type.

     

    50,425 pointsBadges:
    report
  • philpl1jb
    This would require getting the system date in your program and manupulating it to meet your needs and sending it to the screen as a numeric or char type variable.
    50,425 pointsBadges:
    report
  • RuiMachado99
    thank you everyone i'll have to do as philip say but in case of  the Menu
    it's not possible i think to manipulate in a RPG program
    45 pointsBadges:
    report
  • WoodEngineer
    Check out the ChgJob command.  One of the parms is date format.
    6,715 pointsBadges:
    report
  • ToddN2000

    Is this to be program specific or do you want the system value of *DATE in a new format?

    Have you looked at the system value QDATFMT?

    12,855 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