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



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

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