BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
stan
Quartz | Level 8

Hi folks,

I can't understand the behaviour of SAS PROC TEMPLATE in the following situation.

When I use the following data set:

ExpID;AA;BB;CC;DD;EE

1;5;25;9;65;14

the output as in the 1.jpg file.

But when I have missing values:

ExpID;AA;BB;CC;DD;EE

1;5;25; ;65;14

there is no relevant break in the curve (2.jpg).

How to do this like in the 3.jpg file?

To produce the lines I use the following code:

SERIESPLOT

X = ...

Y = ... / ... LINEATTRS = (PATTERN = SOLID COLOR = BLACK);

Thank you.


2.jpg3.jpg1.jpg
1 ACCEPTED SOLUTION

Accepted Solutions
Cynthia_sas
SAS Super FREQ

Hi:

  With the SGPLOT procedure, the option is BREAK:

proc sgplot data=whatever;

  series x=xvar y=yvar / break markers datalabel;

run;

So, I suspect that with PROC TEMPLATE, it will be a BREAK option on the SERIESPLOT statement. And, indeed, if you check the documentation, since the options are listed in alpha order, you will find what you need in the doc:

SAS(R) 9.4 Graph Template Language: Reference, Second Edition

cynthia

View solution in original post

2 REPLIES 2
Cynthia_sas
SAS Super FREQ

Hi:

  With the SGPLOT procedure, the option is BREAK:

proc sgplot data=whatever;

  series x=xvar y=yvar / break markers datalabel;

run;

So, I suspect that with PROC TEMPLATE, it will be a BREAK option on the SERIESPLOT statement. And, indeed, if you check the documentation, since the options are listed in alpha order, you will find what you need in the doc:

SAS(R) 9.4 Graph Template Language: Reference, Second Edition

cynthia

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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
  • 2 replies
  • 1846 views
  • 1 like
  • 2 in conversation