def obs(self):
    '\n        return the number of observations for your SASdata object\n        '
    code = 'proc sql;select count(*) format best32. into :lastobs from '
    code += (((self.libref + '.') + self.table) + self._dsopts())
    code += ';%put lastobs=&lastobs lastobsend=;\nquit;'
    if self.sas.nosub:
        print(code)
        return
    le = self._is_valid()
    if (not le):
        ll = self.sas.submit(code, 'text')
        lastobs = ll['LOG'].rpartition('lastobs=')
        lastobs = lastobs[2].partition(' lastobsend=')
        lastobs = int(lastobs[0])
    else:
        print("The SASdata object is not valid. The table doesn't exist in this SAS session at this time.")
        lastobs = None
    return lastobs
return the number of observations for your SASdata object
def obs(self):
    '\n        \n        '
    code = 'proc sql;select count(*) format best32. into :lastobs from '
    code += (((self.libref + '.') + self.table) + self._dsopts())
    code += ';%put lastobs=&lastobs lastobsend=;\nquit;'
    if self.sas.nosub:
        print(code)
        return
    le = self._is_valid()
    if (not le):
        ll = self.sas.submit(code, 'text')
        lastobs = ll['LOG'].rpartition('lastobs=')
        lastobs = lastobs[2].partition(' lastobsend=')
        lastobs = int(lastobs[0])
    else:
        print("The SASdata object is not valid. The table doesn't exist in this SAS session at this time.")
        lastobs = None
    return lastobs