Action Principale : convertMps
| 1 | DATA mpsfile; |
| 2 | INFILE DATALINES; |
| 3 | INPUT field1 $ field2 $; |
| 4 | DATALINES; |
| 5 | NAME example |
| 6 | ROWS |
| 7 | N COST |
| 8 | L C1 |
| 9 | G C2 |
| 10 | E C3 |
| 11 | COLUMNS |
| 12 | X1 COST 1 C1 1 |
| 13 | X1 C2 1 |
| 14 | X2 COST 1 C1 2 |
| 15 | X2 C3 1 |
| 16 | X3 COST 1 C2 1 |
| 17 | X3 C3 1 |
| 18 | RHS |
| 19 | RHS1 C1 10 |
| 20 | RHS1 C2 10 |
| 21 | RHS1 C3 4 |
| 22 | ENDATA |
| 23 | ; |
| 24 | RUN; |
| 25 | |
| 26 | PROC CASUTIL; |
| 27 | load DATA=mpsfile outcaslib='casuser' casout='mpsfile' replace; |
| 28 | QUIT; |