go to post Eduard Lebedyuk · Feb 8, 2022 Renata is Paula's boss. Jessica is Rose's boss, right? Or am I missing something here? Anyway, check this series of articles.
go to post Eduard Lebedyuk · Feb 7, 2022 The issue is it would actually hang the process for 10 seconds. MakeTimerCall implementation would not - BP could process other messages in the meantime.
go to post Eduard Lebedyuk · Feb 7, 2022 Check this answer if you need a CSV file. If you need some custom format: // prepare statement set st = ##class(%SQL.Statement).%New() set st.%SelectMode = 1 // ODBC set sc = st.%Prepare(query) quit:$$$ISERR(sc) sc // execute statement #dim result As %SQL.StatementResult set result = st.%Execute() quit:result.%SQLCODE'=0 $$$ERROR($$$SQLError, result.%SQLCODE, result.%Message) // iterate metadata (for example if you need a header) #dim metadata As SQL.StatementMetadata set metadata = result.%GetMetadata() set columnCount = metadata.columns.Count() for i=1:1:columnCount { #dim column As %SQL.StatementColumn set column = metadata.columns.GetAt(i) } // iterate results while result.%Next() { for i=1:1:columnCount { set value = result.%GetData(i) } }
go to post Eduard Lebedyuk · Feb 7, 2022 In BPL use delay: <delay duration='"PT10S"'/> In Custom Code BP check MakeTimerCall and make something similar.
go to post Eduard Lebedyuk · Feb 6, 2022 Check out: InterSystems IRIS Migration Guide How to Migrate to InterSystems IRIS from WRC (Downloads - Docs).
go to post Eduard Lebedyuk · Feb 5, 2022 "list of" will support this too in 2022.1 If you define Addresses list property like this: Property Addresses As list Of Sample.Address(SQLPROJECTION = "table/column", STORAGEDEFAULT = "array"); Child table would be created.
go to post Eduard Lebedyuk · Feb 4, 2022 Yes, looked promising but there are issues as we cant iterate positive/negative: 1,-1,2,-2 and so on.
go to post Eduard Lebedyuk · Feb 4, 2022 You must manually add the jdbc jar file. InterSystems JDBC driver is not available on maven.
go to post Eduard Lebedyuk · Feb 2, 2022 And why starting with -9 ? Considering we need to hit anything from -9 to 9 where else should I start?
go to post Eduard Lebedyuk · Feb 2, 2022 can't figure out how to check if the child process (in $zchild) is still running. Append 2 commands to your main command. First one, execute before your main command to create a file with a name equal to process id. Second one, execute after your main command. It deletes the file. In your IRIS process check if the file exists. Ugly but it works.
go to post Eduard Lebedyuk · Feb 2, 2022 Can't reproduce. Can you post an example please? Maybe you have a semicolon after your query?
go to post Eduard Lebedyuk · Feb 2, 2022 49 as we can iterate numbers, not list elements: ClassMethod Solve(o As %String) As %Integer { s y=$lfs(o) f i=-9:1 ret:$lf(y,i)&&'$lf(y,-i) i }
go to post Eduard Lebedyuk · Feb 2, 2022 Clever! If only there was a way to get "remaining parts" length, in that case we could divide the sum you've got by a number of repetitions and get the answer.
go to post Eduard Lebedyuk · Feb 1, 2022 Add it like this: dependencies { implementation files('/path/to/iris_jdbc.jar') }