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.
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.
Thanks for your help. I am getting warnings when xvar1 is present and the corresponding yvar1 is absent for each observation.
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.
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.
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.