Operations Research topics: SAS/OR,
SAS Optimization, and SAS Simulation Studio

Help needed with data input-output to a SAS OR code

Reply
New Contributor
Posts: 2

Help needed with data input-output to a SAS OR code

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
New Contributor
Posts: 2

Help needed with data input-output to a SAS OR code (2)

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;
SAS Employee
Posts: 4

Re: Help needed with data input-output to a SAS OR code (2)

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?
Ask a Question
Discussion stats
  • 2 replies
  • 222 views
  • 0 likes
  • 2 in conversation