AS/400 Date Calculation

Tags:
AS 400
We run several schedules based on the day - Daily schedule for M-Th, weekly schedule on Friday, then monthly on Last Business Day of the month. The problem we have is in the test environments, the programmers like to advance cycle dates. So we have to remember to check the date to determine type of run. Is there a way to determine the type of run automatically without the operators/schedulers having to remember?


Software/Hardware used:
AS400, Iseries, IBM-i, Help Systems Robot, CL
1

Answer Wiki

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

Just a clarification: The cycle date is definitely not the same as the system date. 

Discuss This Question: 5  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.
  • TheRealRaven
    There's almost certainly a way, but we need more info before offering suggestions. What is your "cycle date"? How is it accessed? What is your "Last Business Day"? How is it determined? By whom? And when?

    Finally, what exactly are you needing? Do you want some user to know what 'type' to run? Do you want the scheduled job to figure out the proper schedule from the "cycle date" by itself?
    33,610 pointsBadges:
    report
  • ToddN2000
    I'm not sure why it would be causing a problem if you have a true test environment. Seeing the code would help us understand. If the developers are changing dates to do their testing it should not effect production. If they are changing the system date, you have much bigger issues.
    129,355 pointsBadges:
    report
  • GregManzo
    We use a 'backup cycle override' data area. Normally left blank, but if anyone needs to do something different, like do an IPL mid-week, they can update this data area and the backup procedures will change what they do, then reset it to blank again. Say admin has just loaded the latest PTFs, they can tell day-end to do the Sunday full system save on a Wednesday.
    2,950 pointsBadges:
    report
  • ToddN2000
    I assume this data area is only in the production environment then and not in the test environment. If that is the case and it's only in one location and you have the ability to override it can be an issue. I guess you might want to create a front end CL for the testers. When they want to test using a different date, store the current one in a 2nd data. Add the call to their process and when the job completes copy back the original value.
    129,355 pointsBadges:
    report
  • GregManzo
    No, the data area is in test also, otherwise how would be be able to test overriding the backup? :-)
    NB: We have a separate Development box (well LPAR), so we can IPL it independently from Prod. They share a single tape drive.
    2,950 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: