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

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

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

View all other training opportunities.

Discussion stats
  • 3 replies
  • 1545 views
  • 3 likes
  • 2 in conversation