BookmarkSubscribeRSS Feed
SKG
Obsidian | Level 7 SKG
Obsidian | Level 7

Hi Guys,

 

How to create new custom category with own values assigned?

 

I want new Category with 2 own values

 

An example:

Category1 - values ("Value1","Value2")

 

Becasue i want to use this category in dropdown list

 

 

Regards,

Sunny Kumar Gupta

7 REPLIES 7
ScottBass
Rhodochrosite | Level 12

Read the doc for the datalines statement.


Please post your question as a self-contained data step in the form of "have" (source) and "want" (desired results).
I won't contribute to your post if I can't cut-and-paste your syntactically correct code into SAS.
SKG
Obsidian | Level 7 SKG
Obsidian | Level 7
Hi Scott,
What do you mean that?
i don't understand
what doc are you talking about?

Regards.
Sunny Kumar Gupta
ScottBass
Rhodochrosite | Level 12

The SAS documentation.  Try typing "datalines" into Google.


Please post your question as a self-contained data step in the form of "have" (source) and "want" (desired results).
I won't contribute to your post if I can't cut-and-paste your syntactically correct code into SAS.
SKG
Obsidian | Level 7 SKG
Obsidian | Level 7
Sorry Scott but i'm asking on SAS VA level not through Base SAS. But thanks for reply
ScottBass
Rhodochrosite | Level 12

Apologies, I didn't see the group name via my RSS reader.


Please post your question as a self-contained data step in the form of "have" (source) and "want" (desired results).
I won't contribute to your post if I can't cut-and-paste your syntactically correct code into SAS.
MichelleHomes
Meteorite | Level 14

The SAS VA documentation describes how to create custom categories... http://support.sas.com/documentation/cdl/en/vaug/68648/HTML/default/viewer.htm#n133d7vjj5losnn0zber8...

 

Kind Regards,

Michelle

//Contact me to learn how Metacoda software can help keep your SAS platform secure - https://www.metacoda.com
SKG
Obsidian | Level 7 SKG
Obsidian | Level 7

Hi Michelle.

 

Sorry but that's not answer of my question. I know it very well that how to create new category with given category in Dataset. But my requirement is how to create new category with own values assigned without taking any category from Dataset.

An example

1) First i want to Category1

2) With own value not from Dataset :- Value1 and Value2

Category - Value1 and Value2

these two value are not available in Dataset.

 

Regards,

Sunny Kumar Gupta


not this.png

SAS Innovate 2025: Register Now

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!

Tips for filtering data sources in SAS Visual Analytics

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.

Discussion stats
  • 7 replies
  • 2921 views
  • 0 likes
  • 3 in conversation