LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (September 2008, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 4 Sep 2008 08:57:23 -0700
Reply-To:     jfh@stanfordalumni.org
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Jack Hamilton <jfh@STANFORDALUMNI.ORG>
Subject:      Re: Unable to clear libname - Libname <name> clear (z/OS)
Comments: To: Carl Denney <cdenney@HEALTHINFOTECHNICS.COM>
In-Reply-To:  <53e55104-cc9c-4201-9ef5-689bd0a09d8a@exedge03.netplexity.local>
Content-Type: text/plain; charset="ISO-8859-1"

Using

sleep(10, 1)

makes the sleep call platform-independent. On Windows, the default unit is seconds, and on other platforms, the default unit is milliseconds.

So x = sleep(10) on z/OS, the platform used by the original poster, would cause a pause of 1/100th of a second, not 10 seconds.

On Thu, 4 Sep 2008 09:13:39 -0500, "Carl Denney" <cdenney@HEALTHINFOTECHNICS.COM> said: > Try adding this to make SAS pause for 10 seconds. > data _null_;x=sleep(10);run; > At 08:57 AM 9/4/2008, Marc Weinmann wrote: > > Hi all - I am using SAS 9.1 on Z/OS, having trouble clearing a > libref > using 'libname <name> CLEAR;' I open four libraries at the > start of the > program, and clear all four at the end, at least I try to -- > that's > where my problem is. One libname that won't clear is produced > by a PROC > SORT data=xxxx out=yyyyy that in a code sense is the immediate > preceding > SAS statement to my block of LIBNAME <name> clear statements. > It would > seem perhaps the PROC SORT is still runnning when SAS > encounters the > LIBNAME name clear statements. > A simplified example follows, and the actual error. The > original code > is a macro program. Each time I invoke the macro I want it to > open four > libraries at the top of the macro, and close four libraries at > the end > of its code. > Any ideas how to wait for the dataset to cease being used, or > to check > what is using it? > Thanks! > Marc > Error: > PRINT(myprog): LIBNAME SA2FILE "UO.NHRF0810.OFF12SA2" > DISP=(NEW,CATLG) > UNIT=EUSER LABEL=RETPD=365 > RROR: Unable to clear or re-assign the library SA2FILE because > it is > still in use > RROR: Error in the LIBNAME statement. > Program: (&OFFNUM is a macro variable) > LIBNAME SA2FILE "UO.NHRF0810.OFF&OFFNUM.SA2" > DISP=(NEW,CATLG) > UNIT=EUSER LABEL=RETPD=9 ; > <.. Various processing statements ..> > PROC SORT DATA=TEMP2.POLS OUT=SA2FILE.POLS; BY REC_NUM; > LIBNAME SA2FILE CLEAR; > > Carl Denney, MSIE > Founder > Health InfoTechnics > 210 Jamestown Park, Suite 101, Brentwood, TN 37027 > 615/298-4011 > [1]http://www.healthinfotechnics.com > > References > > 1. http://www.healthinfotechnics.com/

-- Jack Hamilton Sacramento, California jfh@alumni.stanford.org <== Use this, not jfh@stanfordalumni.org


Back to: Top of message | Previous page | Main SAS-L page