scheduling a job

20 pts.
Tags:
Application development
AS/400
DataCenter
I have a job that needs to run the 5th of each month. I've looked into JOBSCDE but I haven't see where I could schedule the job thru that. Do you know of an easy way to make that occur??

Answer Wiki

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

‘Sneakernet’-type reply: Schedule it for each individual 5th (i.e. 090506, 100506, 110506, etc.) for as many repetitions as JOBSCDE will allow. Then setup a separate JOBSCDE to remind QSYSOPR at the appropriate time to revise with new dates before the last one runs.

Crude, but quick. Other, probably far more graceful suggestions, are sure to follow from others.

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
  • HowardK41
    In the CLP, do RTVJOBA to get the system date. If it is not the 5th, go directly to EOJ. Put a job on the scheduler to execute the CLP every day. I have used this technique to run jobs at irregular intervals.
    0 pointsBadges:
    report
  • astradyne
    You can do it directly using the job scheduler. On the ADDJOBSCDE command specify a frequency of *MONTHLY and the date and time you want to schedule it for. For example to run on September 5th at 01:30 use: ADDJOBSCDE JOB(MONTHLY) CMD(your command) FRQ(*MONTHLY) SCDDATE(050906) SCDTIME('01:30') The FRQ(*MONTHLY) will reschedule for the following calendar month, the only rider being that if you schedule the job for the 29th, 30th, 31st of the month then the job will not run on months that don't have those dates in. Hope it helps Jonathan
    370 pointsBadges:
    report
  • Walter47
    While both of the previous suggestions HowardK41 does it like me. That way it's hands free and no reminders are necessary
    120 pointsBadges:
    report
  • TomLiotta
    Note that Jonathan's method is also "hands free", and it also runs only once a month rather than every day. Tom
    125,585 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