BookmarkSubscribeRSS Feed
Ashwini
Calcite | Level 5

I  have a sas datasetcustomer detail like

Customerno   Customerid  customername  productname productcode  porchdate 

CN111           111                RAM               FREEZE         PD1              09JAN2012

CN112           112                HARI              TV                   PD2             10JAN2012

CN113           113                GOPAL           FAN                PD3             04JAN2012

CN111           111                RAM               TV                   PD2             12JAN2012

CN112            112                HARI              FREEZE          PD1            13JAN2012

CN113            113                GOPAL           TV                   PD2             15JAN2012

Productcode:-PDI is FR

                       PD2 is T

                      PD3 is  FN

I have to create a stored process .In this store process  I have to create 3 dropdown selection like Customername ,Productname, productcode.

  1. If I     select customername RAM  and TRUE .

      It show below detail like

Customerno   Customerid  customername  productname productcode  porchdate 

CN111           111                RAM               TV                   PD2             12JAN2012

CN111           111                RAM               FREEZE         PD1              09JAN2012

  1. If  select customername HARI and TRUE

              Customerno     CN112

Then it show like

Customerno   Customerid  customername  productname productcode  porchdate

CN112           112                HARI              TV                  PD2              10JAN2012

CN112            112                HARI              FREEZE          PD1            13JAN2012

  1. If  select productcode FR only it show

Customerno   Customerid  customername  productname productcode  porchdate

CN111           111                RAM               FREEZE         PD1              09JAN2012

CN112            112                HARI              FREEZE          PD1            13JAN2012

If we select customername  HARI and TRUE

                    Customerno       CN112

                   Productcode       FR

It show like

Customerno   Customerid  customername  productname productcode  porchdate

CN112            112                HARI              FREEZE          PD1            13JAN2012                   

As per mention logic how we create drop down selection instored process .using sas macro, base sas and sas sql .Kindly help me .

Thanks and Regards,

Ashwini

1 REPLY 1
NN
Quartz | Level 8 NN
Quartz | Level 8

Hi,

Which version of sas are u using ?

In 9.2 and above you can create dyamic and cascading prompts using a registered sas table.

I Think the below document should guide you ...

... additionally you should also look at the sas stored process developers guide.

http://support.sas.com/resources/papers/sgf09/355-2009.pdf

hope it helps

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
  • 735 views
  • 0 likes
  • 2 in conversation