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.