f



Re: copy files with x copy #2

Glad it's resolved, but I'm a bit curious because your original code
generates a file named

   namenow()

when I try it. That's as expected.

On Fri, 23 Jul 2004 14:02:25 -0600, William Kossack <kossackw@NJC.ORG>
wrote:

>got it
>
>%let date = %sysfunc(today());
>x copy c:/oldlocation/name  d:/newlocation/name&date;
>
>or better yet use
>
>%let date = %sysfunc(today(),date.);
>
>
>William Kossack wrote:
>
>> I'm trying to both copy a file and change its name using a macro variable
>>
>> %let date = now();
>> x copy c:/oldlocation/name  d:/newlocation/name&date;
>>
>> what I get is a file with the name and &date "name&date" in the new
>> location
>>
>> what am I doing wrong?
0
7/23/2004 9:15:18 PM
comp.soft-sys.sas 142828 articles. 3 followers. Post Follow

0 Replies
534 Views

Similar Articles

[PageSpeed] 1

Reply:

Similar Artilces:

Re: copy files with x copy
I'm not aware of a "now" function. Did you want something like this? data _null_; call symput('date',put(today(),yymmdd6.)); run; x copy Test.txt test&date; hth Paul Choate DDS Data Extraction (916) 654-2160 -----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of William Kossack Sent: Friday, July 23, 2004 12:13 PM To: SAS-L@LISTSERV.UGA.EDU Subject: copy files with x copy I'm trying to both copy a file and change its name using a macro variable %let date = now(); x copy c:/oldlocation/name d:/newlocation/name&date; what I get is a file with the name and &date "name&date" in the new location what am I doing wrong? ...

Copy, copy, copy...
http://www.slate.com/blogs/future_tense/2015/06/08/apple_wwdc_2015_music_news_and_other_things_apple_thinks_it_invented.html On Friday, June 12, 2015 at 9:49:16 AM UTC-4, Nashton wrote: > http://www.slate.com/blogs/future_tense/2015/06/08/apple_wwdc_2015_music_news_and_other_things_apple_thinks_it_invented.html And that was all they ever did, from the very beginning, when they stole from Xerox. On 2015-06-12 18:37:31 +0000, Walter Myer said: > On Friday, June 12, 2015 at 9:49:16 AM UTC-4, Nashton wrote: >> http://www.slate.com/blogs/future_tense/2015/06/08/apple_wwdc_2015_music_news_and_other_things_apple_thinks_it_invented.html >> > > And that was all they ever did, from the very beginning, when they > stole from Xerox. Ummm... No. From that very source: "After so much innovation, it’s no wonder Apple felt the need to take a little time to step back" On 2015-06-12 3:37 PM, Walter Myer wrote: > On Friday, June 12, 2015 at 9:49:16 AM UTC-4, Nashton wrote: >> http://www.slate.com/blogs/future_tense/2015/06/08/apple_wwdc_2015_music_news_and_other_things_apple_thinks_it_invented.html > > And that was all they ever did, from the very beginning, when they stole from Xerox. > I can imagine it's even getting tiresome for their fans. ...

Re: how to let sas copy and paste files for you? #2
That is so much work when you could use a wild card. filename all "*.sas"; %inc all / source2; However if there are SAS<anythingelse> files they are also included which may be undesirable. On 9/16/08, Gerhard Hellriegel <gerhard.hellriegel@t-online.de> wrote: > On Tue, 16 Sep 2008 17:00:31 +0800, Mu, Mu <Mu.Mu@PAREXEL.COM> wrote: > > >Dear all, > > > >Suppose I have many .sas programs under the same folder \mumu. And now I > >wanna put them into one .sas program. Is there any convenient way to > >realize this by using sas code? > > > >Regards, > > > >MuMu > > > yes, thats possible. One of many ways could be: > > 1. get a list of all the files. That can be done by the functions for > that, FILENAME, DOPEN, DREAD, ... > You'll find them in the documentation with examples. > > 2. write all that files in a numbered macro variable, together with the > number of files. > > > To get it in macro variables: > > data _null_; > rc=filename("folder","c:\daten"); > d = dopen("folder"); > xx = dread(d,1); > num=dnum(d); > call symput("no",num); > do i=1 to num; > xx= dread(d,i); > call symput("d"!!put(i,8. -l)); > end; > run; > > That assumes, that you have only SAS programs in your folder. > > The second could be (executing them): > > %macro do...

Re: Copy a file from one directory to another from a SAS program? #2
Yes, that does work X "move c:\dir1\test.txt c:\dir2\test.txt" It is however, leaving open the DOS command window. I tried: X "exit"; and that did not work to close it. Would anyone know how to close it? -Mary ----- Original Message -----=20 From: matt.pettis@thomsonreuters.com=20 To: mlhoward@avalon.net ; SAS-L@LISTSERV.UGA.EDU=20 Sent: Thursday, July 31, 2008 2:58 PM Subject: RE: Copy a file from one directory to another from a SAS = program? If you know the file names, you can do the 'X' command at some point = to execute a system command to move the file: X "move /path/to/original /path/to/dest"; If you are on Windows (probably, since you are using .xls). = Otherwise, whatever command is native to your OS for moving files should work within your 'X' command. Matt -----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Mary Sent: Thursday, July 31, 2008 2:05 PM To: SAS-L@LISTSERV.UGA.EDU Subject: Copy a file from one directory to another from a SAS program? Is there a way from SAS to copy a file from one directory to another? I am exporting 200+ sheets from an Excel 2007 workbook and there is = one sheet that I do not want to process like the others, so I'd like to = move it in my SAS program to another folder. -Mary ...

Re: Copy Files via FTP (2 Hosts) #2
Michael here an working sample between the sas server and a linux server filename ftpsas ftp 'SASInstallReporter2.sas' recfm=f host="ftp.sas.com" user="anonymous" pass="wielki@xxxx.fr" cd="techsup/download/base/" rcmd="type a" debug; filename ftplin ftp '/home/users/wielki/temp/reportermodule.sas' recfm=f host="server2" user="user" pass="xxxxxx" rcmd='type a' debug; data _null_; infile ftpsas; file ftplin; input ; put _inf...

Re: Copying sas Files
x 'copy ...'; seems the easiest way. -Joe On Mon, Oct 12, 2009 at 12:25 PM, SAS_learner <proccontents@gmail.com>wrote: > Hello all, > > I know we can copy sas datasets from one folder (Libname ) to another using > either proc Copy or Proc Datasets , is there a similar way to copy sas > programs (.sas ) from One library other than windows method of Cntl > +(A,C,V) ? > > > thanks for your time and help > SL > ...

Re: mpex listf shows file, but copy then fails and file is gone #2
if you have a file equation similar to file hosprate.out.hcia=hosprate or file hosprate.out.hcia=hosprate.pub or file hosprate.out.hcia=hosprate.pub.acct1 you can do lots of nasty confusing things to yourself. your script likely needs some tuning! good luck Tracy Pierce ps Why are you using MPEX for this very-MPE operation? At least MPE documentation is pretty accurate, while MPEX documentation is near-impossible. > -----Original Message----- > From: jason@CYBERPINE.COM [mailto:jason@CYBERPINE.COM] > Sent: Monday, February 09, 2004 11:12 AM > To: H...

Re: copy and running files #2
Peter has good suggestions. Also, I think I would use the FILEVAR= option to process all of the discovered files from their original locations. Then there is no need to copy and no need for a macro. On Wed, 17 Nov 2004 14:54:03 -0500, Peter Crawford <peter.crawford@BLUEYONDER.CO.UK> wrote: >On Wed, 17 Nov 2004 11:08:08 -0800, stemp <saultemp@HOTMAIL.COM> wrote: > >>I have a problem thatI hope I can get some help with. >> >>I currently have a program that I have to do time consuming steps with >>that I am trying to streamline. My steps are as follows: >> >>1)Manully copy "Master" files of raw data and place them into a >>temporary folder. The path to the files are the same except for the >>day they have been placed in the file(for example C:temp\01Jan2004\, >>C:\temp\02Jan2004\) >> >>2)manually write each name of each file into my code (there can be up >>to 20 files that each have a different name but similar naming >>conventions i.e. prefix.company.filenumber) >> >>3)run the program I use a macro to append each file on top of each >>other since they are in the same format >> >>My main problem is eliminating the manual process of copying the files >>and manually writing the names of each file in my code. When I have >>to do this over one day it is easy but when I am doing this for weeks >>or months at a time then this c...

Re: copy external file #2
Paul, I am far from an expert concerning the relationships between proc import and Excel. That said, based on your response I just discovered something interesting about the relationship between proc import and Excel. I can only test this with myself as both users, but if I open Excel and start to edit the file, then leave it open (unsaved) and try to import the file with proc import, proc import reads the file as if the unsaved changes had been saved. In short, I agree, don't try to import open Excel files. Art ------------- On Sun, 26 Nov 2006 10:22:56 -0800, Paul <vanwamelen@GMAIL.COM> wrote: >Two things: >1) I have a particular excel file that, indeed, does get read by proc >import whether I have it open or not, but if I have it open at least >one of the columns don't get recognized as numeric. It's a bit weird >but it does happen consistently. Also everything I've found on proc >import of excel files warn that the file should not be open in excel. >I've also had reports from other people that if someone else has the >file open proc import fails. I have no first hand experience of this >though. >2) I found I way to cleanly copy the file: > systask command "copy &filename &tmpfilename" wait; > >Thanks for your time! > >Paul > >Arthur Tabachneck wrote: >> Paul, >> >> Please provide more details regarding what you are trying to accomplish >> and ...

Re: Copy/paste from SAS viewer ? #2
Ya, If you use edit -> select columns, and then select the columns that you don't want, it seems to work just fine (with the SAS 9 viewer). Too bad the view that comes up in SAS itself doesn't allow the same. Art On Tue, 4 Jan 2005 18:36:14 -0500, Ya Huang <ya.huang@AMYLIN.COM> wrote: >Is there a way I can copy/paste some selected columns (rows) >from SAS viewer? When I choose some columns by hiding all the other >columns, and copy/paste, I always end up copy all the columns. > On Tue, 4 Jan 2005 18:36:14 -0500, Ya Huang <ya.huang@AMYLIN.COM> > wrote...

Re: how to let sas copy and paste files for you?
On Tue, 16 Sep 2008 17:00:31 +0800, Mu, Mu <Mu.Mu@PAREXEL.COM> wrote: >Dear all, > >Suppose I have many .sas programs under the same folder \mumu. And now I >wanna put them into one .sas program. Is there any convenient way to >realize this by using sas code? > >Regards, > >MuMu yes, thats possible. One of many ways could be: 1. get a list of all the files. That can be done by the functions for that, FILENAME, DOPEN, DREAD, ... You'll find them in the documentation with examples. 2. write all that files in a numbered macro variable, together with the number of files. To get it in macro variables: data _null_; rc=filename("folder","c:\daten"); d = dopen("folder"); xx = dread(d,1); num=dnum(d); call symput("no",num); do i=1 to num; xx= dread(d,i); call symput("d"!!put(i,8. -l)); end; run; That assumes, that you have only SAS programs in your folder. The second could be (executing them): %macro doit; %do i=1 %to &no; %%include("c:\daten\&&d&i"); %end; %mend; %doit; Gerhard ...

Re: Copying code from PDF into SAS #2
Sig, Perhaps all of the authors are paying attention to the "Word formatting hints" at http://support.sas.com/events/sasglobalforum/2008/package/hints.html, which includes: "Disable any "Smart Quotes" option." :=) Mike Rhoads Westat RhoadsM1@Westat.com -----Original Message----- From: Sigurd Hermansen Sent: Wednesday, April 09, 2008 5:03 PM To: Mike Rhoads; SAS-L@LISTSERV.UGA.EDU Subject: RE: Copying code from PDF into SAS Earlier I had run into something simpler, though irritating just the same. Smart quotes (those that point toward a quoted string) didn't look like quotes to the SAS compiler. Lately I haven't had problems copying quoted strings from pdf's. I wonder if that could be a change in the stylesheets being used to format SAS presentations, or something else. S -----Original Message----- From: owner-sas-l@listserv.uga.edu [mailto:owner-sas-l@listserv.uga.edu] On Behalf Of Mike Rhoads Sent: Wednesday, April 09, 2008 3:26 PM To: SAS-L@LISTSERV.UGA.EDU Subject: Tip: Copying code from PDF into SAS I was excited about some of the cool new graphics capabilities of SAS 9.2, and had a little time this afternoon to try some things out from one of the SAS Global Forum papers. I was puzzled that things did not work quite right: nothing crashed, but the graphs did not come out the way they were displayed in the paper. It finally dawned on me that the problem was with the data steps generating the test data. When I copied ...

Re: SAS 9.2 Update on problem re Help files #2
SNOTES is an approximately daily email from SAS STech Support listing the new or changed usage notes since the last email. So the item pertaining to you was: 32792 - SAS prompts you to rebuild the index when you press F1 to request help while running a SAS procedure in SAS 9.2 Release(s) Reported: 9.2 Release(s) Fixed: Date Created: 28JUL2008 Date Last Updated: 11AUG2008 http://support.sas.com/kb/32792.html To subscribe, go to http://support.sas.com/techsup/news/snotes.html You'll get an extra email on most workdays, but if you subscribe to SAS-L you'll hardly notice one more. There's also http://support.sas.com/techsup/news/tsnews.html It has news about tech support office hours and a few other things. If you want even more news, and you have an RSS reader, you can go to http://support.sas.com/community/rss/index.html On Mon, 25 Aug 2008 11:10:05 -0400 (GMT-04:00), "Peter Flom" <peterflomconsulting@mindspring.com> said: > Hi Jack > > I don't think I've ever looked at tech support notes ..... where is it? > Is it useful for browsing? > > Peter > > -----Original Message----- > >From: Jack Hamilton <jfh@alumni.stanford.org> > >Sent: Aug 25, 2008 11:08 AM > >To: Peter Flom <peterflomconsulting@mindspring.com>, "sas-l@listserv.uga.edu" <SAS-L@LISTSERV.UGA.EDU> > >Subject: Re: [SAS-L] SAS 9.2 Updat...

Re: how to let sas copy and paste files for you? #7
I think this is a much better solution because it is obvious from the program names what is happening. What is missing? parameters of each of the modules: %Let PrepInData =; %Let PrepOutData =; %include code(prep.sas) ; %Let ProcInData =; %Let ProcOutData =; %include code(process.sas) ; etc. Ron Fehd the parameterized include or macro maven CDC Atlanta GA USA RJF2 at cdc dot gov > -----Original Message----- > From: owner-sas-l@listserv.uga.edu > [mailto:owner-sas-l@listserv.uga.edu] On Behalf Of Ed Heaton > Sent: Tuesday, September 16, 2008 10:01 AM > To: 'Mu, Mu'; SAS-L@LISTSERV.UGA.EDU > Subject: RE: how to let sas copy and paste files for you? > > MuMu; > > FileName code "pathToYourCode" ; > Options source2 ; > %include code(initialize.sas) ; > %include code(prep.sas) ; > %include code(process.sas) ; > %include code(format.sas) ; > %include code(report.sas) ; > %include code(cleanup.sas) ; > > Ed > > Edward Heaton, Senior Systems Analyst, > Westat (An Employee-Owned Research Corporation), > 1650 Research Boulevard, TB-286, Rockville, MD 20850-3195 > Voice: (301) 610-4818 Fax: (301) 294-2085 > mailto:EdHeaton@Westat.com http://www.Westat.com > > > > -----Original Message----- > From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On > Behalf Of Mu, Mu > Sent: Tuesday, September 16, 2008 5:01 AM > To: SAS-L@LISTSE...

Re: How to copy the graph from SAS to word document #2
Hui, Apparently David is a novice when it comes to SAS/Graph so I would not pay much attentiopn to him. If you want to put high resolution, high quality SAS/Graph output into MS Word, take a look at the following example of how to do just that: data sasuser.final_pdif_3i2_3i3_3i4_3i5_320; retain xx 1; set sasuser.final03i2_pdif_320 sasuser.final03i3_pdif_320 sasuser.final03i4_pdif_320 sasuser.final03i5_pdif_320; n+1; output; if n=3 then do; xx+1; n=0; end; run; proc sort data=sasuser.final_pdif_3i2_3i3_3i4_3i5_320; by xx;; /* data sasuser.final_320_320; set sasuser....

Re: how to let sas copy and paste files for you? #11
On Thu, 18 Sep 2008 08:59:18 -0500, Joe Matise <snoopy369@GMAIL.COM> wrote: >I believe DOS only recognizes the first 3 characters in a file extension (as >that is all that SAS permits). That may have been true once upon a time, but now there are DOCX and XLSX etc. files out there. Treating *.ABC as if it were *.ABC* is a problem. When a wildcard is used in SAS code (as distinguished from code which is passed verbatim to the host OS), I wonder whether SAS handles the wildcard interpretation or somehow gets the OS to do it. Or maybe both SAS and Microsoft give us this problem. If/when it is fixed, people's existing code could start giving different results. > >-Joe > >On Thu, Sep 18, 2008 at 7:24 AM, Nat Wooding <Nathaniel.Wooding@dom.com>wrote: > >> Howard >> >> I ran into the issue of getting data files along with code files a couple >> years ago or pre-sp3. I solved it the matter by checking the file name as >> deleting any lines that whose name included SAS7BDAT . There is no >> ellegance here since each data line must be checked but the run time has >> always been acceptable when I have needed to run the job. Here is a portion >> of the data step: >> >> filename txt 'U:\My SAS Files\Natsas\PGMS 2007\*.sas'; >> length file $ 50; >> infile txt filename=file lrecl=80 truncover; >> informat txt $72.; >> input txt $ 1-72;; >>...

Re: how to let sas copy and paste files for you? #6
Hello everyone, My main purpose is to put all codes together and then I can print them all out by only setting the printer options once. But I am sure this kind of skill will be helpful for many other purposes. Thanks for your help, Mu Mu -----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Scott Bass Sent: 2008��9��16�� 21:20 To: SAS-L@LISTSERV.UGA.EDU Subject: Re: how to let sas copy and paste files for you? Excellent point! MuMu, please explain *why* you want to concatenate all your files? Is it just so you can run them all at once? The one additional point I'll add is if your files have an order dependency then use a naming convention like 01_foo, 02_bar, 03_blah, etc so the wildcard returns them in the proper order for execution. ""./ ADD NAME=Data _null_,"" <iebupdte@GMAIL.COM> wrote in message news:ce1fb7450809160446x460a522jcfc1aae7da596f82@mail.gmail.com... > That is so much work when you could use a wild card. > > filename all "*.sas"; > %inc all / source2; > > However if there are SAS<anythingelse> files they are also included > which may be undesirable. > > On 9/16/08, Gerhard Hellriegel <gerhard.hellriegel@t-online.de> wrote: >> On Tue, 16 Sep 2008 17:00:31 +0800, Mu, Mu <Mu.Mu@PAREXEL.COM> wrote: >> >> >Dear all, >> > >> >Suppose I have many .sas programs under the same folder \mumu. And now ...

Re: how to let sas copy and paste files for you? #10
I believe DOS only recognizes the first 3 characters in a file extension (as that is all that SAS permits). -Joe On Thu, Sep 18, 2008 at 7:24 AM, Nat Wooding <Nathaniel.Wooding@dom.com>wrote: > Howard > > I ran into the issue of getting data files along with code files a couple > years ago or pre-sp3. I solved it the matter by checking the file name as > deleting any lines that whose name included SAS7BDAT . There is no > ellegance here since each data line must be checked but the run time has > always been acceptable when I have needed to run the job. Here is a portion > of the data step: > > filename txt 'U:\My SAS Files\Natsas\PGMS 2007\*.sas'; > length file $ 50; > infile txt filename=file lrecl=80 truncover; > informat txt $72.; > input txt $ 1-72;; > if index(file,'7bdat') then delete;* do not include sas data sets; > > It just occured to me that the if statement can preceed the input statement > but in a couple tests that I just ran, the differences were incosequential. > > Nat > > Nat Wooding > Environmental Specialist III > Dominion, Environmental Biology > 4111 Castlewood Rd > Richmond, VA 23234 > Phone:804-271-5313, Fax: 804-271-2977 > > > > "Howard Schreier > <hs AT dc-sug DOT > org>" To > Sent by: "...

Re: how to let sas copy and paste files for you? #9
Howard I ran into the issue of getting data files along with code files a couple years ago or pre-sp3. I solved it the matter by checking the file name as deleting any lines that whose name included SAS7BDAT . There is no ellegance here since each data line must be checked but the run time has always been acceptable when I have needed to run the job. Here is a portion of the data step: filename txt 'U:\My SAS Files\Natsas\PGMS 2007\*.sas'; length file $ 50; infile txt filename=file lrecl=80 truncover; informat txt $72.; input txt $ 1-72;; if index(file,'7bdat') then delete;* do not include sas data sets; It just occured to me that the if statement can preceed the input statement but in a couple tests that I just ran, the differences were incosequential. Nat Nat Wooding Environmental Specialist III Dominion, Environmental Biology 4111 Castlewood Rd Richmond, VA 23234 Phone:804-271-5313, Fax: 804-271-2977 "Howard Schreier <hs AT dc-sug DOT org>" To Sent by: "SAS(r) SAS-L@LISTSERV.UGA.EDU Discussion" cc <SAS-L@LISTSERV.U GA.EDU> Subject Re: how to let sas copy and paste files for y...

Re: how to let sas copy and paste files for you? #8
On Tue, 16 Sep 2008 11:33:31 -0400, Ya Huang <ya.huang@AMYLIN.COM> wrote: >How about an old DOS trick? > >type *.sas > all.txt I was trying to use that wildcard specification in a FILENAME, so that I could point to the concatenation in an INFILE (in other words, treat the ..SAS files as data rather than code). However, I get .SAS7BDAT and .SAS7BNDX files as well as .SAS. In other words, it's as if I called for *.SAS* rather than *.SAS Win XP SP3. Anybody care to explain? Has DOS always behaved that way? > >On Tue, 16 Sep 2008 17:00:31 +0800, Mu, Mu <Mu.Mu@PAREXEL.COM> wrote: > >>Dear all, >> >>Suppose I have many .sas programs under the same folder \mumu. And now I >>wanna put them into one .sas program. Is there any convenient way to >>realize this by using sas code? >> >>Regards, >> >>MuMu ...

Re: how to let sas copy and paste files for you? #4
MuMu; FileName code "pathToYourCode" ; Options source2 ; %include code(initialize.sas) ; %include code(prep.sas) ; %include code(process.sas) ; %include code(format.sas) ; %include code(report.sas) ; %include code(cleanup.sas) ; Ed Edward Heaton, Senior Systems Analyst, Westat (An Employee-Owned Research Corporation), 1650 Research Boulevard, TB-286, Rockville, MD 20850-3195 Voice: (301) 610-4818 Fax: (301) 294-2085 mailto:EdHeaton@Westat.com http://www.Westat.com -----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Mu, Mu Sent: Tuesday, September 16, 2008 5:01 AM To: SAS-L@LISTSERV.UGA.EDU Subject: how to let sas copy and paste files for you? Dear all, Suppose I have many .sas programs under the same folder \mumu. And now I wanna put them into one .sas program. Is there any convenient way to realize this by using sas code? Regards, MuMu ...

Re: How to copy SAS/Graph into word document #2
Instead, you could use ODS RTF to write a graph directly to word. You are limited in the number of fonts and may need to tweak the size of the output with GOPTIONS: data q ; do x = "26dec2003"d to "15jan2004"d ; y = ceil(100*ranuni(x)) ; output ; end ; run ; options orientation = landscape ; ods listing close ; ods noresults ; ods rtf file = "c:\c_data\junk\rtf\graphtest.rtf" ; goptions reset = all ; axis1 order = "01jan2004"d to "15jan2004"d ; proc gplot data = q ; plot y*x / haxis = axis1 ; format x date9. ; run ...

Re: how to let sas copy and paste files for you? #3
> From: Mu, Mu > Dear all, > > Suppose I have many .sas programs under the same folder > \mumu. And now I > wanna put them into one .sas program. Is there any convenient way to > realize this by using sas code? - - - ManyPrograms.sas - - - filename Project '.';*here; options source2;*echo statements to log; %Include Project(MyProgramA); %Include Project(MyProgramB); *...; %Include Project(MyProgramZ); Ron Fehd the %include maven CDC Atlanta GA USA RJF2 at cdc dot gov ...

Re: Copy from one directory in SAS to another, #2
Jake, I would try CALL SYSTEM -- something like the following: %LET OLDDIR = c:\junk\OldDir\; %LET NEWDIR = c:\junk\NewDir\; OPTIONS NOXWAIT XSYNC XMIN; DATA _NULL_; LENGTH OldName NewName $ 200 Command $ 1024; INFILE CARDS TRUNCOVER; INPUT OldName $CHAR200.; NewName = SUBSTR(OldName,7); Command = 'COPY "' || "&OldDir" || TRIM(OldName) || '" "' || "&NewDir" || TRIM(NewName) || '"'; CALL SYSTEM (Command); * PUT _ALL_; CARDS; 123456OneFile.txt 123456AnotherFile.txt RUN; Mike Rhoads Westat RhoadsM1@Westat.com -----Original Message----- From: owner-sas-l@listserv.uga.edu [mailto:owner-sas-l@listserv.uga.edu] On Behalf Of Jake Bee Sent: Monday, January 22, 2007 11:22 AM To: sas-l Subject: Copy from one directory in SAS to another, but renaming the output file Does anyone have any ideas on how to copy files from one directory to another, using SAS, in DOS, but with renaming the new file in the new directory. (The new file name has the first 6 bytes removed.) Thanks for any ideas! Jake ...

Web resources about - Re: copy files with x copy #2 - comp.soft-sys.sas

File:Commons-logo.svg - Wikipedia, the free encyclopedia
This image, or parts of it, is an official logo or design used by Wikimedia Foundation or by one of its projects. It is copyrighted by the Wikimedia ...

tar (file format) - Wikipedia, the free encyclopedia
. tar was initially developed to write data to sequential I/O devices for tape backup purposes. It is now commonly used to collect many files ...

Peabody may file for bankruptcy as coal crashes
Peabody Energy, the largest US coal miner, said it may not be financially strong enough to remain in business in its current form.

Amazon files patent for pay by selfie
The ubiquitous selfie could soon have a functional purpose in the online payments sector.

From The Career Files: Does Competition Make You A Better Lawyer?
Whether you’re representing a client in litigation or in a transaction, you’re tasked with making sure that your arguments for your clients’ ...

Create and search file lists with File List Maker
Windows Search is great at locating files on the current PC, but what if you also want to check CDs, DVDs, USB keys, even other computers? File ...

VW institutional investors file suit
Almost 300 institutional investors file a suit against the carmaker for what they see as breaches of its capital markets duty.

Airbnb Launching Tool To Let Neighbors File Complaints About Bad Renters
... to air your grievances directly with the company. The home-sharing business is launching a new tool next month that will allow people to file ...

How to access Google Drive files faster with Launch Center Pro
The Google Drive app doesn't make it as easy as it could be to get to your most-used files. That's where Launch Center Pro comes in.

Joe Santos Dies: ‘The Rockford Files’ Actor Was 84
Joe Santos , best known for his role as Lt. Dennis Becker on The Rockford Files , has died. His rep confirmed the death to Deadline, but the ...

Resources last updated: 3/19/2016 1:45:24 AM