× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Well darnit, James, if it's not on the iSeries, it's junk.

Remember the old SNL skit with Mike Myers - Scottish or crap?  Sounds like
we have a new one.  Is it AS/400 or CRAAAAAAAP!

I hope y'all are catching the sarcasm, because I'm laying it on pretty
thick.

jch

-----Original Message-----
From: James Rich [mailto:james@eaerich.com]
Sent: Friday, January 17, 2003 1:11 PM
To: Midrange Systems Technical Discussion
Subject: RE: At the risk of sounding like an AS/400 rah-rah...


On Fri, 17 Jan 2003, Joe Pluta wrote:

> > You can do that in the Unix world too. That is what cron jobs are for. I
> > don't know any more detail than that though.
>
> ANYTHING you can do in one computer you can do in another.  It's just a
> matter of how it's done.  In Unix, you update a table:
>
> 01 * * * * root echo "This command is run at one min past every hour"

[snipped rest of table]

> In OS/400, it's something like this (for the 4AM job):
>
> ADDJOBSCDE JOB(MYJOB) CMD(CALL PGM(MYPGM))
>            FRQ(*WEEKLY) SCDDAY(*SUN) SCDTIME(0400)
>
> It's much easier to add a one-shot job using ADDJOBSCDE than it is to use
> cron.  But like I said, it can be done.

If you wanted a one time job then use the correct tool: the 'at' command.
You can even schedule things to run on a given queue.  If your jobs are in
file MYPGM then you would do:

at -f MYPGM 04am Jan 19

Pretty easy I think.  at and cron can do a lot of things that can't be
done easily with ADDJOBSCDE.

James Rich

_______________________________________________
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo.cgi/midrange-l
or email: MIDRANGE-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.