I'm trying to interpret a ObjectScript pattern and I am stumped on the first part. I understand everything else but not sure what 1.A means. I know A stands for Alpha characters just not sure what the 1. means
Hi,
This must be a really easy question but for some reason I am unable to do this
I have a string name = "ERRORMSG"
I want to remove the first 2 characters in the string, so the result should be string newname = RORMSG
Please can you advice on how I can do this?
The following code provides information about software builds. Read the original description below for information about the different methods:
Hello,
I have been trying to pull data through a linked server in SSMS from an InterSystems Cache Database for a while, this is to enable us to join the data to other source systems in our Data Warehouse.
I have set up an ODBC connection and a linked server to the database and can execute queries through OPENQUERY in Management studio, but the data is huge (> 100million rows). So when I execute a SQL query with a WHERE clause the query just spins.
Hi, Community!
This is a digest of the Developer Community postings in October 2018.
Most viewed
IRIS API Explorer Application 204
Global Summit 2018 Highlights 158
Configuring LDAP authentication in InterSystems Caché using Microsoft Active Directory 137
Running Cache Studio on Linux 124
Time Loop in Cache Object Script 120
InterSystems Global Summit 2018 Highlights 118
Profiling code using Caché Monitor 116
JSON array or JSON object? 115
Creating complex JSON objects and accessing elements within 113
InterSystems IRIS Example Reference Architectures for Google Cloud Platform (GCP) 97
Execute Server Commands from Caché / Ensemble / IRIS 95
How to Publish an Application on InterSystems Open Exchange? 91
Create a Node/Express BackEnd and connect it to IRIS in less you say 'Mississippi' 66
Configuring Apache to work with InterSystems products on Linux 61
Caché eXTreme for .NET - direct access to globals from C# 52
I am currently using InterSystems for patients data management related to intake treatment planning and delivery of dose.
should I create a new attribute to track Patient ID or using an existing attribute within Audit log ? what are the good practices guidelines?
If I use Event Data field to record Patient_ID is it possible out of the box to search entries for a specific Patient_ID ?
Hi Community!
See all the Key Notes videos from Global Summit 2018 in a dedicated Global Summit 2018 Keynotes playlist on DC YouTube Channel!

I'm trying to execute a nodejs process to perform some work on a string from Cache/Mumps over to nodejs, then return the result from nodejs as a string back to the code in Cache and I was looking at the `$ZF` logic - it will let me output the results to a file (i.e. temp.txt) but I dont see a way to just get the output set back to an M variable like (and I know this is not the correct syntax, but just for example)
S myOutput=$ZF(-100, "echo something") ;; wrong syntax but just for example
W myOutput ;; want to write out "something" but of course this doenst work
What is the difference between %ID and ID in a database table? Both seem to reference the same column labelled ID.
For context, I am trying to create a viewer class for an existing persistent class.
Let us call the persistent class A, with SqlTableName = OldA.
The viewer class will be B with SqlTableName = A and ViewQuery = {select %ID, <other fields> from <some other class with the same fields as A>}
In A, there exists a class query: select %ID from A. However, A fails to compile, giving an error: "Field '%ID' not found in applicable tables". If the %ID is replaced with ID, the class compiles.
Hi all,
I have a FTP.Inbounding service that read a file and move it to a other folder when it is processed. The problem is that is not working fine in SFTP server.
The code is coppied from How to - Customize Ensemble Settings article.
Hi Community!
I'm pleased to announce that InterSystems Developer Community reached 5,000 registered members!

Thank you, developers, not only for registering but rather for making this place more and more helpful for everyone who develops and supports solutions on InterSystems Data Platforms all over the world! Big applause to all of us!
We had our first meetup of the Prague Meetup for InterSystems Data Platform last Thursday!
As it was our first such venue, the attendance was not large, but we believe it was a good start. Those who attended could learn about new features that InterSystems IRIS brings to our partners and customers as well as listen to a presentation discussing what it takes to migrate from Caché or Ensemble to InterSystems IRIS and eventually containerizing their applications.
Where do I download the package cache-jdbc-2.0.0.jar. I'm trying to develop a java app that connects to a Cache Database to grab information? Thank you.
Hi All,
We are using BI tool for reporting which required to connect TrakCare system using JDBC Connection
Can some can assist with Jar file which is required for the connection or anyone did befoe?
Thanks,
Syam
Hi,
We are trying to write an external backup application to backup Cache Database. After going through the Cache DB documentation, we have found that in Backup.General class there are methods for creating snapshot (Freeze/Thaw) which is required during backup. Are there REST APIs for the same?
Also we have the option of selecting individual DB instances in the management portal. What are the methods/APIs of getting the DB list, so that user can select individual DB instances in an external backup application ? Do we have the methods/APIs to freeze/thaw the individual DB instances ?
Thanks!
Hi,
Any idea how to reference Header and Body properties of a message in a Routing rule?
I know how to address HL7 and AlertText – but I don’t know how to reference Header and Body properties directly!
(I want to do this because addressing properties directly is quicker than searching the text of the message.)
KR
Stephen
Continuing on with providing some examples of various storage technologies and their performance profiles, this time we looked at the growing trend of leveraging internal commodity-based server storage, specifically the new HPE Cloudline 3150 Gen10 AMD processor-based single socket servers with two 3.2TB Samsung PM1725a NVMe drives.
(Originally posted on Intersystems CODE by @Eduard Lebedyuk, 10/12/15) The following code snippet outputs all filenames in the file path "dir" in the Cache/IRIS terminal. The class method "test" runs the code:
Class eduardlebedyuk.filenamesInDir Extends %RegisteredObject
{
classmethod test() {
// replace dir with file path you want
set dir = "D:\directory"
set dir = ##class(%File).NormalizeDirectory(dir)
set file=$ZSEARCH(dir_"*")
while file'="" {
write !,file
set file=$ZSEARCH("")
}
}
}
HealShare 2017
Hi dev community,
I am currently working on an interface that needs to communicate to a SOAP/ITK endpoint.
I am using the EnsLib.ITK.AdapterKit.Operation.SOAPOperation to interface with an ITK
service, but it is proving to be more complex than originally expected to set up the web client
against that particular end-point since I haven't been provided with a WSDL from ITK service side as
the vendor state they are following the ITK standard and no WSDLs are needed.
Hi!
Is there any way to export a class package to xml file programmatically which will include all the classes of the package?
Attached code contains a very basic $system.WorkMgr example.
It uses several jobs (workers) to update different chunks of rows of a table.
Steps:
- Creates a table with 100 records.
- Split table in chunks
- Initialize WorkMgr and queue chunks to workers.
- Every worker simply sets its process number in the Job field of the processed row.
In this case, I have tested the example in a 8-core laptop:
Hi,
I would like to know if anyone has had some experience in building systems for multiple end-users.
To keep things simple, in a hypothetical example, say an Event Booking System, where a Venue could sign up to use such a system and define it's Venue, costs, calendars, etc.. and then invite their customers to book the Venue on different days/times.
If I wish to offer such a system to many Venues, there are a number of options available.
We have many sFTP business operations that work successfully. I just modified an existing one to point to a new IP and Port, as well as use new credentials (username and password only). When I attempt to sFTP a file, I receive the following error.
I'm trying to set up a webserver (Apache 2.4 on Windows 10) for a CSP application on a Cache which is not running on the same Computer.
My Problem is that in the csp-pages there is a declaration:
<link rel="stylesheet" type="text/css" href="/jbsscan/stylesheets/style.css"></link>
<script language="JavaScript" type="text/javascript" src="/jbsscan/javascript/javascriptScanner.js"></script>
I'm currently working on a project to run our medical device integration through ensemble.
I've noticed a potential problem with the volume of messages . The feed generates around 474K messages daily( average of 1 message per minute per device from 300+ devices).
We currently keep all our other feeds message data for 90 days and purge automatically. From what I can see is that the purge functions in Ensemble are production wide and cannot set it at the Business Operation, Service or Router level.
This code snippet contains the class method "test" which sends an HTML email. Change the literal strings in the method to customize the email's from address, to address, subject, and body:
Class objectscript.sendEmail Extends %RegisteredObject
{
classmethod test() {
set m=##class(%Net.MailMessage).%New()
set m.From="user@company.com"
set m.IsHTML=1
do m.To.Insert("user@company.com")
set m.Subject="Sent by IRIS mail"
set m.Charset="iso-8859-1"
do m.TextData.Write("<HTML><HEAD><TITLE></TITLE>"_$char(13,10))
do m.TextData.Write("<META http-equiv=Content-Type content=""text/html; charset=iso-8859-2""></HEAD>"_$char(13,10))
do m.TextData.Write("<BODY><FONT face=Arial size=2>Test <B>Test</B></FONT></BODY></HTML>")
set s=##class(%Net.SMTP).%New()
set s.smtpserver="mail.company.com"
set status=s.Send(m)
}
}
Here's a link to the code on GitHub
Hi,
The context of the rule set contains an ArrayOfDT(I've also tried Collection.ArrayOfDataTypes).
I need to access an element using its key in the rule set using the assign function. I've tried everything I can think of and searched the documentation, but can't find anything. It is probably very obvious.
Can you please help?
I am trying to find out when a Business Service was created, and by who. I have reviewed the audit trail and it doesn't appear that this information is actually logged there. I am hoping that this might be logged in a SQL table or global someplace. I have reviewed the SQL tables in that namespace and have come up empty. I thought it might be located in Ens_Config.Item, but that table is sparse.
Anyone know where this information might be logged?
Thanks, Jim


I was understanding the cluster configuration supported by the Cache. Have couple of queries around that:
1. In Cache version 2018.2, there is a shrading concept which splits the data of a Master Data server into multiple small data server which store shraded data.
How do we protect (backup and restore) such environment, should we also backup/restore the multiple small data servers along with Master data server. Any documentation around this will really help.
2. In case of Cache DB Horizontal scaling, we keep adding multiple Application and data servers - to ensure load balancing -