Chapter Contents |
Previous |
Next |
SAS/SHARE User's Guide |
You must perform the following steps to create the server environment on a CMS host:
Setting SAS System Performance Options |
The following SAS system options can be used to tune server performance.
Specifying BLKSIZE=0 when invoking SAS in the server environment can help avoid unnecessary use of the server's virtual storage and can help you reduce the amount of I/O performed in the server execution.
You can use the following values with the MEMSIZE= option:
For the CMS environment, the default is MEMSIZE=0. In order to limit the amount of virtual memory that SAS can use, you should specify a value for the MEMSIZE= option. For SAS/SHARE, you may want to specify a value of 16M or 20M for the MEMSIZE= option to allow for peak usage periods.
Specifying a value of 0 (zero) for this option allows a server to make more efficient use of its virtual storage.
Note: The overhead that is incurred by the UNBUFLOG option may degrade
the performance of a busy server.
A typical SAS configuration file follows:
blksize=0 memsize=20M viobuf=0 unbuflog
See SAS Companion for the CMS Environment for more information about these SAS system options.
Creating a VM Directory Entry for the Server Virtual Machine |
USER SASSHARE XXXXXXX 20M 20M G 100 MCHINE XA IPL CMSXA PARM AUTOCR OPTION MAXCONN 1024 REALTIMER IUCV ALLOW PRIORITY MSGLIMIT 255 CONSOLE 009 3215 SPOOL 00C 2540 READER 8 SPOOL 00D 2540 PUNCH A SPOOL OOE 1403 A LINK MAINT 19E 19E RR LINK MAINT 19D 19D RR LINK MAINT 190 190 RR MDISK 191 3380 707 5 VM0800 MR XXXXXXX MDISK 192 3380 501 3 VM0450 MR XXXXXXX
The amount of virtual storage that a server requires depends on the following factors:
The preceding VM directory entry code example shows that the server executes in a 20-megabyte virtual machine, but 20 megabytes may not be the optimal virtual storage size for the SAS server at your site. Use the default storage size for interactive virtual machines at your site, and then alter (increase or decrease) the value if necessary.
If you run a VM/XA operating system and want to provide your server with sufficient virtual storage, you may use one or more XA-mode virtual machines.
A server does not require a CP command privilege class that is higher than G.
The dispatching priority of the server virtual machine
should initially be the default value for interactive VM users. Monitor your
system's performance to determine whether you should assign a higher or lower
dispatching priority.
The MAXCONN parameter of the OPTION record specifies
the maximum number of SAS users under CMS who can connect to the server at
one time. IBM limits the value that you can specify for MAXCONN to 65535.
SAS/SHARE software does not specifically limit the number of simultaneous
connections to a server.
The IUCV directory record is required for the server's virtual machine.
The ALLOW parameter enables users to establish IUCV connections to the server virtual machine.
The PRIORITY parameter enables the server to send IUCV priority messages to users.
The MSGLIMIT parameter increases the number of outstanding
messages that are allowed on each path from 10 (the default) to 25.
When you configure your first server, you may want to use the single read-write minidisk at virtual address 191, file mode A. The minidisk should be large enough to hold all the SAS data sets that are shared through the server. If you already have SAS data sets that you copy to the server's minidisk, the minidisk must be large enough to contain all the data sets. You should also allow some extra room for growth.
Alternatively, you can allocate several minidisks to a server. This enables you to divide space according to departments and application systems.
If a DATA step or a procedure is used to replace server data sets, you must allow space for two copies of each data set that the DATA step or the procedure replaces. You rarely need to allow space for all server data sets on a minidisk to be replaced at the same time. Instead, find the DATA step or the procedure that replaces the largest server data sets, and allow room for two simultaneous copies of those data sets.
Formatting the Server Minidisks |
Creating a PROFILE EXEC for the Server |
You should discuss with your VM system administrator the possibility of including your SAS/SHARE servers in the automatic log on process before you write the server's PROFILE EXEC.
If you always execute the server interactively, the PROFILE EXEC needs to set up only the virtual machine environment. However, if the server virtual machine is automatically started when your VM system is initialized, the PROFILE EXEC must set up the virtual machine environment and also must invoke the SAS System and run the PROC SERVER statement.
The following code example shows a sample PROFILE EXEC that detects whether the virtual machine is being logged on to by a person from a terminal or by the system automatically.
Sample PROFILE EXEC
/*PROFILE EXEC (written in REXX)*/ x = diagrc (24, -1) /*Ask about virtual console*/ y = substr (x, 11, 1 /*Cond. Code 2:no real device*/ if (y = '2') then do /*We're being AUTOLOGed*/ 'CP SPOOL CONSOLE TO * START' /*spool console*/ 'CP SET SMSG IUCV' /*receive SMSGs*/ push 'SAS RUNSHARE ( LT' /*start server */ end else do /*Coming up interactively*/ 'CP TERM CHARDEL OFF' /*Turn off CHARDEL editing*/ 'CP TERM LINEDEL OFF' /*Turn off LINEDEL editing*/ end return
The preceding EXEC assumes that the EXEC that is used to invoke the SAS System is named SAS. If your installation uses an EXEC with a name other than SAS to invoke the SAS System, change the preceding example, as necessary.
The sample PROFILE EXEC determines whether the virtual machine is being logged on in interactive mode or disconnected mode. It makes this determination by using the DIAGRC and SUBSTR functions, which are documented in the system product interpreter reference for the system that you are running, and DIAGNOSE code 24, which is documented in VM/XA CP Programming Services. In this example, the variable X is assigned information about the virtual console. The variable Y is assigned information that indicates whether the virtual console is associated with a real device. If the virtual console is not associated with a real device, the log on must result from an AUTOLOG command.
If the log on results from the AUTOLOG command, the PROFILE EXEC prepares for and begins a server session. It spools the console to the virtual machine's reader so that a record is kept of the server's activities. The EXEC then stacks a SAS command that begins a SAS session after the PROFILE EXEC finishes. The LT option is used so that the SAS log from the server session is included in the console spool file.
Placing SAS Libraries on the Server Minidisks |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.