BookmarkSubscribeRSS Feed
psusudzi92
Calcite | Level 5
Hi all,

I put together a program to display Progression Free Survival (PFS) and Overall Survival (OS) for a listing, i.e. it displays these results as a number of days, 25, 110, etc. One of the requests from a reviewer (and common in these types of listings) is to display a + before the results if the subject is still alive, e.g. Subj 001 PFS = +99 (still alive) vs. Subj 002 PFS = 99 (died). I'm at a loss as to how to do this other than I know I'll have to check whether my Date of Death is either null or present. Any ideas?

Thanks!

John
2 REPLIES 2
Doc_Duke
Rhodochrosite | Level 12
You could create a format for your death indicator that assigns a value of + for alive and blank otherwise and then just print the two columns side-by-side.

If the people receiving the listing are picky and insist on numbers like you displayed, you could create a display field that is text and a combination of the indicator and the number, something like
length OSdisp $ 5;
FORMAT osdisp $char5.;
OSdisp=RIGHT(AliveAsPlus||LEFT(PUT(os,3.)));
psusudzi92
Calcite | Level 5
Thanks Doc!

I'll give it a shot.

John

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 1010 views
  • 0 likes
  • 2 in conversation