def score(self, file: str = '<STR_LIT>', code: str = '<STR_LIT>', out: '<STR_LIT>' = None) -> '<STR_LIT>':
if out is not None:<EOL><INDENT>outTable = out.table<EOL>outLibref = out.libref<EOL><DEDENT>else:<EOL><INDENT>outTable = self.table<EOL>outLibref = self.libref<EOL><DEDENT>codestr = code<EOL>code = "<STR_LIT>" % (outLibref, outTable, self._dsopts())<EOL>code += "<STR_LIT>" % (self.libref, self.table, self._dsopts())<EOL>if len(file)><NUM_LIT:0>:<EOL><INDENT>code += '<STR_LIT>' % file<EOL><DEDENT>else:<EOL><INDENT>code += "<STR_LIT>" %codestr<EOL><DEDENT>code += "<STR_LIT>"<EOL>if self.sas.nosub:<EOL><INDENT>print(code)<EOL>return None<EOL><DEDENT>ll = self._is_valid()<EOL>if not ll:<EOL><INDENT>html = self.HTML<EOL>self.HTML = <NUM_LIT:1><EOL>ll = self.sas._io.submit(code)<EOL>self.HTML = html<EOL><DEDENT>if not self.sas.batch:<EOL><INDENT>self.sas.DISPLAY(self.sas.HTML(ll['<STR_LIT>']))<EOL><DEDENT>else:<EOL><INDENT>return ll<EOL><DEDENT>
This method is meant to update a SAS Data object with a model score file.

:param file: a file reference to the SAS score code
:param code: a string of the valid SAS score code
:param out: Where to the write the file. Defaults to update in place
:return: The Scored SAS Data object.