BookmarkSubscribeRSS Feed
Jolly
Calcite | Level 5

Hello,

I am working on getting data output to traffic light based on meeting specifications and being inside the 3 sigma control limits.  The specification limits are predefined and included in data set.  To get the control limits, I have been using the Proc Shewhart prodcedure with whatever type of chart I desire.  This program I am woking on will be set up to run automatcially everyday at a specified time.  The question is, how do create a traffic lighting format with control limits that could be changing everyday?  The specification traffic lighting is not a big deal as the specifications are a constant.  But I want to traffic light the 3 sigma limits with a yellow using proc shewhart outlimits variables such as _LCLI_ or _ULCX_ depending on with type of chart is used.  This way I do not have to go in and manually change the control limit values for the yellow traffic lighting.

Over all I want, for outside of the specification limits - Flag Red

For outside the 3 sigma limits but inside the specifications - Flag Yellow

The rest would have no formatting.

In my final data set, i have all of the specification limits, control limits, and test results in the one data set.

Thank you,
Jeff

1 REPLY 1

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
  • 1 reply
  • 298 views
  • 0 likes
  • 2 in conversation