go to post Aline Rena · Jun 21, 2017 It is not possible for a component within a production to update the production, which is what you are trying to do using the third parameter of EnableConfigItem equal to 1. That is why you are receiving ERROR <Ens>ErrJobRegistryNotClean (the process trying to update the production is trying to update itself).You should update the production by running UpdateProduction via Job command, as follows:Set tSC = ##class(Ens.Director).EnableConfigItem(pConfigItemName,0,0)Set tSC = ##class(Ens.Director).EnableConfigItem(pConfigItemName,1,0)job ##class(Ens.Director).UpdateProduction()Hope this helps.
go to post Aline Rena · Sep 1, 2016 Check out this example: ListDir ; s ret=##class(%File).FileSetExecute(.x,"C:\temp","*","",1) f i=1:1 s ret=##class(%File).FileSetFetch(.x,.y) q:y="" s ^FileList(i)=y s i="" f d q:i="" . s i=$o(^FileList(i)) q:i="" . s mylist=^(i) . i $list(mylist,2)="D" s dir=$list(mylist,1) w !,dir . q q
go to post Aline Rena · Aug 24, 2016 Try username SYS password XXX. You can change the password using Control Panel|Security|User accounts ( TRM: account).Thanks.