BookmarkSubscribeRSS Feed
SP_RANDE
Calcite | Level 5
Hi,
I would like to use Input Streams option in the step of Output/Input of creating a stored process. How can I use this option to pass a huge list of values populated into a parameter value at run-time.
Can anyone give me an example of doing this?

I have a big list of 10K CPT Codes hard coded in a text file. I want them to populate into an input parameter when I invoke the stored process. This list is big to add manually to a parameter.
-----------
Input streams are an alternative way of providing data to a stored process at run time. Input streams usually consist of XML data that originates in a remote application, such as a Web service.
-----------

Thank you!
Raja
1 REPLY 1
Cynthia_sas
SAS Super FREQ
Hi:
I don't believe that Input Streams were meant to populate a parameter list or if they even COULD populate a parameter list. Since the constraints for the parameter list lives in the metadata, it sounds like you want the parameter list to be dynamically updated "on the fly" from your stream. I am not sure that you can do this with streamed input to a stored process.

As an example of using stream input, in this Stored Process, the data from the stream (INSTREAM libref) is being sent to PROC MEANS:
http://support.sas.com/rnd/itech/doc9/dev_guide/websrvcs/sample.html

This is a question that is probably best answered by Tech Support.

cynthia

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