Filecopy and Fileconcat function
Posted: June 3rd, 2016, 6:54 am
Hi Josh I have this Menu program that direct files from three main programs in three data files.
I have the following programm
Programs: Menu, Savings Prog , Loans Prog , Customer Details Prog
With the associated Data folders: SavingsData, LoansData, CustomerDetailsData
I will like to use the filecopy function to copy all files with .dat from the savingsData of each keyer into
Keyer1Data folder for Keyer1, Keyer2Data folder for Keyer2 etc.
I will like to do same for Loans and Customers.
I have 10 keyers and going through the data folders to copy manually is a real task and time consuming, i just read on this forum on the use of the filecopy and fileconcat functions. I check the CSpro help menu i had some information but i still more clarification.
I my case which global proc do i need to place the function - filecopy("*.dat", "myfolder"); (Menu or individual program).
After filecopy i want to use the fileconcat function - fileconcat("c:\prov1\prov1.dat", "c:\prov1\01*.dat"); Which proc and prog do i need to use this function.
Thanks in advance
I have the following programm
Programs: Menu, Savings Prog , Loans Prog , Customer Details Prog
With the associated Data folders: SavingsData, LoansData, CustomerDetailsData
I will like to use the filecopy function to copy all files with .dat from the savingsData of each keyer into
Keyer1Data folder for Keyer1, Keyer2Data folder for Keyer2 etc.
I will like to do same for Loans and Customers.
I have 10 keyers and going through the data folders to copy manually is a real task and time consuming, i just read on this forum on the use of the filecopy and fileconcat functions. I check the CSpro help menu i had some information but i still more clarification.
I my case which global proc do i need to place the function - filecopy("*.dat", "myfolder"); (Menu or individual program).
After filecopy i want to use the fileconcat function - fileconcat("c:\prov1\prov1.dat", "c:\prov1\01*.dat"); Which proc and prog do i need to use this function.
Thanks in advance