LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (June 2003, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 11 Jun 2003 13:18:55 -0500
Reply-To:     "Deshon, Joe A [PCS]" <jdesho01@SPRINTSPECTRUM.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Deshon, Joe A [PCS]" <jdesho01@SPRINTSPECTRUM.COM>
Subject:      Re: %include vs. rsubmit
Comments: cc: Stig Eide <stigeide@YAHOO.COM>
Content-Type: text/plain; charset="US-ASCII"

We include it using the FTP file access method:

filename your_file_ref ftp "your_file_path_and_name" host = "your_ip_address" user = "your_user_name" pass = "your_user_password";

%include your_file_ref;

(Uploading would work, too. I had just never thought about that until now. I'm going to have to try it.)

Joe DeShon Manager, Advanced Applications Development PCS Marketing & Sales Analysis Group Sprint PCS 6130 Sprint Parkway Mailstop: KSOPHJ0114-1A504 Overland Park KS 66251 Work: (913) 762-6172 PCS: (816) 210-0950 Fax: (913) 762-0804 email: jdesho01@sprintspectrum.com

-----Original Message----- From: Stig Eide [mailto:stigeide@YAHOO.COM] Sent: Wednesday, June 11, 2003 2:21 AM To: SAS-L@LISTSERV.UGA.EDU Subject: Re: %include vs. rsubmit

Hi Richard. I would use proc upload and then %include it on the remote machine (untested code): filename local 'c:\file\server\location\program.sas'; rsubmit; filename rfile "%sysfunc(pathname(work))/program.sas"; proc upload infile=local outfile=rfile; run; %include rfile;

Of course, this could be macrofied. Hope this helps! Stig Eide

"Richard Liu" <kataliu@earthlink.net> wrote in message news:<XywFa.44507$Io.3911208@newsread2.prod.itd.earthlink.net>... > Hi SAS pals, > > One more question.... > > If I have sas macro stored in a local file (eg. local.sas) and I would like > to run it on a Unix SAS box, what should I do? > > For running it locally, I can do it by using %include 'd:\....\local.sas'; . > > How could I tell the remote server to include a local pc file? ( not just > copy and paste the codes in another submitted file) > > R.


Back to: Top of message | Previous page | Main SAS-L page