|
Rich,
1- First
Could you submit the 3 job as 1 bigger job, check the return codes and
add a last step where you would call sas on the mainframe, download the file
to your PC and rsubmit (from the mainframe to your PC) the rest of the
processing to do ?
2- If not,
You could have a checkpoint file. Just watch the checkpoint until it is
in a state that indicates you that the 3 job are finished and then chain
with the rest of the processing (You would have to find a way to update the
checkpoint from the mainframe).
Just my 0.02$,
\\\|///
\\ - - //
( @ @ )
+-----oOOo-(_)-oOOo--+-----------------------------------+
| Bernard Tremblay | |
| CSST | Tel: (418) 528-9313 |
| | Fax: (418) 528-1493 |
| | Int: Bernard.Tremblay@csst.qc.ca |
+----------------------------+---------------------------+
| Imaginasys enr | Res: (418) 658-1411 |
| | Int: bertrem@videotron.ca |
| | Hot: imaginasys@hotmail.com |
+--------------Oooo--+-----------------------------------+
oooO ( )
( ) ) /
\ ( (_/
\_)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>From: "Mays, Rich" <Rich_Mays@URMC.ROCHESTER.EDU>
>Reply-To: "Mays, Rich" <Rich_Mays@URMC.ROCHESTER.EDU>
>To: SAS-L@LISTSERV.UGA.EDU
>Subject: Unix / MVS job control issue
>Date: Fri, 24 Nov 2000 15:15:02 -0500
>
>I am currently setting up a production job on Unix (Solaris 2.6 - SAS 8.1)
>to run overnight once a week. At a specific point in this job, Unix SAS
>uses SAS/Connect to send a SAS dataset to MVS (SAS 6.12) and submit 3
>separate MVS jobs which manipulate that file (via individual "x 'submit
><filename>'" statements in my RSUBMIT block). After that, I need to get
>the
>file in question back down to Unix to complete the job.
>
>My code looks something like the following:
> %include pgm(crtdata);
>
>options comamid=tcp remote=tso;
>filename rlink '/u3/programs/scripts/tcptso.scr';
>signon;
>
>RSUBMIT;
>libname remote 'rich.gen.sasdata' disp=old;
>
>proc upload in=origdata out=remote;
>run;
>
>x "submit 'rich.gen.sas(update1)'";
>x "submit 'rich.gen.sas(update2)'";
>x "submit 'rich.gen.sas(update3)'";
>
>/*---> this is where I would like the program to "wait" until the jobs
>finish
>before running the download... */
>
>proc download in=remote out=newdata;
>run;
>
>ENDRSUBMIT;
>
>%include pgm(useupdts);
>
>
>Here is my problem: Once the jobs are submitted on MVS, I don't know how
>to
>get the program to "wait" until those jobs have completed (error free)
>before ending the RSUBMIT block and running the rest of my program on the
>Unix side. Is there a statement/function that will help with this?
>Another
>alternative that I can think of is to have MVS job FTP a file back over to
>Unix when it has completed all 3 jobs - my problem then is how to tell Unix
>to run a new program once that FTP'd file shows up.
>
>Any advice would be greatly appreciated.
>
>Thanks!
>
>Rich Mays
>University of Rochester
_____________________________________________________________________________________
Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com
|