Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Good day
How do i code the below
If a model was run from the QMC i would like to set the error mode =0 for that run ,
else if the model is not run from QMC set error model to 1.
This model is scheduled to run daily .
You probably have a service account that is the user when an app is reloaded from the QMC.
If osuser() = YourServiceAccount then
set errormode = 0;
else
set errormode = 1;
end
You probably have a service account that is the user when an app is reloaded from the QMC.
If osuser() = YourServiceAccount then
set errormode = 0;
else
set errormode = 1;
end
I am running June 2020 Qlik Sense. this code seems to work for me.
vUser=SubField(osuser(),'UserId=',2);
If '$(vUser)' = 'sa_scheduler' then
set errormode = 0;
TRACE 'vUser = $(vUser)';
else
set errormode = 1;
TRACE 'vUser = $(vUser)'
end if;