From: ash007 on
On Oct 5, 6:16 pm, michaelrait...(a)WESTAT.COM (Michael Raithel) wrote:
> Dear SAS-L-ers,
>
> Ash007 posted the following:
>
> > Hello Sas-Users,
>
> > How can the pgm SAS wait for the end of the copy of the datasets
> > before execution of the next data step?
>
> > option noxwait noxsync;
>
> > data _null_;
> >         x copy /*move*/
> >                 "c:\users\ash_rmy\documents\ __________________\02_gfm
> > \performancecopie\garantie_tr_ventile.sas7bdat"
> >                 "c:\users\ash_rmy\documents\ __________________\02_gfm
> > \performancecopie\source";
> > run;
>
> Ash, I think that the answer to this problem is as plain as the nose on your face:-)  That is; the BIG clue is hidden in your posting!
>
> If you are going to use X statements (or X commands, or CALL SYSTEM) to run your OS commands, and want SAS to wait for them to complete, simply specify "XSYNC" instead of "NOXSYNC".  That directs SAS to "suspend" your SAS program, execute the operating system command, and then return control to your SAS program once the operating system command has completed.  The good news is that XSYNC is the default, so you should only need to excise it from that pesky OPTIONS statement of yours.
>
> Ash, 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: MichaelRait...(a)westat.com
>
> Author: Tuning SAS Applications in the MVS Environment
>
> Author: Tuning SAS Applications in the OS/390 and z/OS Environments, Second Editionhttp://www.sas.com/apps/pubscat/bookdetails.jsp?catid=1&pc=58172
>
> Author: The Complete Guide to SAS Indexeshttp://www.sas.com/apps/pubscat/bookdetails.jsp?catid=1&pc=60409
>
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> The cure for anything is salt water--sweat, tears, or the sea. - Isak Dinesen
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Thanksfor your help.

Ash007.
First  |  Prev  | 
Pages: 1 2 3 4 5
Prev: Variable reduction method
Next: SUBSTR Madness