Date: Tue, 27 Oct 1998 11:21:31 -0800
Reply-To: "Lanning, Chris" <clanning@AMGEN.COM>
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: "Lanning, Chris" <clanning@AMGEN.COM>
Subject: Help with system commands!!!
I have a little problem. I submitted the following code on my PC running
Win95 and SAS 6.12:
#15 @4 "Enter the drive letter of the CDROM: " @45 cdrom 3
#17 @4 "Enter the path where the data should be copied: "
path 25 attr=underline required=yes
#19 @10 "Create the directory entered above (Y/N)? "
diryn 1 attr=underline
#21 @10 "Create subdirectories for format library and raw data
subdiryn 1 attr=underline
#30 @15 "Press" @21 "ENTER" attr=underline @27 "to continue.";
%let cdrom = d:;
%let diryn = Y;
%let subdiryn = Y;
%let path = c:\;
%if %upcase(&diryn) = Y %then %do;
x "md &path";
%if %upcase(&subdiryn)= Y %then %do;
%sysexec md &path\formats;
%sysexec md &path\rawfiles;
%sysexec copy &cdrom\format.sas &path\formats;
The display worked perfectly. In the display I kept diryn and subdiryn
equal to Y so that the 'if' statements in the macro are true. When SAS
executed the system commands it did not close down the system window box
after executing the copy command. Then when I manually closed the box SAS
reopened it. It's like it was stuck in a do loop or something. Basically I
could not get it to leave the system commands box without totally shutting
What is going on here? How do I fix this crazy problem?
Thanks in advance!
SAS Consulting is my life!!!