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-white.png

🚨 Early Bird Rate Extended!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.

 

Lock in the best rate now before the price increases on April 1.

Register now!

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