Hello
I have a simple query. I am trying to get output from selected variable if i apply diffrent limits then it should give me output of selected range
What i am facing is if i select show me values that are out side of 100..it is shouwing correct result
but if i select show me number of article outside of value 75..what it is showing is under 100 and above 75..
I want to see all the values above 75....
Following you will see the program that i wrote
IF ( 'RFPSCW'n > 100 )
RETURN 'For 100'
ELSE (
IF ( 'RFPSCW'n > 75 )
RETURN 'For 75'
ELSE (
IF ( 'RFPSCW'n > 50 )
RETURN 'For 50'
ELSE 'other' ) )
please help to solve this
Thanks in advance
This is certainly NOT a Base SAS data step program. If you have that in a data step, it's only a big sequence of syntax errors.
Note: "if" REQUIRES a "then", and the statement MUST be terminated with a semicolon before the "else".
With which SAS product/module are you using this code?
Quoted:
IF ( 'RFPSCW'n > 100 )
RETURN 'For 100'
ELSE (
IF ( 'RFPSCW'n > 75 )
RETURN 'For 75'
ELSE (
IF ( 'RFPSCW'n > 50 )
RETURN 'For 50'
ELSE 'other' ) )
Hello KUurtBremser
I am using now SAS VA product
Kind of online integrated SAS application to analyze production data
One quick que
If i want to get output for the same with IF ELSE and THEN statement
What would be your program?
Thanks in Advance
That explains a lot. I moved the whole question to the Visual Analytics community.
I am not a VA expert.
Hi!
How do you select the values?
I assume you want to select only on value and get several intervals (>100, >75, etc)
One way is to make it possible to select one or more values for example in a list object and then name the values like (x>100, 75 <= x < 100, 50 <= x <75, etc).
Could that help you?
//Fredrik
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
See how to use one filter for multiple data sources by mapping your data from SAS’ Alexandria McCall.
Find more tutorials on the SAS Users YouTube channel.