go to post Anna Golitsyna · Dec 15, 2022 Not quite what I was looking for but very interesting in its own right. Thanks, Alexey!
go to post Anna Golitsyna · Dec 14, 2022 Hi Cristiano, This might do for my ultimate purposes, thanks, but strictly speaking $STACK does not return the line number which in this case is 7 (Teste+2). It returns line number relative to the enclosing function only. So I'll wait in case there is a different solution as well.
go to post Anna Golitsyna · Oct 14, 2021 I added a picture of what I am looking for to the post (Edit/Find). I think FindInFilesRegex corresponds more or less to Use wildcards on this screen.
go to post Anna Golitsyna · Oct 11, 2021 Also %RCOPY preserves date modified of the original routine, and I'd rather preserve it. So far other listed approaches do not preserve it.
go to post Anna Golitsyna · Oct 11, 2021 Yes, that works and assigns the time of copy as the date modified. Thanks, Stephen! BTW, in my experience at least some old-fashioned commands are faster than their modern equivalents though in this case the speed is not an issue.
go to post Anna Golitsyna · Oct 11, 2021 Robert, it does not trigger source control and yes, I'd like it non-interactive too.
go to post Anna Golitsyna · Oct 8, 2021 Marc, a slight variation on your idea, tested whether targetRtn exists or not. Thanks again! zn "A"s currRtn=(##class(%Routine).%OpenId(rtnName))s stream=currRtn.Read()zn "B"s targetRtn=(##class(%Routine).%OpenId(rtnName))s sc=targetRtn.Write(stream)d targetRtn.Save()
go to post Anna Golitsyna · Oct 8, 2021 That would make the routine from namespace A immediately available in namespace B as is. The goal is to have routines in two namespaces different until the time comes for the programmer to make them the same via an RCOPY analog. It is also a "per routine" job used for synchronizing.
go to post Anna Golitsyna · Sep 21, 2021 One more question if I may: I try to exclude global subnodes but so far unsuccessfully. Is it possible?This correctly exports the corresponding node only: s items("SOMEGLOBAL(""ABC"",""XYZ"",""USERFORM_ATEST"").GBL") = ""Now if I try to exclude this node from the SOMEGLOBAL like this, s items("SOMEGLOBAL.GBL",'"SOMEGLOBAL(""ABC"",""XYZ"",""USERFORM_ATEST"").GBL") = "", it does not exclude it. There is a barely visible single negating quote in the beginning of the second item.
go to post Anna Golitsyna · Aug 6, 2021 OK, found what the problem was so your answer is, of course, correct.
go to post Anna Golitsyna · Aug 6, 2021 Robert, thanks a lot! This is what I saw today too in these nodes but not something I saw a few days ago. So I am still perplexed to some extent. I'll try various scenarios later, probably next week and will get back here if anything would be different.
go to post Anna Golitsyna · Jul 26, 2021 Can one export a specific node as XML via $system.OBJ.Export or otherwise?
go to post Anna Golitsyna · Jul 21, 2021 You are right about GSIZE. The other, slower functionality I had in mind is below: set statement=##class(%SQL.Statement).%New()set status=statement.%PrepareClassQuery("%SYS.GlobalQuery","Size")
go to post Anna Golitsyna · Jul 19, 2021 C as in this: C - InterSystems Programming Tools Index - Caché & Ensemble 2018.1.5 ? I understood about the main idea of a rarely used language, yes. I was just additionally interested in the accessing DB speed since ObjectScript seems to offer a noticeable overhead.
go to post Anna Golitsyna · Jul 19, 2021 Very interesting. If reading ObjectScript is ancient what can one say about pure, unadulterated MUMPS ? That was rhetorical, of course. I wonder how speed would fare with Python. GSIZE is way faster than the analogous ObjectScript functionality, at least for Cache 2017 that I use.
go to post Anna Golitsyna · Jun 11, 2021 I hit largely the same $System.OBJ.%Save <ZSG> error, in a code you cannot see, of course. After reading this thread I realized that the only unusual thing I did is to give my programmatically created project a numeric name. Apparently, there is a check inside %Save: if numeric it must be an object ID and not name… The error was gone as soon as I added a letter in the beginning of the name. I am also on Cache 2017
go to post Anna Golitsyna · May 13, 2021 If a specific class member causes this, yes, that might work indeed. I need to try it.