BookmarkSubscribeRSS Feed
Laelaf
Calcite | Level 5
Hi all

I have written a small SAS OR code that uses PROC LP (shown below). I want this code to take input from the user stored in a different file (e.g. a SAS query output or a dat file) and output it to a third file. My eventual goal is to get this to work as a stored process. Is there any documentation out there for this ? Any help is greatly appreciated.

Laelaf
2 REPLIES 2
Laelaf
Calcite | Level 5
Hi all

I have written a small SAS OR code that uses PROC LP
(shown below). I want this code to take input from
the user stored in a different file (e.g. a SAS query
output or a dat file) and output it to a third file.
My eventual goal is to get this to work as a stored
process. Is there any documentation out there for
this ? At the very least, I want to be able to change soeme of the entries in the table below through user input. Any help is greatly appreciated.



data;
input _row_ $17.
d_p1 inv_p1 psold_p1 prod_p1 ud_p1 _type_ $ _rhs_;
datalines;
profit 0 -50 1028 0 -100 max .
dem_bal_1 1 0 -1 0 -1 eq 0
inv_sls_bal_1 0 1 -1 1 0 eq 0
necessity . . . . . lowerbd .
up_limit 1000 300 300 500 1000 upperbd .
;

proc lp;
run;
Bengt_SAS
SAS Employee
Can you clarify: are you asking how to take information from a file or data set and use it to change the problem below? Take data and create an LP file? Or something else?

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!

Multiple Linear Regression in SAS

Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 727 views
  • 0 likes
  • 2 in conversation