Build a AS/400 calendar file

5 pts.
Tags:
AS/400
AS/400 command functions
RPG Code
I need to build a calendar file with date '010110' and day of week 'SU' in rpg/400.  The client does not use the ILE envionment.  Can anyone provide the RPG code to create this file?  Thanks

Software/Hardware used:
AS/400 RPG/400

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.

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

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
  • TomLiotta
    RPG doesn't "create" files. You use DDS or SQL to create files. It isn't clear at all what you need to do. I'd guess that you want to create a file that has a row for every day of the year. Each row has two columns. The first column is a date in MMDDYY format, and the second column contains a 2-character abbreviation for the day of the week. Am I close? You might not know the answer, but I have to ask if you know why your client deliberately chooses to cripple their system by avoiding better features? Are they also still using Windows 98 and FAT file systems on PCs? Tom
    125,585 pointsBadges:
    report
  • philpl1jb
    I would create a table with three columns Julian Date , MMDDYY date, day code. Julian dates for this year run from 10001 to 10365 -- a fairly simple program can generate these numbers. Then call cvtdat for each julian to get the mmddyy and I think it might return day name -- or we've shown the code a number of times to get the day name. Phil
    49,730 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