Page 1 of 1

ControlM and SAS

Posted: 22 Aug 2012 4:18
by Simmi20
What are the pre requisites to execute a SAS job through Control M ?

Posted: 23 Aug 2012 3:32
by philhaut
hi
we use SAS and Controlm 7
the job sas are executed by script unix (ksh) with the command
$SASROOT/sas -work ${SASTMP}${NUMTEMP} -log ${SASLOGF} -print ${SASLSTF} ${SASPROGF}

you can after analyse the SASLOG by grep
ie
rc=`/usr/xpg4/bin/grep -E -c '^ERROR |^ERROR: | ERROR | ERROR: | Copyright ' "${SASLOGF}"`
if [ $rc -ne " 1" ] ; then
export SASEXIT="PB"
fi

Posted: 22 Sep 2012 7:16
by Allison
Hii...Simmi this is Allison...Control-M is a software solution (supplied by BMC) which allows enterprise users to schedule and control complex job batches. The product exists in two distinct versions, one for the mainframe (which is the original version) and another for distributed systems.But
SAS (pronounced "sass", originally Statistical Analysis System) is an integrated system of software products provided by SAS Institute Inc., which enables programmers to perform:

retrieval, data management, and data mining
report writing and graphics
statistical analysis
business planning, forecasting, and decision support
operations research and project management
quality improvement
applications development
data warehousing (extract, transform, load)
platform independent and remote computing

Posted: 09 Oct 2012 8:11
by ThePirate
I run very little SAS but my command line is below. Maybe this will help.

"D:\Program Files\SAS\SASFoundation\9.2\sas.exe" -SYSIN "D:\SAS Folders\SAS Programs\MasterBuildUserTable.sas" -noautoexec -noterminal -nosplash -log %%1 -CONFIG "D:\Program Files\SAS\SASFoundation\9.2\SASV9.CFG"

Where %%1 is defined on the Set tab as

%1 = "\\Sysnet\ftproot\ControlM\SAS\MasterBuildUserTable%%$DATE.%%TIME..log"