Usage Note 11240: How can I dynamically set an accounting code using the SAS/CONNECT
Spawner on z/OS?
An account code can be statically set for a server created by the
SAS/CONNECT Spawner 9.1 by coding the environment variable
_BPX_ACCT_DATA in the Spawner USS shell script.
export _BPX_ACCT_DATA=acctcode
Here is a method for seting the accounting code dynamically.
To do this you will need to use a CONNECT script to do the SIGNON
along with making the following changes to the CONNECT Spawner
components.
In the Client Session:
/* the acctcode macro variable will be used in the CONNECT script */
%let acctcode=SAS0000ACT;
filename rlink 'c:\connect\saslink\tcptso9.scr';
signon mvshost.spawner;
\* In the CONNECT Script, the only change is to add to the */
\* spawner logic. The SYSPARM SAS option maybe use but msy */
\* cause a problem if SYSPARM is every needed or used within SAS */
type "/usr/lpp/SAS/connect/spawn913.sh nosasuser
opt(''dmr,comamid=tcp'') " ;
type "SASENV=&acctcode " LF;
In the USS shell logic:
#
# Construct CLIST parameters from command arguments
#
#
for arg in "$@"; do
# build test arg. (targ) by taking the "arg" variable
# and stripping the largest rightmost string that matches
# pattern of the equal sign.
targ=${arg%%=*}
if test $targ = "SASENV"
then
# if targ = SASENV then set "acct" variable by deleting
# the leftmost string of "arg" including the =
# clear out the arg value so the bogus/invalid parm SASENV is not
# passed on to the SAS session
acct=${arg#*=}
arg=''
fi
cmd="$cmd$arg "
done
/* also add to the shell script */
export _BPX_ACCT_DATA=$acct
Operating System and Release Information
SAS System | SAS/CONNECT | z/OS | 9.1 TS1M0 | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Type: | Usage Note |
Priority: | |
Topic: | Software Components ==> Connect Spawner
|
Date Modified: | 2007-01-24 17:57:37 |
Date Created: | 2003-11-07 14:30:20 |