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;

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

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
  • 547 views
  • 6 likes
  • 1 in conversation