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 (November 2011, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 18 Nov 2011 11:40:01 -0600
Reply-To:     Joe Matise <snoopy369@GMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Joe Matise <snoopy369@GMAIL.COM>
Subject:      Re: Network Path was not found syntax error
Comments: To: Craig J <cjohns38@gmail.com>
In-Reply-To:  <CABr4SpczYDLaj7zRf-HGAA1ppjKr+oUrrdYNd+Qss+YOn-y+Xw@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

Little more information would be helpful. I assume this is a windows environment? I don't think UNC paths are allowed in PIPE filenames (they're not allowed in CMD). Does the FILES dataset work properly?

-Joe

On Fri, Nov 18, 2011 at 11:31 AM, Craig J <cjohns38@gmail.com> wrote: > Trying to run some basic code to merge txt files together and I'm getting > errors with a mapped drive. Have tried the drive letter and the UNC path > with similar results. Any ideas? > > %let path=\\path\folder\; > > filename getdir pipe "dir &path.*.txt /b"; > data Files; > length filename $ 100; > infile getdir truncover; > input filename $20.; > filename="&path."||filename; > %put &filename; > run; > > data SnackDelay; > set files; > infile dummy filevar=filename firstobs=2 truncover dlm=';' end=eof; > do while (not eof) ; > length Date_Time_Absolute_dmy_hmsf $26 Date_dmy $14 Time_Absolute_hms $12 > Time_Absolute_f $4 Time_Relative_hmsf $16 > Time_Relative_hms $14 Time_Relative_f $5 Time_Reative_sf $5 Duration_sf > $10 Observation $38 > Event_Log $18 Subject $9 Behavior $25 Event_type $8. Comment $39.; > > INPUT Date_Time_Absolute_dmy_hmsf $ Date_dmy $ Time_Absolute_hms $ > Time_Absolute_f $ Time_Relative_hmsf $ > Time_Relative_hms $ Time_Relative_f $ Time_Relative_sf $ Duration_sf $ > Observation $ Event_Log $ > Subject $ Behavior $ EventType $ Comment $; > output; > end; > run; >


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