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 (January 2010, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 20 Jan 2010 08:15:42 -0500
Reply-To:     "Nallapeta1, Kiran (GE Capital, consultant)"
              <Kiran.Nallapeta1@GE.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Nallapeta1, Kiran (GE Capital, consultant)"
              <Kiran.Nallapeta1@GE.COM>
Subject:      Re: Capture MAC address into SAS
Comments: To: Arthur Tabachneck <art297@NETSCAPE.NET>
In-Reply-To:  <201001201308.o0KBlK95014579@malibu.cc.uga.edu>
Content-Type: text/plain; charset="us-ascii"

Hey Art, Thank you very much! That's exactly what I wanted.

Cheers! Kiran

-----Original Message----- From: Arthur Tabachneck [mailto:art297@NETSCAPE.NET] Sent: Wednesday, January 20, 2010 6:39 PM To: SAS-L@LISTSERV.UGA.EDU; Nallapeta1, Kiran (GE Capital, consultant) Subject: Re: Capture MAC address into SAS

Kiran,

I'm not sure how you want to use it. The following would create a file with the mac(s) in it:

filename fh pipe "getmac"; data filenames (drop=test); infile fh lrecl=150 truncover firstobs=4; informat mac $17.; format mac $17.; informat system $100.; format system $100.; input mac system &; if mac ne "Disabled"; run;

HTH, Art --------- On Wed, 20 Jan 2010 07:30:43 -0500, Nallapeta1, Kiran (GE Capital, consultant) <Kiran.Nallapeta1@GE.COM> wrote:

>Hi Art, > >I can use X statement or system() function to run getmac command. But >how can I capture the output that getmac throws into SAS variable? > >Thanks, >Kiran > >-----Original Message----- >From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of >Arthur Tabachneck >Sent: Tuesday, January 19, 2010 10:26 PM >To: SAS-L@LISTSERV.UGA.EDU >Subject: Re: Capture MAC address into SAS > >Kiran, > >If your machines are all windows-based, you could get SAS to simply run >the dos system command 'getmac'. > >HTH, >Art >------- >On Tue, 19 Jan 2010 07:46:34 -0500, Nallapeta1, Kiran (GE Capital, >consultant) <Kiran.Nallapeta1@GE.COM> wrote: > >>Hi, >> >> >> >>I need to capture MAC address of a machine from SAS... I tried to >search >>it in the list of environment variables using %sysget function, but in >>vain. Can someone please help me on this? >> >> >> >>Thanks in advance. >> >> >> >>Regards, >> >>Kiran >> >> >> >>


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