Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Append using wild cards

Status
Not open for further replies.

joenutts

IS-IT--Management
May 23, 2002
3
US

I have created an empty database, how I do append other files into this one when other files have different names.

Example;
Empty file Crmas.dbf
other files Crmas20020801.dbf
Crmas20020802.dbf
Crmas20020905.dbf

How do I combine the three files with the dates into my master file called crmas.dbf
 
Take a look at the help files for APPEND FROM. Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Hi Joe,

nFiles = ADIR(laFiles,"myFile*.DBF")
USE (myFile)
FOR I=1 to nFiles
APPEND FROM (laFiles(i))
ENDFOR
...
...
:) ramani :)
(Subramanian.G),FoxAcc, ramani_g@yahoo.com
Merry Christmas & Happy New Year [bigears] [party] [2thumbsup]

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top