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 (March 2011, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 7 Mar 2011 15:37:50 +0000
Reply-To:     "Keintz, H. Mark" <mkeintz@WHARTON.UPENN.EDU>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Keintz, H. Mark" <mkeintz@WHARTON.UPENN.EDU>
Subject:      Re: Reading Linux files from a Windows server
Comments: To: Suzanne McCoy <Suzanne.McCoy@CATALINAMARKETING.COM>
In-Reply-To:  <959A0CF9E065924D89F2999795B5E904156234@STPPEX.catmktg.com>
Content-Type: text/plain; charset="us-ascii"

Suzanne:

In the case of files associated with a FILE or INFILE statement, the dos2unix utility can generally be avoided by use of the TERMSTR option on FILE and INFILE statements, as in:

** SAS program on windows able to read and write UNIX files ** ** that are map-able to the Windows file system **;

data _null_; infile 'some unix file' termstr=LF; input ... ; ... file 'some other unix file' termmstr=LF; put ... ; run;

Regards, Mark

-----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Suzanne McCoy Sent: Monday, March 07, 2011 8:33 AM To: SAS-L@LISTSERV.UGA.EDU Subject: Re: Reading Linux files from a Windows server

Easiest way is to use Enterprise Guide. If using base SAS you will need to use a dos2unix conversion first to handle the CR/LF differences between the operating systems or drop the unix/linux files on a NAS share to do the file conversion automatically.

-----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Kroll, J. (Jeffrey) Sent: Monday, March 07, 2011 8:24 AM To: SAS-L@LISTSERV.UGA.EDU Subject: Reading Linux files from a Windows server

Is it possible to set up SAS on a Windows server and easily read files based on Linux servers? Is it just a matter of using a FILENAME or LIBNAME pointing to the location of the file or is something more complicated involved? Thanks.

Jeff Kroll

---------------------------------------------------------

NOTICE: The information contained in this electronic mail message is confidential and intended only for certain recipients. If you are not an intended recipient, you are hereby notified that any disclosure, reproduction, distribution or other use of this communication and any attachments is strictly prohibited. If you have received this communication in error, please notify the sender by reply transmission and delete the message without copying or disclosing it.

===========================================================================================


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