go to post Robert Cemper · Aug 25, 2021 You might be able to achieve the first part of your description by some tricky JOIN constructs.Just access to a non-existing column will fail at generating the Query.Cascading might be easier (also for maintenance) by filling a TempTable over several cyclesand so assemble the final result. I would suggest to create a ClassMethod projected to SQL as Stored Procedure.then instead of the trick with the switch you just provide the parameters that you really have
go to post Robert Cemper · Aug 25, 2021 to rephrase your problem:- You look for a way to switch on/off column 1so you need a switch: >>> new parameter and use it like this: ... WHERE (0=? OR column1=?) AND column2=? if your first param is 0 then 2nd param (for column1) is irrelevant if your first param is 1 then 2nd param (for column1) is effective so execute(0,a,b) uses any value of column1whille execute(1,a,b) filters column1 and column2
go to post Robert Cemper · Aug 24, 2021 the maxSCALE = 18 see Doc on $NORMALIZE()used in ##class/%Library.Numeric).Normalize() /// Converts <var>%val</var> to a normalized value.ClassMethod Normalize(%val As %RawString) As %Numeric [ CodeMode = generator, ServerOnly = 1 ]{s %codemode=$$$cMETHCODEMODEEXPRESSIONs %code="$select($zu(115,13)&&(%val=$c(0)):"""",1:$normalize($decimal(%val),"_+%parameter("SCALE")_"))"QUIT $$$OK} But it is no problem to clone this data tape and write a private one
go to post Robert Cemper · Aug 24, 2021 ah! I have a link generator written that is reading Source (Oracle) tables and thatuses the %Library.ResultSet class. for each it gets column name, type, maxsize,precision, lais, readonly, required & data type name and builds Cache Linked Table. So you don't use the Caché provided Default Link generator in SMP !!!So you get the default of datatype class %Numeric (=> SCALE=2) It might be enough to add : $SELECT(columntype["Numeric":"%Numeric (SCALE=4)",1:columntype) It's all under your own control.
go to post Robert Cemper · Aug 24, 2021 And therefore you should edit the generated class and not touch any defaults.I assume it's the Link Generator that uses SCALE=2 if Oracle doesn't provide anything.
go to post Robert Cemper · Aug 24, 2021 if you link a table from another DB (Oracle) there is a related class generated in Caché.In this class a property related to your column with type %Numeric.all you have to do is to add (SCALE=4) or whatever scale you need.this data type existed already in Caché 5.* about 20 years back. The system-wide control is stored in Cache.cpf file.You can change ist from SMP in System > Configuration > System-defined DDL Mappings though I would not recommend to do it on a system-wide scopeas this affects ALL mapping between Caché Objects and SQL
go to post Robert Cemper · Aug 23, 2021 default SCALE=2 for %Library.Numeric (since ever)https://docs.intersystems.com/irislatest/csp/documatic/%25CSP.Documatic.cls?LIBRARY=%25SYS&CLASSNAME=%25Library.Numeric
go to post Robert Cemper · Aug 19, 2021 it makes sense also to display what you group SELECT count(*),substr(TimeLogged,1,7), ConfigName FROM Ens_Util.Log where TimeLogged %STARTSWITH '2021-07' and ConfigName = 'operation_Name' group by substr(TimeLogged,1,7)
go to post Robert Cemper · Aug 19, 2021 @Flávio Lúcio Naves Júnior usr= dcmember works. allow insecure port
go to post Robert Cemper · Aug 18, 2021 I see we share the same approach. Thanks for the confirmation.As an isolated developer, I couldn't identify any significant improvement over my actual environment.
go to post Robert Cemper · Aug 17, 2021 Though this looks quite impressive I have 2 concerns #1 #2 Still 23 days to go free.
go to post Robert Cemper · Aug 17, 2021 I just found a note on Syntax Highlighting. Though I have no idea how this is related to this new editor ? Ping @Dmitry Maslennikov ?https://docs.github.com/en/github/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks#syntax-highlighting I'll stay with the old one
go to post Robert Cemper · Aug 17, 2021 It seems in github.com .gitattributes are honored and code coloring works OKwhile the NEW editor in github.dev ignores it. And I found it boring slow in startup
go to post Robert Cemper · Aug 17, 2021 I used the default Editor in Github Web text viewer I saw no difference over the last months
go to post Robert Cemper · Aug 17, 2021 That's what is scaring me: "Any application that can be written in ObjectScript, will eventually be written in ObjectScript."and the reinventing of wheels will go on ....
go to post Robert Cemper · Aug 17, 2021 the content of .gitattributes is incomplete should be: *.cls linguist-language=ObjectScript*.mac linguist-language=ObjectScript*.int linguist-language=ObjectScript*.inc linguist-language=ObjectScript*.csp linguist-language=Html *.sh text eol=lf*.cls text eol=lf*.mac text eol=lf*.int text eol=lfDockerfil* text eol=lf I'll place a PR to fix it
go to post Robert Cemper · Aug 17, 2021 try to check the conditions / privileges / user..... using CPIPE first.example: Execute Server Commands from Caché / Ensemble / IRIS
go to post Robert Cemper · Aug 17, 2021 Thanks @Vitaliy.Serdtsev !It is hard to believe but in the area I live COBOL is still better known than anything from ISC.
go to post Robert Cemper · Aug 16, 2021 Store as quine.intRun it by DO ^quine quine ;; just a simple example ;; have any contentclone X "ZL quine ZS quine1 P" ;; may have more content