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

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 1 reply
  • 906 views
  • 0 likes
  • 2 in conversation