ControlM and SAS

Several scripts
Post Reply
User avatar
Simmi20
Nouveau
Nouveau
Posts: 2
Joined: 22 Aug 2012 12:00

ControlM and SAS

Post by Simmi20 » 22 Aug 2012 4:18

What are the pre requisites to execute a SAS job through Control M ?
Seems

User avatar
philhaut
Nouveau
Nouveau
Posts: 32
Joined: 06 Feb 2007 12:00
Location: VALENCIENNES

Post by philhaut » 23 Aug 2012 3:32

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

User avatar
Allison
Nouveau
Nouveau
Posts: 14
Joined: 22 Sep 2012 12:00

Post by Allison » 22 Sep 2012 7:16

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

User avatar
ThePirate
Nouveau
Nouveau
Posts: 61
Joined: 04 Feb 2008 12:00
Location: Cleveland, OH

Post by ThePirate » 09 Oct 2012 8:11

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"

Post Reply