Hi
I suppose an understanding issue:
GET_UC_OBJECT_NR = Returns the status of an activated object.
Means that the object must be in a running state (= exist in activities window)
I would recommend using
:SET &LAST_RUNID# = GET_STATISTIC_DETAIL(,RUNID,"&MYJOBNAME#")
for your request.
cheers, Wolfgang
PS: hope you are aware that the CALL API "just" executes a script - if you want a runid to be returned in your VB script you must take cate to get it.