[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Re: [sqr-users] renaming an input file?
Hi John,
Here's a cheese-free approach that works great for us. We append the
current date to the input file to prevent the interface from running a
second time, and create a history of input files used.
HTH,
Don
let $RenameFile = '{IMPORTPREFIX}filename_' || $Date || '.txt'
let #fstatus = delete($RenameFile)
let #fstatus = rename($InputFile,$RenameFile)
If #fstatus <> 0
Show 'Could not rename input file ' $InputFile
Show 'to ' $RenameFile
end-if
sqr-users-bounces+don.barclay=srs.gov@sqrug.org wrote on 10/25/2005
01:46:22 PM:
> I am once again writing the group on a question I already have an
> answer to, just to see if someone has a better answer. I am writing
> an interface that reads an incoming file. To prevent someone from
> running a given file more than once, I need to rename the incoming
> file after I'm done with it.
>
> -John T.
_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users