Page 1 of 1

Close Data Viewer after .pff run

Posted: June 16th, 2021, 12:45 pm
by Yass
I am using execpff(filename(my_pff), wait) to download multiple files but i need to manually close the data viewer after each download.
I want to close the data viewer after each download.. how do i close it?

Thanks

Re: Close Data Viewer after .pff run

Posted: June 16th, 2021, 6:46 pm
by aaronw
Instead of executing each PFF my suggestion would be to write some logic. Add this to a batch application and execute the single PFF. It will silently synchronize each dictionary.
PROC DOWNLOAD_DATA_FF

if syncconnect(CSWeb, serverURL) then

     syncdata
(GET, LISTING_DICT);
     
syncdata(GET, STAFF_DICT);

     
syncdisconnect();

endif;