BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hello,

I have lp problems in mps standard (respectively free) format in a table of my databank.
Is it possible to use PROC SQL to select and convert them to mps sas data set, so that I can Input into PROC OPTMILP?

As sparsedata I can seclect a problem form my databank into a table with PROC SQL and convert it with PROC LP:
proc lp data=exdata mpsout=mpsdata;
run;

But for mps format, I find only the macro %mps2sasd in the user's guide. Its parameter must be a file (.mps).

Thanks
1 REPLY 1
Philipp_SAS
SAS Employee
Hi Chavalit,

Unfortunately there is no auto macro to read an MPS data set from a database. But since the data set format is almost the same as the mps format, it should not be hard to write a macro for it using PROC SQL.

Here is some information about the mps data set format:
http://support.sas.com/documentation/cdl/en/ormpug/63352/HTML/default/viewer.htm#mpsds_toc.htm

Have a great day
Philipp

sas-innovate-white.png

Special offer for SAS Communities members

Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

Register now!

Discussion stats
  • 1 reply
  • 1110 views
  • 0 likes
  • 2 in conversation