BookmarkSubscribeRSS Feed
tc
Lapis Lazuli | Level 10 tc
Lapis Lazuli | Level 10

Memorial DayMemorial Day

* Memorial Day 2020;

data cross;                   * Create points for cross;
color=.;                      * 10x10 base (no color);
x=0;  y=0;  z=-.01; output; 
x=10; y=0;  z=-.01; output;
x=0;  y=10; z=-.01; output;
x=10; y=10; z=-.01; output;
color=1;                      * 1=Light grey;
x=4.5; y=4.5; z=0;    output; * 3D cross vertices;
x=5.5; y=4.5; z=0;    output;
x=4.5; y=5.5; z=0;    output;
x=5.5; y=5.5; z=0;    output;
x=4.5; y=5.5; z=10.5; output;
x=5.5; y=5.5; z=10.5; output;
x=4.5; y=7.5; z=10.5; output;
x=5.5; y=7.5; z=10.5; output;
x=4.5; y=7.5; z=12;   output;
x=5.5; y=7.5; z=12;   output;
x=4.5; y=5.5; z=12;   output;
x=5.5; y=5.5; z=12;   output;
x=4.5; y=5.5; z=17;   output;
x=5.5; y=5.5; z=17;   output;
x=4.5; y=4.5; z=17;   output;
x=5.5; y=4.5; z=17;   output;
x=4.5; y=4.5; z=12;   output;
x=5.5; y=4.5; z=12;   output;
x=4.5; y=2.5; z=12;   output;
x=5.5; y=2.5; z=12;   output;
x=4.5; y=2.5; z=10.5; output;
x=5.5; y=2.5; z=10.5; output;
x=4.5; y=4.5; z=10.5; output;
x=5.5; y=4.5; z=10.5; output;
x=4.5; y=4.5; z=0;    output; 
x=5.5; y=4.5; z=0;    output;
x=4.5; y=5.5; z=0;    output;
x=5.5; y=5.5; z=0;    output;

proc template;                * Use GTL to draw 3D cross;
define statgraph cross;
begingraph;
layout overlay3d / cube=false xaxisopts=(display=none) yaxisopts=(display=none) zaxisopts=(display=none);
surfaceplotparm x=x y=y z=z / surfacetype=fill colorresponse=color colormodel=(lightgrey);
endlayout;
endgraph;
end;

proc sgrender data=cross template=cross;
run;

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 0 replies
  • 704 views
  • 6 likes
  • 1 in conversation