- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Thank you, charus for your such a nice comment! I am glad you liked it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Awesome @LeonidBatkhan,
After reading this article, I wish SAS launch Relativity Mode in the future 😀.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Thank you, Kalind_Patel,
The "relativity mode" has always been in SAS from its inception: just use proper spacing and watch your timing. 😄
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Fun post. Blame me not finding it until now on warped spacetime.
After some thought I realized that we can continue this embedding. Here are three steps deep:
data AAA;
set SASHELP.CARS;
where ORIGIN eq 'Asia';
data BBB;
merge AAA SASHELP.CARS;
by MAKE;
where TYPE eq 'Truck';
proc sql;
create table CCC as (select Make, Model, MSRP from BBB);
quit;
run;
run;
I'm reminded of somebody who said
"Every flea has smaller fleas, upon their backs to bite 'em.
And those fleas and smaller fleas, and so ad infinitum."
One further warning - if you use the "Format Code" button on the final SAS code, it ceases working completely. I gather the black hole sucks everything in. (black holes really suck.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hi Johndberglund,
You got it!
However, when I applied code formatting (I don't have the Code Format button in my EG so I had to use Edit -> Format Code) to the last code, I got the following:
;;;;;;;;;;;;;;;;;;;;;;;;;
;
%let time = LINE;
;
%let s=%length(&TIME);
;
data B;
;
input;
;
TYPE = 'Gravity';
;
&time.s&s;
;
data A;
;
TYPE = 'Light';
;
run;
;
run;
;;;;;;;;;;;;;;;;;;;;;;;;;
which worked as fine as before the code formatting. Apparently, it depends on the state you were in when running your code. (I am in Maryland). Or time of day. Or anything else. In any case, it just reaffirms that theory or relativity is closely related to the the Heisenberg's uncertainty principle...
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
@LeonidBatkhan @Johndberglund Format code works in California too (at least right-clicking and selecting Format Code from the pull-down menu in EG 7.1 or 8.2 works). I was disappointed. I was really hoping to see a black hole up close. The search goes on....
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Ah. Curiouser and curiouser.
It seems that SAS has very special relativity - the result may be relative to which system you are using. In SAS Studio we get something like this:
________
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
%let time = LINE;
;
%let s=%length(&TIME);
;
data B;
;
input;
;
TYPE = 'Gravity';
;
&time.s&s;
;
data A;
;
TYPE = 'Light';
;
run;
;
run ;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hi Leonid,
I know, I am a little late reading this article, but I really liked it and found it to be very funny and educational at the same time!
I do have a very serious question, though, about the equation in the image at the beginning of your article, which I found so intriguing and would like to prove, but I need a little help:
In the equation
E = M&Ms * (SAS)2
Does the variable M&M represent mass, or more specifically, a body’s resistance to acceleration based on the amount of M&Ms a body at SAS has consumed over time?
And … are the variables
E and M&Ms
equivalent since SAS operates at the speed of light, and is always constant and dependable?
🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Thank you, leelee, for your very thoughtful comment (up until now I thought that everyone took this picture for granted).
You say, you are "a little late reading this article". However, relatively speaking, you are a month early...
And the answer to your question is Yes. No.
😀
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
@LeonidBatkhan - Are you deviating into quantum mechanics where the answer can be yes and no at the same time? Adding Schrodinger's cat would be very entertaining...😉
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
@SASKiwi, I am glad you chimed in. You got it almost right, with the reversed precision: my answer was "not yes and not no" at the same time. 🙂 I like the idea you suggested (even though I prefer dogs over cats), although I wouldn't call it "deviation" as these are all parts of the same - our pitiful attempt to explain the inexplicable world.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
@LeonidBatkhan - True. Particularly since general relativity doesn't work in the sub-atomic realm so a theory of quantum gravity is required.
I'm also wondering when SAS will be available on quantum computers. That would be pretty awesome!
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
I think SAS will be available on quantum computers as soon as quantum computers will be available for SAS.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hi SASKiwi,
As you suggested, I just deviated into quantum mechanics with this new post:
To be and not to be – the uncertainty principle in SAS
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
This is great. I'm going to tell ALL my relatives.
Most of them quit after
The hash OUTPUT method will overwrite a SAS data set, but not append. That can be costly. Consider voting for Add a HASH object method which would append a hash object to an existing SAS data set
Would enabling PROC SORT to simultaneously output multiple datasets be useful? Then vote for
Allow PROC SORT to output multiple datasets
--------------------------