Page 1 of 1

Calling Multiple batch pff

Posted: September 16th, 2018, 2:10 pm
by Yass
Dear Cspro Great Team,

Please I have an export routine (regular export of 4 different files to generate report) that i created a small entry file with a function to excepff for all the batch file run one after the other. I did edited the .pff file of each batch application on exit it should return to Menu. I did reenter after calling the function and it does not work too.

Please how to disable the running of the batch on my screen.

I tried this ...

Code: Select all

function tbc5()
string pathbc5 = "../App/*.pff";
if execpff(pathbc5,stop) = notappl then
errmsg("Data failed to be Exported");
endif;
end;

Re: Calling Multiple batch pff

Posted: September 17th, 2018, 10:07 am
by Gregory Martin
I don't think I understand the problem. In general, if you wanted to run four PFFs, you could do something like this:
execpff("pff_name1.pff", wait);
execpff("pff_name2.pff", wait);
execpff("pff_name3.pff", wait);
execpff("pff_name4.pff", wait);
Afterwards you could reenter whatever part of the menu you're interested in.

You could post your app if you want us to see why it doesn't work.

Re: Calling Multiple batch pff

Posted: September 18th, 2018, 5:03 am
by Yass
Thanks Greg !!! :) :)

Re: Calling Multiple batch pff

Posted: September 18th, 2018, 9:34 am
by Enkhbayar
Or you can create an MSDOS batch application as below

RUN_BATCH.bat
========================================================================
start H:\SAS_APP\Center_Office_app\DownloadData-PLOTQUESTIONNAIRE_8ICT.pff
TIMEOUT 180

start H:\SAS_APP\Center_Office_app\plot_correction\plot_correction.pff
TIMEOUT 180

start H:\SAS_APP\Center_Office_app\export\plot\Plot.exf.pff
TIMEOUT 180
========================================================================