Code: Select all
declare string theFilePath
declare string longFileName
compute theFilePath = "/Users/gregory/Documents/Folder A/"
do i=1,5
* Some stuff goes here
compute longFileName = theFilePath + "My File" + i + ".xls"
open copy &longFileName
copy(format=xls,org=col) theStart+i theEnd+i hhs
End do i