Usage Note 17720: Troubleshooting tips - Accessing a preassigned library using the SAS® Stored Process Server
When running a SAS® Stored Process and attempting to access a preassigned
library, in some cases the library may not be available. This SAS Note
provides some troubleshooting tips if you are not able to access the
preassigned library when running a SAS Stored Process in SAS® 9.13.
When running SAS® 9.2, see
SAS Usage Note 36979.
- Verify that the Library is preassigned checkbox is
selected for your library.
- Open the SAS® Management Console
- Select Data Library Manager plugin
- Select SAS Libraries
- Right Mouse Click on the library and choose Properties
- Select the Options Tab, then click on Advanced Options
- Verify that the Library is preassigned checkbox is
checked.
- Verify that the METAAUTOINIT option is included on the Object Server Parameters statement for your SAS Stored Process
server.
- Open the SAS Management Console
- Select Server Manager
- Expand the application server (usually SASMain)
- Expand Logical Stored Process Server
- Select Stored Process Server
- Right mouse click on Properties
- Choose the OPTIONS tab
- In the Launch Commands section verify that Object Server Parameters entry contains:
METAAUTOINIT
- Click OK to save the changes
- Make sure that the library is assigned to an application context, which is SASMAIN by default.
- Open your SAS Management Console
- Choose Data Library Manager
- Expand SAS Libraries
- Right mouse click on your library name and choose Properties.
- Select the Assign tab
- Click on the SAS server (SASMAIN), highlight it and
choose OK.
NOTE: Make sure SASMain is highlighted in blue.
Otherwise, it is not selected.
- Make sure you have granted the correct permissions for
the SAS General Servers group in the metadata for the library.
- Open the SAS Management Console
- Select Data Library Manager
- Expand SAS Libraries
- Right mouse click on library name and choose Properties.
- Select the Authorization tab.
- Insure that the SAS General Servers group has
ReadMetadata and Read privileges (the Grant box should
be checked). By default, the SAS General Servers group
will be included in the PUBLIC group.
- The sassrv account is the login account for SAS General
Servers.
- Restart your SAS® Object Spawner so that the above changes
will take effect.
- As a test, specify the complete LIBNAME statement at the
top of your SAS Stored Process code. Then, run your SAS Stored
Process and check your SAS log file for ERROR messages.
- As a test, perform the following:
- Open SAS Management Console using the sassrv user account.
- Access your preassigned SAS library under Data Library
Manager.
- For this test, you will need to temporarily uncheck the
Library is preassigned box for your library.
- Select Options ► Advanced Options. Then, uncheck the
Library is preassigned box.
- Under SAS Libraries, Right click on your library and
select Import tables. If you cannot Import tables,
then the sassrv user account may not have the privileges
that it needs to import the tables. Or, perhaps your
library is defined incorrectly.
After this test, you should check the Library is preassigned
box for your library (which you temporarily changed above).
- As a test, attempt to access your preassigned libraries from a
regular SAS job (outside of the SAS Stored Process Server). Follow
these steps:
- Bring up a DOS shell on Windows (or a Unix shell
on Unix). Then, go to the SAS root directory
(where the sas executable resides).
- Issue the below command:
sas -metaautoresources "SASMain"
- You will be prompted to provide information to connect to
your Metadata server. For User Name specify sassrv
(or your Stored Process Server's Login user account)
- Near the top of the log file you should see a note similar
to the following (where "xxxxxx" is your libref name):
NOTE: libref xxxxxx was successfully assigned from
logical server.
Operating System and Release Information
SAS System | SAS Integration Technologies | 64-bit Enabled HP-UX | 9.1 TS1M3 SP3 | |
Microsoft Windows XP 64-bit Edition | 9.1 TS1M3 SP3 | |
Microsoft Windows NT Workstation | 9.1 TS1M3 SP3 | |
Microsoft Windows XP Professional | 9.1 TS1M3 SP3 | |
Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M3 SP3 | |
Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M3 SP3 | |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.1 TS1M3 SP3 | |
Microsoft Windows 2000 Server | 9.1 TS1M3 SP3 | |
Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M3 SP3 | |
Microsoft Windows 2000 Datacenter Server | 9.1 TS1M3 SP3 | |
Microsoft Windows 2000 Professional | 9.1 TS1M3 SP3 | |
Microsoft Windows 2000 Advanced Server | 9.1 TS1M3 SP3 | |
64-bit Enabled Solaris | 9.1 TS1M3 SP3 | |
HP-UX IPF | 9.1 TS1M3 SP3 | |
Linux | 9.1 TS1M3 SP3 | |
Linux on Itanium | 9.1 TS1M3 SP3 | |
64-bit Enabled AIX | 9.1 TS1M3 SP3 | |
Tru64 UNIX | 9.1 TS1M3 SP3 | |
*
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: | System Administration ==> Servers ==> Integration Technologies
|
Date Modified: | 2009-11-12 15:23:54 |
Date Created: | 2006-05-17 16:17:56 |