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 2000, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 7 Jun 2000 17:02:47 -0400
Reply-To:     Ying Hu <yhu@MAIL.NIH.GOV>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Ying Hu <yhu@MAIL.NIH.GOV>
Organization: National Institutes of Health
Subject:      Re: perl and SAS
Content-Type: text/plain; charset=us-ascii

Hi, Maybe as the following in Perl

&write_sas_files; &run_sas; &read_results;

sub write_sas_file { # read data from somethere # write them into a input data file open DATA, ">$project.dat" or die "$project.dat $!\n"; printf DATA "....",$var...; .... close DATA; # write a sas file open SAS, ">$sas_file" or die "$sas_file $!\n"; printf SAS "......",$var...; ...... close SAS; }

sub run_sas { system "sas $sas_file"; }

sub read_results { open LST, $sas_lst or die "$sas_lst $!\n"; while (<LST>){ .... } close LST; }

dave_h wrote:

> Greetings, > I am learning perl. I was wondering if anyone knows > of any examples of using SAS and perl together. Also do > you think that learning perl would be helpful to a SAS > programmers marketability as a SAS Programmer? > > Dave > > * Sent from AltaVista http://www.altavista.com Where you can also find related Web Pages, Images, Audios, Videos, News, and Shopping. Smart is Beautiful


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