Help using Base SAS procedures

PROC LP

Reply
Occasional Contributor
Posts: 5

PROC LP

data credit;

   input _id_ $ w1 w2 w3 e _type_ $ _rhs_;
   datalines;
object 0 0 0  1 min .
const1 24      2       0       -1 LE 100
const2 35      6       1       -1 LE 100
const3 40      4       1       -1 LE 100
const4 30      10      0       1 GE 100
const5 28      1       0       -1 LE 100
const6 50      5       1       -1 LE 100
const7 45      15      1       1 GE 100
const8 60      10      0       1 GE 100
const9 20      1       0       -1 LE 100
const10 25     5       1       1 GE 100
;
 
proc lp data=credit;
run;

Errors, Warnings, Notes

Errors (1)

ERROR: No objective function has been given in the model data set. To specify an objective function give the 'TYPE' variable the

Warnings (4)

Notes (35)

1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;

57 

58 data credit;

59 input _id_ $17. w1 w2 w3 e

60 _type_ $ _rhs_;

61 datalines;

NOTE: Invalid data for w1 in line 62 19-23.

NOTE: Invalid data for w3 in line 63 1-6.

NOTE: Invalid data for e in line 63 8-16.

RULE: ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0 

63 CHAR const1 24.2.0.-1 LE 100 

  ZONE 66677323303030232442333222222222222222222222222222222222222222222222222222222222

  NUMR 3FE34102492909D10C50100000000000000000000000000000000000000000000000000000000000

NOTE: Invalid data errors for file CARDS occurred outside the printed range.

NOTE: Increase available buffer lines with the INFILE n= option.

_id_=object 0 0 0 1 w1=. w2=. w3=. e=. _type_=LE _rhs_=100 _ERROR_=1 _N_=1

NOTE: Invalid data for w1 in line 64 18-19.

NOTE: Invalid data for w3 in line 65 1-6.

NOTE: Invalid data for e in line 65 8-16.

65 CHAR const3 40.4.1.-1 LE 100 

  ZONE 66677323303030232442333222222222222222222222222222222222222222222222222222222222

  NUMR 3FE34304094919D10C50100000000000000000000000000000000000000000000000000000000000

NOTE: Invalid data errors for file CARDS occurred outside the printed range.

NOTE: Increase available buffer lines with the INFILE n= option.

_id_=const2 3561-1 w1=. w2=100 w3=. e=. _type_=LE _rhs_=100 _ERROR_=1 _N_=2

NOTE: Invalid data for w1 in line 66 18-19.

NOTE: Invalid data for w3 in line 67 1-6.

NOTE: Invalid data for e in line 67 8-16.

67 CHAR const5 28.1.0.-1 LE 100 

  ZONE 66677323303030232442333222222222222222222222222222222222222222222222222222222222

  NUMR 3FE34502891909D10C50100000000000000000000000000000000000000000000000000000000000

NOTE: Invalid data errors for file CARDS occurred outside the printed range.

NOTE: Increase available buffer lines with the INFILE n= option.

_id_=const4 301001 w1=. w2=100 w3=. e=. _type_=LE _rhs_=100 _ERROR_=1 _N_=3

NOTE: Invalid data for w1 in line 68 18-19.

NOTE: Invalid data for w3 in line 69 1-6.

NOTE: Invalid data for e in line 69 8-16.

69 CHAR const7 45.15.1.1 GE 100 

  ZONE 66677323303303032442333222222222222222222222222222222222222222222222222222222222

  NUMR 3FE34704591591910750100000000000000000000000000000000000000000000000000000000000

NOTE: Invalid data errors for file CARDS occurred outside the printed range.

NOTE: Increase available buffer lines with the INFILE n= option.

_id_=const6 5051-1 w1=. w2=100 w3=. e=. _type_=GE _rhs_=100 _ERROR_=1 _N_=4

NOTE: Invalid data for w1 in line 70 18-19.

NOTE: Invalid data for w3 in line 71 1-6.

NOTE: Invalid data for e in line 71 8-16.

71 CHAR const9 20.1.0.-1 LE 100 

  ZONE 66677323303030232442333222222222222222222222222222222222222222222222222222222222

  NUMR 3FE34902091909D10C50100000000000000000000000000000000000000000000000000000000000

NOTE: Invalid data errors for file CARDS occurred outside the printed range.

NOTE: Increase available buffer lines with the INFILE n= option.

_id_=const8 601001 w1=. w2=100 w3=. e=. _type_=LE _rhs_=100 _ERROR_=1 _N_=5

NOTE: Invalid data for w1 in line 72 18-19.

NOTE: LOST CARD.

RULE: ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0 

73 ;

NOTE: Invalid data errors for file CARDS occurred outside the printed range.

NOTE: Increase available buffer lines with the INFILE n= option.

_id_=const10 25511 w1=. w2=100 w3=. e=. _type_= _rhs_=. _ERROR_=1 _N_=6

NOTE: SAS went to a new line when INPUT statement reached past the end of a line.

NOTE: The data set WORK.CREDIT has 5 observations and 7 variables.

NOTE: DATA statement used (Total process time):

  real time 0.01 seconds

  user cpu time 0.01 seconds

  system cpu time 0.00 seconds

  memory 494.90k

  OS Memory 28060.00k

  Timestamp 06/23/2015 03:06:44 AM

  Step Count 411 Switch Count 180

  Page Faults 0

  Page Reclaims 96

  Page Swaps 0

  Voluntary Context Switches 667

  Involuntary Context Switches 665

  Block Input Operations 0

  Block Output Operations 272

  

73 ;

74 

75 proc lp data=credit;

76 run;

WARNING: All the coefficients in constraint object 0 0 0 1 (observation 1) equal zero.

ERROR: No objective function has been given in the model data set. To specify an objective function give the 'TYPE' variable the

  value 'MAX' or 'MIN' in at least one observation.

Ask a Question
Discussion stats
  • 0 replies
  • 169 views
  • 0 likes
  • 1 in conversation