Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Team,
I was getting a error after Migrating to newer version it is creating & file when i compare with old version script both are same .
some thing is causing here and creating & file for each table
for each vFile in FileList('$(vQVD)*.qvd')
let vFileName = mid(vFile, index(vFile, '\', -1) + 1, 99);
let vFileNameOnly = subfield(vFile,'\',-1) ;
let vFilePK = replace(vFileNameOnly,'.QVD','_PK');
let vFilenoQVD = replace(vFileNameOnly,'.QVD','');
let vIncFile = '$(vQVD)'&'$(vFileName)';
let vRawFile = '$(vQVDRaw)'&'$(vFileName)';
//if '$(vFileName)' = 'F0911.QVD' then
[$(vFilenoQVD)]:
load distinct *
from $(vIncFile)(qvd);
Concatenate
load distinct *
from $(vRawFile)(qvd)
where not exists ([$(vFilePK)]);
store '$(vFilenoQVD)' into '$(vRawFile)';
drop table [$(vFilenoQVD)];
Please suggest me
Vegar,
Thanks for coming back to me, You want me to put () next to VFilePK, Please Suggest
If you know how many characters that is in your file name you could swap the star with questionmarks.
for each vFile in FileList('$(vQVD)??????.qvd') //assuming the old * is 6 chars long
This will exclude files with 7 chars such as '&F42119'.