Mastering the SAS DS2 Procedure by Mark Jordan

Mastering the SAS DS2 Procedure by Mark Jordan

Author:Mark Jordan
Language: eng
Format: epub
Publisher: SAS Institute

if lampIsOn=1 then

return 'on';

else

return 'off';

end;

method lampGetName() returns varchar(15);

return lampName;

end;

method lampSetName(varchar(15) myName);

put lampName 'lamp name set to' myName;

lampName=myName;

end;

method turnOn();

LampIsOn=1;

put lampName 'lamp was turned on.';

end;

method turnOff();

LampIsOn=0;

put lampName 'lamp was turned off.';

end;

method click();

dcl varchar(4) state;

lampIsOn=not(lampIsOn);

state=cats(lampGetStatus(),'.');

put lampName 'lamp was toggled' state;

end;

endpackage;

run;

quit;



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Web Analytics