I work in a small development company that uses Caché as a database. In some support cases I have doubts about whether the client's infrastructure environment is not affecting Caché's response time. Reading a bit about comparing installations in different environments, both in production as testing and homologation environments , I understood that the TPC-E is a benchmarking method accepted in the market.
I'm reading the specifications of the TPC-E and I wonder if anyone has implemented or seen something similar in Caché.
Hello; We are managing several Ensemble instances on several servers. One server has 4 instances, and two other servers have one instance each (those are production servers). We encrypt all instances using the Caché encryption in the management portal.
Currently we are using two different encryption keys: 1 key on the server with 4 instances, which is used for all 4 instances, and a second key on single-instance server. ( I'm installing the newest production server now.)
What I'd like to know is what are the best practices for managing encryption keys for separate servers.
The options are
I get two methods below: I would run both methods concurrently.
However, the "testRead" would always read the uncommitted results from "testInsert".
Anyway to avoid that? Thanks.
ClassMethod testInsert()
{
&sql(START TRANSACTION ISOLATION LEVEL READ COMMITTED, READ WRITE)
&sql(insert into Test.Table(AttrA,AttrB,AttrC,AttrD) values(1,2,3,4))
hang 15
&sql(ROLLBACK)
}
ClassMethod testRead()
{
&sql(START TRANSACTION ISOLATION LEVEL READ COMMITTED)
&sql(select count(*) into :ans from Test.Table)
&sql(COMMIT)
w !,ans
}Is it possible to make the cache terminal available over a mirrored vip address for a healthshare mirrored environment? So that connecting to a terminal for a mirrored environment will always connect to the Live Node?
I'm looking to write a Powershell script to run against the system and need to connect to the Live Node in a mirrored setup. Is this possible or am I going to have to log onto each node to establish which is Live. Or does this even matter?
I am trying to replace one of our SQL Integration Service jobs with Ensemble and I am running into an issue executing a query against a MS SQL database using JDBC drivers.
My SQL Outbound code looks like this.
Method SelectPaceartCharges(pRequest As osuwmc.Paceart.DataStructures.SelectPaceartBillingExtract, Output pResponse As EnsLib.SQL.Snapshot) As %Status [ ReturnResultsets ]{set query = "declare @currentYear int=datepart(year,getdate()) "set query =query_" declare @secondSundayOfMar datetime = CAST('3/8/' + CAST(@currentYear as varchar) as datetime)"set query =query_"Learning Services Live Webinars are back!
At this year’s Global Summit, InterSystems debuted InterSystems IRIS Data Platform™, a single, comprehensive product that provides capabilities spanning data management, interoperability, transaction processing, and analytics. InterSystems IRIS sets a new level of performance for the rapid development and deployment of data-rich and mission-critical applications. Now is your chance to learn more!
Joe Lichtenberg, Director of Product and Industry Marketing for InterSystems, presents "Introducing InterSystems IRIS Data Platform", a high-level
This is a series of programming challenges for beginners and experienced Caché programmers.
For an introduction : goto to article https://community.intersystems.com/post/advent-code-2016-day1-no-time-t… or look at the http://adventofcode.com/ website.
In today's challenge, you have to find out how many 'valid' triangles you find on the walls of the Easter Bunny HQ.
(you can find the input on the adventofcode website : http://adventofcode.com/2016/day/3/input)
A sample of the input looks like this :
810 679 10 783 255 616 545 626 626 84 910 149 607 425 901 556
Hi,in my rule i want to compare a value wich i extract from a file if it's inside in my interval values or no, example:
date1<value>date2
is there any function in rule editor that allow me to do this.
thank's
Hi guys,
I have accidentally clicked the remember password option in my Ensemble studio. So it is now not asking for username and password and even the authentication popup is not showing every time i open the studio.
Is there anyway to remove the remember password option for the cache studio.
Thanks,
Hi guys,
I am trying to run a command line code using $zf(-1) in cache terminal. it is returning access denied error.
I have tried to run the code in cmd itself it is also throwing Access denied error. But if opened cmd as administrator and run the same code it is working perfectly. I am using windows system.
Hence i need to know how can i run the cmd line code as administrator using our terminal or studio. Please help me out.
Thanks,
Mani
Advent of Code is a series of programming challenges for beginners and experienced Caché programmers.
For an introduction : look at article https://community.intersystems.com/post/advent-code-2016-day1-no-time-t…
In this challenge, you need to find a password using instructions to move on a keypad.
Instructions can be U(p), D(own), L(eft) and R(ight).
You start at button 5 on a keypad like
1 2 3
4 5 6
7 8 9
each line of instructions lead to one digit of the password.
Full description can be found at http://adventofcode.com/2016/day/2
For example : ULL leads to '1' (a move outside the keypad can
Hi world :) , i've a question about editing an ensemble rule:
how can i edit fields in a BPL rule with programming (i need to modify target value for a condition send label ).
until now i can edit only a condition value.
thank you for your collaborations
I have a text file that is fixed width delimited and am using a BPL to process this file, ultimately performing a transform from the text file to an HL7 message. I created a DTL, mapping from the recordmap to the HL7. In my BPL, I am performing some loops and other logic (that all is working). My issue is what to do when I perform the Transform.
I thought I could just call the transform and pass in the string as the source and a HL7 Message as the target.
Hi Team
i want to implement an Oauth 2.0 framework in my application , i define my connexion IHM, i want to check if the login and password are right when a user connect
do you've any idea ?
thank's
The Art of Mapping Globals to Classes (3 of 3)
If you are looking to breathe new life into an old MUMPS application follow these steps to map your globals to classes and expose all that beautiful data to Objects and SQL.
If the above does not sound familiar to you please start at the beginning with the following:
This example is going to show you how to map a classic parent-child structure.
Same disclaimer: If you can’t make heads or tails of your globals after reviewing these articles please contact the WRC and we will try to help you
So just this morning we started to get this error from all of our SQL-client based tools that connect to our Caché SQL via ODBC:
[%msg: <Error instantiating cached query class in Prepare(): <METHOD DOES NOT EXIST>Prepare+41^%SYS.SQLSRV *%New,%sqlcq>] (State:S1000, Native Code: 190)]
No queries work... any help? stumped over here.
doing a SQL query via Class %SQL.Statement
##class(%SQL.Statement
in Caché command line works... so that's why I think it's an ODBC issue..
I can't seem to find a SQLSRV class in the %SYS documatic
Greetings to all! Faced with such a problem, I ask for help, someone with great practical skills I think has already implemented this.The task was not to delete any objects from the database, but somehow mark this data deleted by client, because of this, I added Property Deleted As% Boolean [InitialExpression = 0];in the class.And in the redefined method %OnDelete:
ClassMethod %OnDelete(oid As %ObjectIdentity) As %Status [ Private, ServerOnly = 1 ]
{
s person = ..%Open(oid)
s person.Deleted = 1
d person.%Save()
Quit $$$ERROR(2112,Hi guys,
I'm trying to immigrate some of my HealthInsight dashboards and pivot tables to another HS instance.
In some pivot tables, I defined them with a set of calculated dimensions defined in the analyzer, e.g as below:

Then when I exported the cubes and pivot tables in used to my new envirmonment. When I open my pivot tables again, the calculated dimensions are missing and hence my pivot tables no longer work:
Is there any way to export those calculated dimensions so that I can used them else where?
Hi, Community!
This week we have two videos. Check all new session recordings from Global Summit 2017:
1. Atelier and Automated Private Instances
Hello,
every time I open the management portal (http://localhost:57774/csp/sys/UtilHome.csp) the default namespace is %sys.
How to set the namespace to my preferred namespace instead %sys?
Is there a setting or could I change the link?
Thank you
Helmut
P.S.: In my attached example image I want always to have default namespace EXPERT when I open management portal

Advent of Code is a series of 25 small programming challenges, it's an ideal way for beginners to start learning a computer language, and for advanced people to sharpen their programming skills.
There are small and bigger puzzles, which you can solve typically in half an hour to a few hours. (Looking at the leaderboard, the top aces can do them in less than 10 minutes.)
Advent of Code is created by Eric Wastl, you can find all info on https://adventofcode.com/.
To help you get trained for this year's challenges which start at December 1st, we* will try to solve and comment the puzzles from 2016.
We are getting the input as xml in ftp inbound adapter and need to send the xml content to the soap webservice. I have to create a business operation to handle this operation
Hi, Community!
This post is a digest of the Developer Community postings in October 2017.
Most Viewed
Developers Meetup 25th of October, Cambridge MA, CIC 269
COS extension for Microsoft Visual Studio Code 183
Release of Caché / Ensemble 2017.2.0 and HealthShare Health Connect v15.03 for 2017.2.0 179
How to interactively run a Windows or Unix command from inside Caché/Ensemble 172
Yet Another Way to Duplicate Quotes in String 162
Studio Source Control in Atelier 161
Using $fromObject throws error 155
Global Masters Badges Descriptions 147
Hi, Community!
See the Key Notes videos from Global Summit 2017 with new InterSystems IRIS Data Platform announcement.

Is there a group for InterSystems IRIS? If not, can you create it?

Hi, Community!
The Global Summit 2017 Key Notes session will start in two hours at 9-00AM (PT).
Here is the link for live streaming.
Join!

I want to limit the length of the value of a textarea in Zen. In HTML the textarea element has a 'maxlength' attribute, but the Zen component doesn't have an equivalent property. Is there any way to add a maximum length in Zen short of creating my own custom component?
I am logged in and cannot seem to edit my background information and some other attributes.
What gives?
Most likely I am doing something wrong but any help would be appreciated.
Hi, Community!
Suppose If you develop a client js application which works with Caché server via REST API (CSP Gateway).
What are the options for Authentication and working with Caché session then?
I'm extracting text from HTML (more on how - here), and after I extract text it has two problems:
- Lot's of $c(10) control characters
- Multiple whitespaces
Here's an example of the text extracted from HTML page:
set text = " "_$c(10)_" "_$c(10)_" "_$c(10)_" "_$c(10)_" "_$c(10)_" "_$c(10)_" "_$c(10)_" "_$c(10)_" "_$c(10)_" "_$c(10)_" "_$c(10)_" "_$c(10)_" "_$c(10)_" "_$c(10)_" "_$c(10)_" "_$c(10)_" "_$c(10)_" "_$c(10)_" "_$c(10)_" "_$c(10)_" "_$c(10)_" "_$c(10)_" "_$c(10)_" "_$c(10)_" "_$c(10)_" "_$c(10)_" "_$c(10)_" "_$c(10)_" "_$c(10)_" "_$c(10)_" Word1"_$c(10)_" "_$c(10)_" "_$c(10)_" "_$c(10)_"

