|
Richard:
While the files are being downloaded be sure to download to a filename with
an extension like .txt-in-transit. Only when the file is completely
downloaded should you rename it to .txt. Otherwise a SAS job may start
processing a file that has not been completely transferred.
This become important when the download file size is large and takes a
substantial amount of time (in my book that's 2 seconds :-)
Richard DeVenezia
<Richard.Simhon@CORNHILL.CO.UK> wrote in message
news:2710430F08DAD211A3F70008C71EEE6902F53B25@s-cho-exch0001...
> All,
>
> I currently run a daily program part of which imports a number of .txt
files
> into a data set. I would like to kick off this program automatically which
> in itself is not a problem. What is stopping me from doing this, is the
fact
> that these .txt files are downloaded in the folder at varying times each
day
> (Reasons are too numerous to site).
> My question is:- Can I place some sort of test in SAS to probe the
> appropriate directory to see if the .txt files have been downloaded into
> that directory? and if the result is positive, to then run the program.
>
> Thanks in advance.
>
>
>
> Richard Simhon
> Business Analyst
> Email: Richard.Simhon@Cornhill.co.uk
>
>
>
> **********************************************************************
> Copyright in this message and any attachments remains with us. It is
> confidential and may be legally privileged. If this message is not
> intended for you it must not be read, copied or used by you or
> disclosed to anyone else. Please advise the sender immediately if
> you have received this message in error.
>
> Although this message and any attachments are believed to be free of
> any virus or other defect that might affect any computer system into
> which it is received and opened it is the responsibility of the
> recipient to ensure that it is virus free and no responsibility
> is accepted by Cornhill Insurance PLC for any loss or damage in any
> way arising from its use.
>
> Cornhill Insurance Plc, Registered in England number 84638,
> Registered Office 32 Cornhill, London EC3V 3LJ.
> **********************************************************************
|