Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Correct use of sysparm on Unix 1

Status
Not open for further replies.

mmignot

Programmer
Jul 16, 2001
44
US
Hello all,

Does anyone know the correct format for using SYSPARM on a Unix platform? I'm executing a SAS program from a Korn shell script. I want to pass a run indicator
("TEST" or "PROD"), and a process date. Below is an example of what I think is the correct use of sysparm:

# +------------------------------------------------+
# * Execute SAS Program *
# +------------------------------------------------+
echo
echo "Executing address_list.sas ..."
sas -sysparm TEST,2006-10-01 address_list.sas
export return_code="$?"
if ([ "$return_code" -gt 4 ]); then
echo "address_list.sas failed."
exit
fi

Can anyone tell if the above example is a proper use of SYSPARM? If not, can you post s few examples?

Many thanks,
Mark
 
I believe that the parameters should be in quotes after the SYSPARM, something like this

Code:
sas address_list.sas -sysparm "TEST,2006-10-01"

Chris
Business Analyst, Code Monkey, Data Wrangler.
SAS Guru.
 
Chris, looks like that did the trick. Many thanks. Saved me lots of hours of research.

Mark :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top