oSession = CREATEOBJECT("session") SET DATASESSION TO oSession.DataSessionId USE ? && any table SCATTER NAME oRec SET DATASESSION TO 1 RELEASE oSession set step on ?"" && The data session created with the oSession object reference still exist && One would think this should go away when it is oSession is released. && But the object reference created by the scatter name isn't allowing it && to go away until it (oRec) is explicitly released or goes out of scope && to me the datasession should go away when the session object is released && regardless of the status of the object reference oRec.If you to replace the scatter name with a scatter to:
&&SCATTER NAME oRec SCATTER TO aRec && Now when releasing oSession the datasession goes away. Different behavior && the Scatter Name commaandThe datasession won't get held up like it would if you to do a scatter name.