Hello,
I have many ksh files that are passing the same parameters but with different values, then start the same SAS program. If that SAS program is already busy, do we need an option to tell him to wait to end before starting again.
For example, imagine that I have two ksh files PSASA and PSASB. The first one is passing the first parameter = ActMod while the second one is passing the parameter = Quote.
Then the same SAS program is started but with ActMod first, then restarted again with the value Quote.
The issue I observe, I see no error from Control-M but I don't see any log file for the second call.
Any suggestion how to solve that issue?
orderdate=$1
ordertime=$2
surveyname=$3
env=$4
echo $HOME
echo $HOME/bin
$HOME/bin/dapiupa.ksh "$orderdate" "$ordertime" "$name" "$env"
if test $? -lt 2
then
exit 0
fi
exit $?
#--------------------
# Exit procedure
#--------------------
So in the first call name=ActMod while in the second call name= Quote.
%global orderdate surveyname env;
%put =========> &SYSPARM;
%let orderdate = %qtrim(%scan(&sysparm.,1,'|',m));
%let ordertime = %qtrim(%scan(&sysparm.,2,'|',m));
%let surveyname = %qtrim(%scan(&sysparm.,3,'|',m));
%let env = %qtrim(%scan(&sysparm.,4,'|',m));
%let ActualDateTime=%sysfunc(putn(%sysfunc(datetime()),datetime21.2));
%let path1=********; /*Confidential*/
%let logpath=/&path1./logs;
proc printto log="&logpath./logfile_&ActualDateTime..log" new;
run;
OPTIONS SASAUTOS=("&path1./saspgm");
%put %sysfunc(pathname(sasautos));
%put &=orderdate &=ordertime &=surveyname &=env;
%include "&path1./saspgm/TxnCnctImptFrmOra.sas";
run;
%TxnCnctImptFrmOra(&orderdate,&ordertime,&name,jsonf);
run;
proc printto;
run;
... View more