f



Calling SAS macro From Unix

Have a doubt in calling the SAS macro from Unix

/temp/programs/My_command.sas -SYSPARM $1 -log  /temp/log/
My_command.#Y#m#d#v.log -print temp/log/My_command.#Y#m#d#v.lst -
LOGPARM "rollover=session"

when i run this first time i get the log like

My_command201209181.log
My_command.#Y#m#d#v.lst

when i run this Second time i get the log like
My_command201209182.log
My_command.#Y#m#d#v.lst

The #Y#m#d#v is getting resolved for .log but for .lst its not getting
resolved .
is there any reason for it ????

Thanks in Advance
Saranya.S

0
9/18/2012 12:41:49 PM
comp.soft-sys.sas 142828 articles. 3 followers. Post Follow

0 Replies
567 Views

Similar Articles

[PageSpeed] 22

Reply:

Similar Artilces:

sas macro call sas macro call sas macro
Hi, here is my test data set: DATA one ; INFILE cards ; INPUT a b1 b2 b3 b4; subjid+1 ; CARDS ; 1 3 4 7 7 1 6 5 8 8 1 3 4 7 9 1 3 3 6 8 2 1 2 5 10 2 2 3 6 10 2 2 4 5 9 2 2 3 6 11 ; RUN ; then I tried this code: %macro pnt(data); proc print data=&data.; run; %mend pnt; %macro loopSubset(data, subbasedon, funcmacro); proc sort data=&data. nodupkey out=sublist(keep=&subbasedon.); by &subbasedon.; run; PROC Sql; select count(*) as cnt into : totlist from sublist quit; run; ***** loop all subsets *****; %do n=1 %to &totlist.; d...

Using SAS macro to generate SAS macros
I am trying to write a macro to create a whole bunch of macros. Is this possible? The error I get is "Invalid macro name &". SAS 9.2 on Windows. The code follows. I think that I somehow need to stop the %macro from resolving before the &macname does. Thanks much, gene %macro createmac(macname,theview,sex,startage,endage) ; %macro &macname. ; proc sql; create view &macname._VW as select distinct e.* from wviews.&theview as e inner join &_vdw_demographic as d on e.mrn = d.mrn where (("01jan2011"d - birth_Date) / 364.25 ) between...

SAS ETL studio
Hi, I am trying to develop a datamart on SAS ETL studio which I had otherwise developed using BASE SAS & Macro SAS. However, I am facing some problem in developing the datamart through ETL studio. I have one main macro that reads in the process (basically macro) names that are to be executed and then executes them one after another. The process information is logged in control tables (also on SAS). The information logged is related to start/end date-time of the process, the return code etc. I am not quite sure how I can use ETL studio for achieving the same objective. I can create the p...

Re: SAS ETL studio
Ankit, It's unclear to me what you want to do with the existing macros and the calling them from ETL Studio. But a few things come to mind. 1. ETL Studio jobs which are to be run in production must be deployed. Deployment directories are defined in Management Console and associated with a SAS Batch Server. When a job is deployed, ETL Studio generates a static SAS program in the deployment directory. Until the job is deployed the job only exists in metadata. 2. Macros can be called by User Written Code transformations that you place in the job, in the pre- and post-process steps for the ...

Difference Between PC SAS and UNIX SAS
Hi, Whether there is any difference between PC SAS and UNIX SAS &nbsp;from the functionality or user point of view. &nbsp; If there is a difference , kindly can you mention it. &nbsp; Thanks for the help in advance. &nbsp; Suthakar &nbsp; &nbsp; "Suthakar Iyer" <suthakariyer@yahoo.com> wrote in message news:221005.80242.qm@web50610.mail.re2.yahoo.com... > Hi, > Whether there is any difference between PC SAS and UNIX SAS &nbsp;from the functionality or user point of view. > &nbsp; > If there is a difference , kindly can you mention i...

SAS macro and SAS Proc SQL
Any one have some books recommended for learning SAS macros and SAS Proc SQL? Thanks. Hi Mini, For SAS macros, I'd highly recommend "Carpenter's Complete Guide to the Macro Language" by Art Carpenter (http://www.sas.com/apps/pubscat/bookdetails.jsp?catid=1&pc=59224). Hope this helps, Nancy Nancy Brucken brucken@provide.net On Thu, 21 Jul 2005 14:04:53 -0700, Mini <minzheng@COMCAST.NET> wrote: >Any one have some books recommended for learning SAS macros and SAS >Proc SQL? Thanks. ...

Need SAS Data Integration Consultant with SAS Data Integration Studio, Base SAS, SAS macros and SQL experience for a 9 months project at Charlotte NC, please send resumes to kamesh@kmmtechnologies.com
Need SAS Data Integration Consultant with SAS Data Integration Studio, Base SAS, SAS macros and SQL experience for a 9 months project at Charlotte NC, please send resumes to kamesh@kmmtechnologies.com ...

Need SAS Data Integration Consultant with SAS Data Integration Studio, Base SAS, SAS macros and SQL experience for a 9 months project at Charlotte NC, please send resumes to kamesh@kmmtechnologies.com
Need SAS Data Integration Consultant with SAS Data Integration Studio, Base SAS, SAS macros and SQL experience for a 9 months project at Charlotte NC, please send resumes to kamesh@kmmtechnologies.com ...

Running sas code on mainframe through SAS-UNIX
Hi Friends, I have on JCL followed by sas code on MAINFRAME.I need to run this code from SAS -unix session. Please help me out... I think the easiest solution would be to use the mainframe job scheduler to submit your job in a hold state, looking for a trigger dataset (once the trigger dataset appears, the job is released from hold). You would ftp that dataset up to the mainframe as needed (and since the system is simply looking for the presence of a file, it can be a single line). If you need to pass parameters, you could include them in the trigger file, and have the first step of your...

Storing SAS-programs and -macros in SAS-catalogs
Hi! I am working on a mainframe-platform where SAS-programs and -macros are stored in PDS-datasets. However this way of storing is platform-dependent in the sense, that access from a PC is a little difficult. Storing programs and macros in SAS-catalogs solves this platform-dependent-problem (and a great advantage in this context is that you can easily add a mainframe-SAS-catalog containing macros in your 'sasautos' on a PC), but working with catalogs on a mainframe seems to be a little more awkward than just working with PDS-datasets, because the SAS-editor supports PDS-datasets very directly, e.g. you can write 'mem pgm', 'inc pgm(testpgm)', 'file pgm(testpgm)' etc. My question now simply is: How do you work with catalogs when it comes to: - allocating new catalogs - editing existing members - adding new members - including members in the editor and storing again in the catalog - etc. Regards, Jesper Hello Jesper and other SAS-L Friends, Perhaps David Chapman's fine paper will help: http://www2.sas.com/proceedings/sugi29/051-29.pdf The SAS OnlineDoc would be a good place to look, too: http://support.sas.com/documentation/onlinedoc/index.html HTH. - Michael "Mad Doggy" Davis At 04:11 PM 10/30/2004 -0700, Jesper Sahner <jespersahner@HOTMAIL.COM> wrote: >Hi! > >I am working on a mainframe-platform where SAS-programs and -macros >are stored in PDS-datasets. However this way of storing is >platform-dep...

Benchmarks for SAS for Windows vs SAS for Unix
We have a secure datacenter. The work we do for clients is increasingly requiring encryption at rest, which we do not currently have in place. We are running SAS for Solaris on a 2 core Sunfire 4250 server with a big storage area network attached. Performance is good. This machine is being replaced. We would like to avoid having to buy a $60K encrypted switch if we can. One option our IT guys are talking about is shifting to a Windows server solution -- the Bitlocker encryption is built in. Software costs aside, it's always been my impression that on 2 equivalent machines,...

How to use Unix SAS datasets in PC SAS?
My datasets are in UNIX SAS. I need to use them in PC SAS using FTP and SAS/Connect. Is there anyone who can help me out with the step by step procedure and with coding to do this job? I never used FTP or SAS CONNECT Before. Thanks a lot for your time. I noticed the responses you have received, thus far, didn't ask which version of SAS you had. Mark's suggestion is definitely the easiest, but only if you are running SAS9. Art ------- "Md Alam" <mehedisas@YAHOO.COM> wrote in message news:200511021942.jA2JKkvF009429@malibu.cc.uga.edu... > My datasets are in UNIX SAS...

Re: Difference Between PC SAS and UNIX SAS
I'm not aware of any differences in SAS. For sure, there are some differences for external interfaces. E.g. there are no drive letters in UNIX (C:\a\b\). Normally the path delimiters are slashes (/) instead on back-slashes (\) in UNIX, but you can use both in SAS (c:/a/b). And all the commands are different (cp instead of copy, ls instead of dir, mkdir instead of md, ...) As far as you don't need that external commands, SAS is all the same on both platforms. Some limitations could be different - not the SAS limits, but OS limits. A few years ago you could not have more than 2 GB as d...

SAS Macro to FTP files between PC and Unix or among Unix server Locations...
Any suggestions or enhancements to this macro....Please let me know.... http://sastechies.blogspot.com/2010/10/sas-macro-to-ftp-files-between-pc-and.html ...

using sas on unix server to modify all *.sas files
is there a simple way to run a command or program on my .sas modules inside a unix environment that would change a string in all modules ending with ..sas ie. assume I have 3 modules prog1.sas, stuff2.sas and other3.sas, assume they are located in \me\apps\ is there a simple way to run a command or program that modifies a string in all 3 programs ? similar to how ultraedit does it in a windows environment try this > is there a simple way to run a command or program on my .sas modules inside > a unix environment that would change a string in all modules ending with #/bin/ksh f...

Re: Calling UNIX from SAS
Use the 'X' command: X "chmod ..."; Macros will resolve within the double-quotes as well... -----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of xxu8810152@GMAIL.COM Sent: Wednesday, February 18, 2009 9:11 AM To: SAS-L@LISTSERV.UGA.EDU Subject: Calling UNIX from SAS Hello all, I have a question about calling UNIX commands from SAS. For example, after creating an output file in SAS, I would like to call the UNIX commands from SAS to chmod of the file? Can it be done in SAS? Thank you! ...

Re: Difference Between PC SAS and UNIX SAS #2
I cannot give a complete list by any means for these two systems but there are functions listed in TS486 that are specific to windows and afaik, Sleep is one of these. I suggest that you look at the Companion to the ... Operating System in the online docs for each of these and compare the two systems. Nat Wooding Environmental Specialist III Dominion, Environmental Biology 4111 Castlewood Rd Richmond, VA 23234 Phone:804-271-5313, Fax: 804-271-2977 Suthakar Iyer <suthakariyer@YAH OO.COM> To ...

Re: Difference Between PC SAS and UNIX SAS #3
On Fri, 6 Jun 2008 05:51:32 -0700, Lou <lpogoda@HOTMAIL.COM> wrote: >On Jun 5, 11:50 pm, PaulOK <nancynpaul-s...@yahoo.com> wrote: >> On Jun 5, 5:53 pm, "Lou" <lpog...@verizon.net> wrote: >> .... >> >> > In my limited experience, there are minor programming differences - you use >> > a forward slash instead of a backward slash in path names for example, >> >> .... >> Actually one can use either forward or backward slashes in Windows SAS >> programs. > >Yes one can use either in SAS for Windows, bu...

Can a SAS program call another SAS program
People, I am writing a report that counts the number of widgets produced by partners. I have a small routine that finds the partners id number and name. Obviously I could copy this code into my program and execute it. I was wondering if there was a more elegant way of "Calling" a SAS program from within a SAS program. I am running SAS 8.1 in windows. Thanks Dave Dave Fickbohm Data Mining Analyst Homegain+ 2450 45th St. Emeryville, CA, 94608 Phone 510 655 0800 ext 4151 ...

Custom script for SAS/Connect from PC/SAS to UNIX
What I am trying to do is to call a specific UNIX script that points users to the correct -work and -sort directories on the UNIX side when they are using SAS/Connect on their PC. We have specific work/sort directories that users are suppose to use for their work/sort. I have thought of having users specify in their Options statement but with thousands of programs that was met with stony silence. Currently we are using the PC/SAS call below to log onto the UNIX, %LET MYNODE=XXXXXXXX sasspawn; /* XXXXXXXX = server name */ options comamid=tcp; options remote= MYNODE; filename rlink clear; f...

Re: SAS Macro to delete a SAS dataset 196997
> From: SAS Techies > Subject: SAS Macro to delete a SAS dataset > > Here's a simple SAS Macro to delete a SAS dataset...It takes the name of > the SAS dataset as the parameter... > > %macro deletedsn(dsname); > > %if %index(&dsname,'.') eq 0 %then %do; %let lib=work; %let > dsn=&dsname; %end; > %else %if %index(&dsname,'.') eq 0 %then %do; %let lib=%scan(&dsname, > 1,'.'); %let dsn=%scan(&dsname,1,'.'); %end; > > proc datasets lib=&lib nolist; > delete &dsn; > qui...

SAS CONNECT/SAS Display Manager or BASE SAS
Hi, We have SAS EBI Server license. Many or our SAS Programmer wants to use BASE SAS (or SAS Display Manager) instead of SAS Enterprise Guide. But As you know Windows Server comes with only two terminal licenses. I see that we have SAS/CONNECT license (which came with BI suite). Can I install BASE SAS on PC and use SAS/CONNECT to run code on the server? Or Do we have to buy PC license for BASE SAS? What's options we have. Please help. Thanks On Oct 21, 8:11=A0am, abcu...@YAHOO.COM (Abc Unha) wrote: > Hi, > We have SAS EBI Server license. Many or our SAS Programmer wants to =A0us...

Re: SAS Macro to delete a SAS dataset 351242
Montura wrote: > class delete; > runInterface: method; > delete(symget('sasDatasetName')); > endmethod; > endclass; > > > Works fine if you use plain SCL. > you could also embed a Proc Datasets > > class delete; > runInterface: method; > submit continue; > proc datasets lib=work kill nolist memtype=DATSA; > > quit; > endsubmit; > endmethod; > endclass; > > > Either way, Macro is harder to read, write and understand. Except that I've ne...

Re: would like to call SAS programs or SAS OLAP Cubes from an
Read my paper on creating your 1st sas/.net application: http://utilities.savian.net Look at the tab entitled Papers or Videos at the top. That will get you started. Alan Alan Churchill Savian www.savian.net -----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of NIKKI Sent: Monday, September 22, 2008 10:12 PM To: SAS-L@LISTSERV.UGA.EDU Subject: Re: would like to call SAS programs or SAS OLAP Cubes from an interface build on ASP.Net using VB On Sep 18, 1:25 pm, Don <dmor...@rocketmail.com> wrote: > I have not done ant Olap Cubes as of yet,...

Web resources about - Calling SAS macro From Unix - comp.soft-sys.sas

Calling Dr. Death - Wikipedia, the free encyclopedia
Calling Dr. Death (1943) is the first of the Universal Pictures Inner Sanctum mystery films . The "Inner Sanctum" franchise originated with a ...

List of country calling codes - Wikipedia, the free encyclopedia
This is a list of country calling codes defined by ITU-T recommendations E.123 and E.164 , also called IDD ( International Direct Dialling ) ...

Messenger For Android Update Includes Free Calling For Canadian Users
... internet protocol) and voice features. This time, Facebook’s latest update to the Messenger application for Android includes free calling for ...

Facebook Video Calling - Facebook
Bring your conversations to life on Facebook. With face-to-face video calling, now you can watch your friends smile, wink and LOL. To get started, ...

Facebook’s Talktime program in India pays new mobile users in calling credit
... Facebook has launched its Talktime program in India which gives every new user who signs up with a mobile device 50 Rupees (almost $1) in calling ...

Berlin Calling (@neuraum) on Twitter
Sign in Sign up To bring you Twitter, we and our partners use cookies on our and other websites. Cookies help personalize Twitter content, tailor ...

Calling all foodies: Here comes @TwitterFood
There are many thousands of food-related Tweets people send on Twitter each day – Tweets about meals, ingredients, favorites, recipes and dining ...

Rounds Video Calling + Chat for iPhone 4, iPhone 4S, iPhone 5, iPhone 5c, iPhone 5s, iPad 2 Wi-Fi, iPad ...
Get Rounds Video Calling + Chat on the App Store. See screenshots and ratings, and read customer reviews.


Patent application could see the Apple Watch calling 911 when it detects a heart-attack
A patent application describes how the Apple Watch and iPhone could work together to detect medical emergencies like a heart attack, and automatically ...

Resources last updated: 3/11/2016 1:23:11 AM