BookmarkSubscribeRSS Feed
anurak
Fluorite | Level 6

When I try to plot using series plot in GTL, I am getting warnings because of missing data. Is there any options that I can use to ignore missing data instead of showing warnings in Log?. The code I used is

seriesplot x = xvar y = yvar/name="ser1";

seriesplot x=xvar1 y= yvar1/yaxis = y2 name = "ser2".

some of the yvar1 is missing.

warnings:  y=yavr1

is invalid

Please let me know If there is any options to ignore missing value.

3 REPLIES 3
Jay54
Meteorite | Level 14

You will get warnings only if every observation in the data column is missing.  This is so that one does not provide all missing data by error, and then wonder why the graph is not being drawn.  There is no option you can set to suppress such warnings.  I din't know of any system option either to suppress warnings.

anurak
Fluorite | Level 6

Thanks for your help. I am getting warnings when xvar1 is present and the corresponding yvar1 is absent for each observation.

Jay54
Meteorite | Level 14

If every observation in a column assigned to a required role is missing, you will get this warning, and the plot will be dropped.  For SERIES plot, both X and Y are required.  In your case, since every observation in yvar1 is missing, you will get this warning.

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!

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.

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
  • 3 replies
  • 1748 views
  • 3 likes
  • 2 in conversation