go to post Robert Cemper · Apr 10, 2022 Do you still expect some echo?Or is the question meanwhile just out of date?
go to post Robert Cemper · Apr 8, 2022 Globals: Embedded Python vs. ObjectScript is also available on Online Demo since its first release. It is also listed in OEX Directory "Products with Demo"Pls adjust the list accordingly
go to post Robert Cemper · Apr 7, 2022 @Chris Stewart it was there even earlier see my article Repairing your Index the background then, were manually written index globals.the BIG advantage is to slice it down and run it as slow as you need with practically no extra load
go to post Robert Cemper · Apr 7, 2022 at first sight, it looks like an issue on variable scoping with embedded SQLa quite old issuetry %suspendedCount instead of suspendedCount &sql(SELECT count(ID) into :%suspendedCount FROM Ens.MessageHeader where TargetQueueName not like '_S%' and TargetQueueName not like 'ENS%' and Status='Suspended' ) resulting 0 into suspendedCount
go to post Robert Cemper · Apr 3, 2022 To force it to string you have to append some non numeric character ! but this one is then part of the subscript as $c(0) or whatever you appendin addition, you break the numeric sort and change to string sorting. USER>set s1=111,s2=444,q="." USER>set a(s2)=1,a(s1)=2,a(s1_q)=3,a(s2_q)=4 USER>zw a a(44)=1 a(111)=2 a("111.")=3 a("44.")=4
go to post Robert Cemper · Apr 2, 2022 Do you still expect some echo?Or is the question meanwhile just out of date?
go to post Robert Cemper · Apr 2, 2022 Do you still expect some echo?Or is the question meanwhile just out of date?
go to post Robert Cemper · Apr 2, 2022 Do you still expect some echo?Or is the question meanwhile just out of date?
go to post Robert Cemper · Apr 2, 2022 USER>set s1=111,s2=444 USER>set a(s2_$c(0),s1_$c(0))=77 USER>set a($c(0)_s1,$c(0)_s2)=99 USER>zwrite a("111","444")=99 a("444","111")=77 s1=111 s2=444 USER> "save it from the class " ? whatever that may mean .... ?
go to post Robert Cemper · Mar 30, 2022 An object might not fit well a Global with a reasonable number of nodes.But by SQL you get it line by line. check this: Show Global by SQL SELECT
go to post Robert Cemper · Mar 30, 2022 >>>>>> "since the %RCMP file was locked" USER>ZLOAD %RCMP PRINT
go to post Robert Cemper · Mar 30, 2022 you may try USER>write $tr("abcdefghijkl","abcdxefxghxijxkl","2022-03-29T15:10:00+0100")
go to post Robert Cemper · Mar 29, 2022 SendRequestSync is an object method that requires an object as the base.##class(Ens.BusinessService).SendRequestSync( works for ClassMethods only.You need an object instance of Ens.BusinessService to call it.##class(Ens.BusinessService).%New().SendRequestSync( might be a dirty workaround
go to post Robert Cemper · Mar 29, 2022 just checked %Library.Routine- a sample of many %R* routines- lots of @ indirections- DO with . (dot) syntax- and of course GOTO.Just to qualify the code inside.
go to post Robert Cemper · Mar 29, 2022 I guess all you need is to redirect the ouput of %RCMP to some %Stream of SPOOL:In addition, you have %RCMP in your installation and just pick out what you need.
go to post Robert Cemper · Mar 28, 2022 %XML.GlobalCharacterStream extends %Library.GlobalCharacterStream therefore it has method FindAt() method FindAt(position As %Integer, target As %CacheString, ByRef tmpstr As %CacheString = "", caseinsensitive As %Boolean = 0) as %Integer Find the first occurrence of target in the stream starting the search at position. It returns the position at this match starting at the beginning of the stream. If it does not find the target string then return -1. If position=-1 then start searching from the current location and just return the offset from the last search, useful for searching through the entire file. If you are doing this you should pass in tmpstr by reference in every call which is used as a temporary location to store information being read so the next call will start where the last one left off. If you pass caseinsensitive=1 then the search will be case insensitive rather than the default case sensitive search. Copy to String may help but is limited by MAXSTRING size.There you may use [ (=contains OPERATOR) or $FIND() functionDon't mix up SQL predicate %CONTAINS with [ (string contains operator)
go to post Robert Cemper · Mar 25, 2022 Enfin la communauté dans la langue deRobert le Magnifique et son fils Guillaume le Conquérant. !* * * * * + + + * * * * *
go to post Robert Cemper · Mar 24, 2022 That raised the level but was no general solution. As I failed in my Docker container I didn't push it to DemoServer not to break it. Neither Embedded nor (external) Python was able to handle it by standard approach. I did my customized solution to handle any size of JSON file.
go to post Robert Cemper · Mar 23, 2022 Does $ZSTORAGE also affect available memory in Embedded Python ?