Date: Wed, 12 Sep 2007 17:45:58 -0400
Reply-To: Mike Rhoads <RHOADSM1@WESTAT.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Mike Rhoads <RHOADSM1@WESTAT.COM>
Subject: Re: Use Windows Explorer "selected files" as input to SAS program.
Content-Type: text/plain; charset="us-ascii"
You might try putting a larger number in the sample, and see if it
The Microsoft documentation for GetOpenFileName is below (in part). I'm
not sure of the difference between GetOpenFileName and GetOpenFileNameA
"Note, when selecting multiple files, the total character limit for the
file names depends on the operating system and the version of the
Windows 95/98/Me: (only ANSI is supported) no restriction
Microsoft Windows NT4 and earlier: 32k limit
Windows 2000/XP: (ANSI) 32k limit, (Unicode) no restriction "
Good luck! (Or you could go with Richard's other solution.)
From: firstname.lastname@example.org [mailto:email@example.com]
On Behalf Of data _null_,
Sent: Wednesday, September 12, 2007 5:35 PM
To: Mike Rhoads
Cc: SAS-L List
Subject: Re: Use Windows Explorer "selected files" as input to SAS
This does seem promising but I see a suspicious looking 2048 in the
program the same as the VB Script limit imposes
On 9/12/07, Mike Rhoads <RHOADSM1@westat.com> wrote:
> My two rules for this type of question:
> 1. Think about using the SAS interface to the WinAPI routines.
> 2. Check Richard DeVenezia's excellent web site to see whether he has
> sample that may be exactly what you want.
> I think you are in luck. Check out the sample for GetOpenFileNameA at
> Mike Rhoads
> -----Original Message-----
> From: firstname.lastname@example.org
> On Behalf Of data _null_,
> Sent: Wednesday, September 12, 2007 3:51 PM
> To: SAS-L List
> Subject: Use Windows Explorer "selected files" as input to SAS
> I want to "select" some files in the Windows Explorer and "somehow"
> start a SAS program that uses the "selected" file names as input.
> Sort of like FILENAME PIPE on a DIR command but just the "selected"
> I will create using SAS, I guess, some kind of hyperlinked document
> using the content of the "selected" files.
> I don't know if having the starting point the WinEXP or if some other
> FILELIST interface is better.