Hi, I wrote some DS2 package code, working fine except for one tiny thing. The "method execute" part creates a datagrid variable MYRESULT. Depending on some if-then-elses, I would like to populate this datagrid variable. dcl double Row_Num ; datagrid_addcharactercolumn(MYRESULT, '1st_Col'); datagrid_addcharactercolumn(MYRESULT, '2nd_Col'); datagrid_addcharactercolumn(MYRESULT, '3rd_Col'); datagrid_addnumericcolumn(MYRESULT, 'Row_Num'); (...) if doh-doh-doh then do; Row_num=datagrid_addrow("MYRESULT"); datagrid_set('MYRESULT', '1st_Col', Row_Num, 'MyEntry1')); datagrid_set('MYRESULT', '2nd_Col', Row_Num, 'MyEntry2'); datagrid_set('MYRESULT', '3rd_Col', Row_Num, 'MyEntry3'); end; (...) ; if dah-dah-dah then do; Row_num=datagrid_addrow("MYRESULT"); datagrid_set('MYRESULT', '1st_Col', Row_Num, 'MyEntry1')); datagrid_set('MYRESULT', '2nd_Col', Row_Num, 'MyEntry2'); datagrid_set('MYRESULT', '3rd_Col', Row_Num, 'MyEntry3'); end; DS2 creates MYRESULT and four columns. Assuming these two conditions apply, I'd expect Row_Num to be populated with 1 and 2. However, it's empty. Any idea why? Any pointer appreciated!
... View more