how to pass variable of type date from pf to display file

695 pts.
Tags:
RPG
RPG/400
I want to pass one variable MYDATE of type(L) date from my pf to Display file through simple rpg program and how can i define result field in display file either as numeric or as alphanumeric plz help me as early as possible it will be helpful to me
ASKED: June 6, 2008  11:20 AM
UPDATED: June 6, 2008  4:49 PM

Answer Wiki

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

Hi,

i didnt get any solution from this site what i expected

Maybe this link will help :-

<a href=”http://krypton.mnsu.edu/~j3gum/web/as400/intref.html”>AS400 Course</a>

This takes you through using SDA to create display files.

Regards,

Martin Gilbert.

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.

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
  • GAC
    Hi Mohan, It has been a while since a do not use SDA, but I remember that it did not support date/time/timestamp fields. I do not know if importing PF fields into SDA solves the problem (I kind of remember it does not, it just changed the field type to a zoned equivalent) but if not, you can generate the DDS file anyway and then change the definition for those fields through SEU. At the end, the line should be like this: A PF_FIELD L 6 63DATFMT(date-format) I hope this helps, Gerardo.
    300 pointsBadges:
    report
  • GAC
    BTW Martin: A great link you shared. Thank you, Gerardo.
    300 pointsBadges:
    report
  • Vatchy
    Try this: DateOut = char 10 and DateIn = type L C *ISO MOVE DateIn w@Date for 2008-05-21 or C *USA MOVE DateIn w@Date for 05-21-2008 Hope this helps.
    1,410 pointsBadges:
    report
  • Vatchy
    OK, that didn't work. The lines should be: C *ISO MOVE DateIn DateOut C *USA MOVE DateIn DateOut
    1,410 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