DATA Step, Macro, Functions and more

redirect work

Reply
Contributor
Posts: 73

redirect work

hi

I'd to redirect the remote work while I'm connecting to a server with SAS/Connect signon.

I'd like specify a remote work for a user or a group, an another work for an another user or a group.

But the sasv9.cfg I call with my local session cannot interacte with the starting sesson on the server.

any helps ?
Super Contributor
Super Contributor
Posts: 3,174

Re: redirect work

Possibly, using LIBNAME and then setting OPTIONS USER=;

Scott Barry
SBBWorks, Inc.

Using Data Libraries - user libref discussion:
http://support.sas.com/documentation/cdl/en/hostwin/61924/HTML/default/usedatalibs.htm#userlibref

LIBNAME statement
http://support.sas.com/documentation/cdl/en/connref/61908/HTML/default/connreflibdictent.htm

Library Names - search for discussion on SAS/Connect:
http://support.sas.com/documentation/cdl/en/lrcon/61722/HTML/default/a000986902.htm
PROC Star
Posts: 1,558

Re: redirect work

Sorry Stephane, I am not following you. Can you rephrase?
Super Contributor
Posts: 474

Re: redirect work

I guess you could exploit the CSCRIPT option of the the SIGNON command.

CSCRIPT will allow you to specify a remote host script which is responsible for connecting/launching the sas session on the remoter server.

From this script you could use the -work command line option, which redirects the libname work to the specified .

You could setup different scripts with different paths for different users.

Check this example for a sign-on script on the UNIX platform (look for [7] for the sas invoke):

http://www.colostate.edu/Services/ACNS/swmanuals/sasdoc/sashtml/comm/z0381712.htm

Cheers from Portugal.

Daniel Santos @ www.cgd.pt
Valued Guide
Posts: 2,174

Re: redirect work

when you assign a library to libref USER, all single level data set names ( memname rather than libname.memname) will be read from, or written to that USER library.
A neat trick uses this combined with library concatenation.[pre] libname elsewher 'somewhere else' ;
libname user ( elsewher work ) ;[/pre]After this code, any datasets already written to the WORK library are available as one-level names and new data sets created will be written into ELSEWHER.

Stephane,
does this technique provide what you need?

PeterC
Contributor
Posts: 73

Re: redirect work

Hi all,

Yes Daniel, I wanted to provide a specific work for my team 1 and another one for the team 2. The easiest way to do that is :

In the TCPWIN.scr I change the TYPE line that asks the connexion to the server.

Instead of the common line : type 'sas -device grlink -nosyntaxcheck' LF;

you put : type 'sas -device grlink -nosyntaxcheck -WORK "\\Myserver\sasfiles\saswork" ' LF;

Where \sasfiles\saswork will be the root the SAS temporary files.

I change by this way the -SASUSER option and then I send to the team 1 the TCPWIN_1.SCR with a -WORK location for it and I send to the team 2 the TCPWIN_2.SCR with a -WORK location for it.

Stéphane. Message was edited by: Stephane
Contributor
Posts: 73

Re: redirect work

Hi

next question

I'm still with my Foundation installation and I use usual interface to work remotely but also Guide 4.
SEG doesn't use the tcpwin so do you have an idea to do the same thing (ie. redirect work) ?

I thought to modify sasv9.cfg on the server but I'm wondering if you know to do differently.
Super Contributor
Super Contributor
Posts: 3,174

Re: redirect work

Recommend opening a new post for each new query, rather than piggy-back. If necessary, post a link back to a related post.

Scott Barry
SBBWorks, Inc.
Ask a Question
Discussion stats
  • 7 replies
  • 239 views
  • 0 likes
  • 5 in conversation