What is the syntax in Zen PDF Reports to form feed between tables?
InterSystems Caché is a multi-model DBMS and application server. See more details here.
InterSystems Caché is a multi-model DBMS and application server. See more details here.
What is the syntax in Zen PDF Reports to form feed between tables?
HA backup strategy
we use Rose to do HA with cache2016.2, the database is placed on the hard disk array, which is essentially an instance, and the same array disk is mounted by rose switch, another mirror machine is made.
Is there any problem with this structure for disaster recovery and backup, I hope to give some advice. Thanks!
Hello,
First of all thank you for reading this question
Also thank you for giving an answer
We would need some help
Our objective is to spot all REST Services in a namespace
➡️ How could we detect all services with AdapterClassname = EnsLib.HTTP.InboundAdapter , in an automatic way, in a namespace?
We need to know how to pass a certain value, which in the .NET world is described as a byte array (i.e. byte[])
Background:
We have various libraries that were created in .NET 4.5 that are registered for COM interom, an example that we have is as follows:
.NET Signature:
public static byte[] CreateQrCode(string content, int width, int height, string imageFormat)
.NET utilisation:
byte[] image = Writer.CreateQrCode("http://redacted/", 100, 100, "png");
Intersystems utilisation:
do streamQrCode.CopyFrom(objGenerator.
I am trying to populate a table using the sql Data Import Wizard. The input file is a tab delimited text file. But the import keeps failing with a 104 error showing validation for the columns which use %Library.TimeStamp and %Boolean datatypes is failing. Yet when I insert values into the table through a SQL insert command, the values get saved correctly in the table.
For the TimeStamp format in the wizard form, I am choosing YYYY-MM-DD-HH:MI:SS because there was no option for this format: YYYY-MM-DD HH:MM:SS.
I'm using a JDBC driver to connect PGSQL -> Cache. I'm noticing when I run SELECT queries and COUNT(*) command against the same table, I get different result sets. I'm pretty new to Cache in general - so I'm trying to understand why these would be different.
Examples (TransID and InvNum should occur in every "row"):
SELECT COUNT(*) FROM ACCT.Services = 1,090,324 WHERE ACCT.Dept = 483
SELECT TransID FROM ACCT.Services = 1,085,776 WHERE ACCT.Dept = 483
SELECT InvNum FROM ACCT.Services = 586,023 WHERE ACCT.
Hello all,
I am in a bit of a situation where I could get your help please.
I want to get certified with IRIS, but I also do see that there is an availability named Cache.
Are they both the same or different? if different please explain it to me as how?
Also what is the difference between IRIS, IRIS for Health, Deep Sea? Please explain to me.
Also what do you think I should get my self certified with?
Please leave your comments below.
Cheers.
We've traditionally run a selection of development environments from a single cache instance using different namespaces for DEV TEST PREP etc. This has come with a few drawbacks, mainly that you then cant break down into namespaces per environment and everything is sharing various options.
Is there a massive overhead to running multiple cache instances from the same 'box' instead?
How best to share the memory setup in that situation, we usually pre-define around 80% for the instance, do we just share that evenly between the multi instance scenario?
User antiterrorism is assigned the following SQL procedure privileges:
ERROR #5002: Cache error: <UNDEFINED>SQLUserPrivsExecute+57^%SYS.SQLSEC ^oddPROC("ENSEMBLE_ENS","BAIYAOJIREQUEST_EXTENT",27)
SOURCE ELEMENT: %CSP.UI.Component.SQLTables (SQLProcs)
Afternoon all,
Is there a way (at SQL level) to script out the definition of a Cache stored procedure from within SQL?
In SQL Server, I would do...
Select * from INFORMATION_SCHEMA.ROUTINES where ROUTINE_NAME = 'my_sproc_name'
But cant find anyway to do this in cache.
Note, its an old version of Cache, so "INFORMATION_SCHEMA" is not available.
I am trying to see the SQL definition in the sproc from SQL itself.
Thanks all
I have some code in a mac routine that use indentation and the "." character :
IF condition1 DO
.WRITE YCR,...
.WRITE YCR,...
.WRITE YCR,...I would like to add a try / catch block between the write statements.
I can't refactor the whole code and use indentation with curly braces instead (there is too much code, not written by me)
I have tried the following but it does not work (it compiles, but code stop running right before the try keyword)
IF condition1 DO
try {
.WRITE YCR,.
.WRITE YCR,.
.for debugging purposes of complex applications.
I have run into two annoyances when using VS Code for server-side editing of Objectscript and was wondering if anyone knows of any solutions or workarounds.
1. In .mac routine files, class names that aren't fully qualified (e.g. ##class(example) instead of ##class(Package.example)) fail to be understood, so the class will have a red squiggly underneath it and a problem that reads
"Class 'example' does not exist. InterSystems Language Server".
In an old routine full of unqualified class names, it just fills the problems tab and drowns out the actual issues.
I am using MDX2JSON do display data, it uses CSP REST to retrieve data and uses Password Authentication. I enabled LDAP authentication for this applicaiton, but it does not work.
New installed cache, can connect local, but not remost host,telnet 23 failure
Hi Team,
I have a requirement to delete the Ensemble interfaces , as per User request. I would like to write a routine for that and once I execute, it should remove the interface components through code.
Could you please provide code samples for the following actions ?
Appreciate the help.
Thanks,
Purushothaman.T
At the heart of IRIS and Cache is a very interesting database architecture that we, at M/Gateway Developments, refer to as "Global Storage". If you ever wanted to know more about the fundamentals and capabilities of this underlying database, you might want to read a major analysis we've put together:
https://github.com/robtweed/global_storage
Amongst other things you'll discover that:
- Global Storage provides the underpinnings of a full multi-model database, something we refer to as "Universal NoSQL", though, as you already know from IRIS and Cache, it also supports relational too.
Can somebody give examples of $Order and $Query and there application? When to use $Order and $Query????
Hello everyone :-) A colleague wants to use data got from a stream into another type of object: %xsd.base64Binary (related to a webservice context).
His code works for regular data, but the following error appears when parsing large streams (~43 MB): "ERREUR #5002: Erreur Cache: <MAXSTRING>"
Here is below his code:
Class (...).StampDataRequest Extends Ens.Request [ ProcedureBlock ]
{
…
Property DocumentData As %xsd.base64Binary;
…
}
Method OnRequest(pRequest As Ens.StreamContainer, Output pResponse As Ens.Response) As %Status
{
...
set fileStream = ##class(%Str
Title: IRIS DBA
Location: pleasanton,ca remote work from united states only
Duration:12+months
Skills: intersystems Iris, cache and health care background
When parsing a text file into a mumps routine I get this error
<FUNCT>Method+2^%CDCalBk
Any idea what can be causing this
Thanks in advance
Hello everyone,
I have a question, I am trying to use xecute command, but something wrong happen when i was using the command, and i don't know why hahahaha.
I created a file .mac with this code:
label(test) public{
set routine="variable"
set call="write routine,!"
xecute call
quit
}But when i run the command, show me this message error:
<UNDEFINED>label+3^tstFJR3 *routineAfter that i changed the code to:
label(test)
set routine="variable"
set call="write routine,!Hello everyone,
We are trying out lists inside persistent classes. Because we may need to use them in a very close future.
So far, I managed to create a class that has a list property which has an indice.
Here is the class in question:
Class User.TestList.Data.
Hello Community,
we read data from an Oracle database. The desired order is created by an 'order by' in the sql statement. The individual elements of the result set are converted into objects and inserted into a parent object using 'insert' on a property, which implements a one-to-many relationship with the result objects. Later, we iterate over the objects in a for loop and process the contents. At this point the order is apparently no longer identical to the order in which the elements were inserted.
I'm looking for a SQL function equivalent for SQL server STRING_SPLIT. I have records like this:
join_to_tx_history (key), ss_note_multi_dict_1_value (varchar)
| 64559.001 | Assistant Principal, Case Worker, Client, Dad, Daughter, Mentor, Mom, Other, Principal, Psychiatrist, School Counselor, Teacher |
and I like the field ss_note_multi_dict_1_value split to rows for each comma delimited value. So I can get this:
64559.001 Assistant Principal
64559.001 Case Worker
64559.001 Client
64559.001 Dad
64559.001 Daughter
64559.001 Mentor
64559.001 Mom
64559.001 Other
64559.
Hello everyone, I can choose between RSA and DSA. ECC seems to be unsupported. Is there any workarounds without using external binary like curl?
Best regards RY
Hi all
I'm trying to recreate this method below in Cache/IRIS.
https://en.wikipedia.org/wiki/Luhn_mod_N_algorithm ISO-7812-1 (LUHN-10)
I've been following the javascript example. It seems simple in theory but i'm struggling with which cache methods to pick.
$LENGTH, $System.SQL.FLOOR() - seem ok
$EXTRACT - I think for .charAt (though may need to correct base)
$FIND - for .indexOf
Any suggestion which would be the best ones for the job?
Thanks
Dan
I'm trying to connect to a database (outside Cache) using the examples here:
https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cl…
and https://docs.intersystems.com/latest/csp/docbook/Doc.View.cls?KEY=BGOD_…
and i'm still getting an error on running the Connect method (
"0 "_$lb($lb(6022,"DSN/User Connect",,,,,,,,$lb(,"TRAK",$lb("e^zConnect+15^%Library.SQLGatewayConnection.1^2","d^zConnect+13^%Library.SQLGatewayConnection.1^2","e^^^0"))))/* ERROR #6022: Gateway failed: DSN/User Connect.
There is an undocumented command, $preprocess, that can be called as below. In this case it takes the class name and converts its code into a text array. That includes comments as well. Two questions about it if you know:
Hi-
I have a REST client that calls a REST service and as a response gets a stream containing a JSON structure. The service is placing some weird non-printable characters into some places in the JSON document that is throwing off parsing of a down-stream XML document.
What I would like to do is just remove the non-printable characters from the response stream that comes back from my call to the REST service.
Does anyone have a handy utility or method for removing all non-printable characters from a character stream?