P
Patrick Tingen
Guest
I happen to have a debugging procedure that can receive the handle of a query, buffer or temp-table and spit out its contents to a log file. Recently, I added support for datasets ( which was actually around 5 lines of code), but how am I supposed to call this procedure? My procedure requires a parameter of type HANDLE and is normally called via a publish statement like: PUBLISH 'publishTable' (INPUT TEMP-TABLE ttCustomer ). But for a dataset, this does not work. I do have 2 workarounds though: /* Does not work */ PUBLISH 'publishTable' (INPUT DATASET dsData:HANDLE ). /* Works */ DEFINE VARIABLE h AS HANDLE NO-UNDO. h = DATASET dsData:HANDLE. PUBLISH 'publishTable' (INPUT h ). /* Works */ PUBLISH 'publishTable' (INPUT HANDLE(STRING(DATASET dsData:HANDLE)) ). But the latter two seem a bit clumsy. Is is possible to do it in one step, elegantly?
Continue reading...
Continue reading...