Date: Mon, 2 Nov 1998 10:53:26 -0500
Reply-To: RHOADSM1 <RHOADSM1@WESTAT.COM>
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: RHOADSM1 <RHOADSM1@WESTAT.COM>
Subject: Re[2]: Namepipe under WinNT
Content-Type: text/plain; charset=US-ASCII
Are other people running SAS 6.12 under Windows 95 also able to get PIPE to
work as Dan did? Ian and I both tried his final example, with a directory that
was present on our C drives. We saw the list of files flash through a DOS
window, but no records were read from IN. Playing around with XWAIT and XSYNC
didn't seem to matter. Anyone have any ideas why this works for Dan but not for
us? I was interested because the discussion in the SAS Companion for Windows
suggested to me that Windows NT was required for any of the piping stuff to
work.
Mike Rhoads
Westat
RhoadsM1@Westat.com
<<previous contents of thread>>
Peter Crawford wrote:
>
>Thankyou for the efforts you're all making for me
>
>So now I know, NAMEPIPE doesn't work on Win95, it seems fair to try PIPE
>
>
>21 filename in pipe 'c:\command -c dir ';
>22 data _null_;
>23 infile in;
>24 input ; put _infile_;
>25 run;
>
>NOTE: The infile IN is:
> FILENAME=c:\command -c dir,
> RECFM=V,LRECL=256
>
>NOTE: 0 records were read from the infile IN.
>NOTE: The DATA statement used 18.62 seconds.
>
>
>26 /****opened a DOS window which showed this*****
>27 Specified COMMAND search directory bad
>28 Too many parameters
>29
>30
>31 Microsoft(R) Windows 95
>32 (C)Copyright Microsoft Corp 1981-1996.
>33
>34 C>
>35 ******************end text in DOS window*******/
>36
>37 filename in pipe 'c:\command /c dir ';
>38 data _null_;
>39 infile in;
>40 input ; put _infile_;
>41 run;
>
>NOTE: The infile IN is:
> FILENAME=c:\command /c dir,
> RECFM=V,LRECL=256
>
>NOTE: 0 records were read from the infile IN.
>NOTE: The DATA statement used 3.89 seconds.
>
>
>************************
> this was partial success, but as you can see,
> the infile read no records -
> the output streamed through a dos window
> which closed on completion
>Note the current state is XWAIT and XSYNC
>
>
>Am I allowed to "give up" on pipe
>
>--
>Peter Crawford
>
>
Peter,
you are perfectly welcome to give up on PIPE, but the problem may be in how you
specified the filename. To get a directory listing , I ran the code from the
log file listed below on my Win95 system with SAS 6.12 TS045 . The only
problem relative to the original request is that this will open up a dos
window.
Hope this is helpful to someone,
Dan Nordlund
19 filename in pipe 'dir c:\wsftp';
20 data _null_;
21 infile in;
22 input;
23 put _infile_;
24 run;
NOTE: The infile IN is:
FILENAME=dir c:\wsftp,
RECFM=V,LRECL=256
Volume in drive C has no label
Volume Serial Number is 395B-19E7
Directory of C:\wsftp
. <DIR> 06-24-97 8:28a .
.. <DIR> 06-24-97 8:28a ..
WS_FTP32 EXE 238,080 11-12-95 3:53p WS_FTP32.EXE
WS_FTP32 TXT 9,607 07-31-95 7:08p WS_FTP32.TXT
WS_FTP EXT 80 08-19-95 12:44p WS_FTP.EXT
WS_FTP INI 2,629 04-27-98 6:02p WS_FTP.INI
COMPLETE WAV 12,106 07-13-95 11:00p COMPLETE.WAV
CONNECT WAV 14,354 08-19-95 8:33a CONNECT.WAV
ERROR WAV 9,996 04-10-95 9:30p ERROR.WAV
WHATSNEW TXT 7,724 11-12-95 2:13p WHATSNEW.TXT
COMMON TXT 4,066 08-21-95 4:32p COMMON.TXT
WS_FTP HLP 46,585 11-12-95 4:51p WS_FTP.HLP
WS_FTP LOG 75 06-24-97 8:37a WS_FTP.LOG
11 file(s) 345,302 bytes
2 dir(s) 276,332,544 bytes free
NOTE: 20 records were read from the infile IN.
The minimum record length was 0.
The maximum record length was 56.
NOTE: The DATA statement used 1.31 seconds.
|