From: Mary on 5 Jan 2010 12:48 Does your mainframe have administrators? If so usually what you would do is to setup a JCL job that calls a SAS program or actually has the SAS program included in the same file with the JCL around it, then submit a request to the operations department of your shop to schedule the job for every Monday at 5PM. You usually can't do this yourself; operations needs to. -Mary --- tw2(a)MAIL.COM wrote: From: Tom White <tw2(a)MAIL.COM> To: SAS-L(a)LISTSERV.UGA.EDU Subject: How to schedule SAS job on mainframe Date: Tue, 5 Jan 2010 12:40:14 -0500 Hello SAS-L, I would like to know if there is a way to schedule a SAS job, say, run the program every Monday at 5:00 PM, on an IBM mainframe (I think its an iSeries). I do not have SAS connect installed on my PC nor do I have SAS on my PC. I simply manually log on to the mainframe, do my work there were all SAS programs reside, and then log off. SAS 9 is installed on the mainframe. Specific code, batch, etc. with instructions would be great. Thank you. Tom
From: Tom Abernathy on 5 Jan 2010 13:09 Last year I was able to submit jobs to a machine running TSO by FTPing the job. Perhaps your shop allows something similar. In that case you can schedule something on your PC to run submit the job. On Jan 5, 12:48 pm, mlhow...(a)avalon.net (Mary) wrote: > Does your mainframe have administrators? If so usually what you would do is > to setup a JCL job that calls a SAS program or actually has the SAS program > included in the same file with the JCL around it, then submit a request > to the operations department of your shop to schedule the job for every > Monday at 5PM. You usually can't do this yourself; operations needs to.. > > -Mary > > --- t...(a)MAIL.COM wrote: > > From: Tom White <t...(a)MAIL.COM> > To: SA...(a)LISTSERV.UGA.EDU > Subject: How to schedule SAS job on mainframe > Date: Tue, 5 Jan 2010 12:40:14 -0500 > > Hello SAS-L, > > I would like to know if there is a way to schedule a SAS job, say, > run the program every Monday at 5:00 PM, on an IBM mainframe > (I think its an iSeries). > > I do not have SAS connect installed on my PC nor do I have SAS on my PC. > > I simply manually log on to the mainframe, do my work > there were all SAS programs reside, and then log off. > > SAS 9 is installed on the mainframe. > > Specific code, batch, etc. with instructions would be great. > > Thank you. > > Tom
From: Jf Berube on 5 Jan 2010 13:03 Another way... without the administrator part! I use a PC scheduler under windows and submit the JCL via the MVS internal reader. Something like that filename jcl "the jcl you whant to submit from the PC"; Filename intrdr FTP "'x'" User="&MVSid" Pass="&MVSpw" Host="&host" rcmd='site recfm=v filetype=JES' debug; data _null_; infile jclin missover pad; file intrdr ; input; put _infile_;; Run; JF COI Inc. -----Original Message----- From: SAS(r) Discussion [mailto:SAS-L(a)LISTSERV.UGA.EDU] On Behalf Of Mary Sent: January 5, 2010 12:49 To: SAS-L(a)LISTSERV.UGA.EDU Subject: Re: How to schedule SAS job on mainframe Does your mainframe have administrators? If so usually what you would do is to setup a JCL job that calls a SAS program or actually has the SAS program included in the same file with the JCL around it, then submit a request to the operations department of your shop to schedule the job for every Monday at 5PM. You usually can't do this yourself; operations needs to. -Mary --- tw2(a)MAIL.COM wrote: From: Tom White <tw2(a)MAIL.COM> To: SAS-L(a)LISTSERV.UGA.EDU Subject: How to schedule SAS job on mainframe Date: Tue, 5 Jan 2010 12:40:14 -0500 Hello SAS-L, I would like to know if there is a way to schedule a SAS job, say, run the program every Monday at 5:00 PM, on an IBM mainframe (I think its an iSeries). I do not have SAS connect installed on my PC nor do I have SAS on my PC. I simply manually log on to the mainframe, do my work there were all SAS programs reside, and then log off. SAS 9 is installed on the mainframe. Specific code, batch, etc. with instructions would be great. Thank you. Tom
From: Michael Raithel on 5 Jan 2010 13:42 Dear SAS-L-ers, Tom White posted the following: > I would like to know if there is a way to schedule a SAS job, say, > run the program every Monday at 5:00 PM, on an IBM mainframe > (I think its an iSeries). > > I do not have SAS connect installed on my PC nor do I have SAS on my > PC. > > I simply manually log on to the mainframe, do my work > there were all SAS programs reside, and then log off. > > SAS 9 is installed on the mainframe. > > Specific code, batch, etc. with instructions would be great. > > Thank you. > Tom, this is a routine type of task in a mainframe shop. But, the exact way to do it varies from shop to shop. Here is a general outline of what you will need to do: 1. Contact your Systems Group to determine how "batch jobs" are scheduled in your organization. Many orgs use the CA-7 job scheduling subsystem to schedule programs for execution and to route the non-file output--e.g. SAS logs, reports, etc. Many orgs have a "Scheduling Department" or scheduling staff whose sole task it to work with CA-7 to schedule jobs and to call programmers at 2:37am when their important production jobs bomb out. There will undoubtedly be a bureaucracy, mounds of paperwork to wade through, important signatures to garner, and lots of minute decisions to make... just think of how much fun it will be to work with a new group of people at your organization:-) 2. Create the Job Control Language (JCL) wrapper for your SAS program. Chat up one of your colleagues and see if you can borrow one of her batch jobs to use as a template. The SAS 9.2 Companion for z/OS has some examples of how to allocate files, etc. Check it out: http://support.sas.com/documentation/cdl/en/hosto390/61886/PDF/default/hosto390.pdf . Pay attention to where your output (SAS Log, Reports) are going to be routed. You will more than likely want to look at them after your batch job has completed. 3. Stuff your SAS program into a member of a Partitioned Data Set (PDS) or other file that will be read as the SYSIN in your JCL. Most orgs do not allow in-line programs anymore, so don't start off on the wrong foot with your Scheduling staff by looking like a rookie with in-line SAS code after your JCL statements. 4. Execute your batch program a few times on your own, outside of the job scheduling subsystem, to determine that it runs A-OK. There are few better ways of lighting a short fuse with the Scheduling staff than having a new job bomb out the first time it is run. 5. Complete all of the above and next Monday head out for dinner. Return at 6:35pm and review the JCL output, the SAS log, your reports, files created/updated, etc. If everything is hunky-dory, you might want to have a beer when you get home:-) Tom, best of luck in all of your SAS endeavors! I hope that this suggestion proves helpful now, and in the future! Of course, all of these opinions and insights are my own, and do not reflect those of my organization or my associates. All SAS code and/or methodologies specified in this posting are for illustrative purposes only and no warranty is stated or implied as to their accuracy or applicability. People deciding to use information in this posting do so at their own risk. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Michael A. Raithel "The man who wrote the book on performance" E-mail: MichaelRaithel(a)westat.com Author: Tuning SAS Applications in the MVS Environment Author: Tuning SAS Applications in the OS/390 and z/OS Environments, Second Edition http://www.sas.com/apps/pubscat/bookdetails.jsp?catid=1&pc=58172 Author: The Complete Guide to SAS Indexes http://www.sas.com/apps/pubscat/bookdetails.jsp?catid=1&pc=60409 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Meeting - An event where minutes are kept and hours are lost. - Anonymous +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
Pages: 1 Prev: How to schedule SAS job on mainframe Next: Population Stability Index - PSI |