10-30-2018
irisG
Calcite | Level 5
Member since
08-22-2018
- 7 Posts
- 0 Likes Given
- 0 Solutions
- 0 Likes Received
-
Latest posts by irisG
Subject Views Posted 1175 10-30-2018 07:43 AM 1216 10-30-2018 04:48 AM 1439 08-23-2018 07:05 AM 1475 08-23-2018 05:11 AM 1491 08-23-2018 04:45 AM 1666 08-22-2018 06:24 AM 1686 08-22-2018 06:00 AM -
Activity Feed for irisG
- Posted Re: Newbie Question - How to do a loop in SAS combine with proc sql? on SAS Programming. 10-30-2018 07:43 AM
- Posted Newbie Question - How to do a loop in SAS combine with proc sql? on SAS Programming. 10-30-2018 04:48 AM
- Posted Re: Importing one value from excel into SAS on SAS Programming. 08-23-2018 07:05 AM
- Posted Re: Importing one value from excel into SAS on SAS Programming. 08-23-2018 05:11 AM
- Posted Importing one value from excel into SAS on SAS Programming. 08-23-2018 04:45 AM
- Posted Re: Convert macro variable date to yymmddn8 to use in file path on SAS Programming. 08-22-2018 06:24 AM
- Posted Convert macro variable date to yymmddn8 to use in file path on SAS Programming. 08-22-2018 06:00 AM
10-30-2018
07:43 AM
Great! Works like a charm! Many thanks!
... View more
10-30-2018
04:48 AM
Hi I want to create a loop for the following code so I can output a range of names... data _null_; do i = 1 to 2; if i = 1 then class = "bank"; if i = 2 then class = "bonds"; end; summary = cats(class,"_summary"); call symputx('summary',summary); Current = cats(class,"_curr"); call symputx('current',current); run; %put &summary.; %put ¤t.; But right now my output looks like this bond_summary bond_curr What I dont understand is why 1) my first i =1 clas = bank didnt appear? 2) why is an "s" missing in my "bond" And then if the above code is run successfully I want to incorporate the following proc sql code but I dont know where to stick the code in the loop. proc sql; create table &summary. as select Market_value from ¤t.; quit; Many thanks for helping!
... View more
08-23-2018
07:05 AM
That's definitely a tidier solution. I am trying to fact find at this stage to see what different approaches are available. One idea was to call the SAS code from VBA but our issue is that the code is too long if I use the Jointext function to join all the code (this is what I saw as one of the solutions, by puting a code in a named cell and then execute the SAS code from VBA.)
... View more
08-23-2018
05:11 AM
I am toying with automating part of the process that currently involve talking to an excel spreadsheet and reiterating the calculation. Right now we are using the same solution as you suggested but I wonder whether there are ways to improve the process.
... View more
08-23-2018
04:45 AM
I understand that SAS can easily import excel data and treat it as SAS data set. However, if I just need one value from excel and use that value as a SAS variable. Is it possible? How do I go about doing that? Thanks!
... View more
08-22-2018
06:24 AM
Works like a charm! Many thanks!
... View more
08-22-2018
06:00 AM
Hi I have this peace of code which i want to use to look up a file created 6 days ago, e.g. 20180816. The file name should be G20180816.txt. %let kurs_datum = %eval(%sysfunc(today())-6); data format_date; format kurs_datum yymmddn8.; run; %let infil="C:\G&kurs_datum..txt"; When i run this code i got this error message. It looks like that it is still using SAS's date format. ERROR: Physical file does not exist, C:\G21412.txt. How do I solve this?
... View more