In computer science, a programming language is said to have first-class functions if it treats functions as first-class citizens. This means the language supports passing functions as arguments to other functions, returning them as the values from other functions, and assigning them to variables or storing them in data structures. Some programming language theorists require support for anonymous functions (function literals) as well. In languages with first-class functions, the names of functions do not have any special status; they are treated like ordinary variables with a function type.
This post continues the article “Declarative development in Caché”.
[2, 3, 5, 7, 11, 13, 17].forEach(function(i) {
console.log(i);
});How to do something like this in Caché using COS?
Below are some exercises on this topic.
Hi Everyone,
I want to get current day name in cache. Does anyone know how to do that?
Hi, Community!
Please welcome a new session recording from Global Summit 2017:
Building Effective Analytic Data Models
Does anyone in the developer community have experience implementing a customized SDA3 container within HealthShare? There is a course on the learning site (ISC1086) that discusses how to do this, but it's currently listed as "coming soon" and I'm hoping to find some documentation.
I've followed the documentation for customizing the SDA3 container, and my container class with its custom streamlets is working as expected. The new streamlets are getting attached to the container along with Patient, Encounter, etc. before being sent to ECR / MPI update managers, and the custom streamlets are being
I have a process that I am trying to duplicate from SQL Integration Services (SSIS) into Ensemble so that the rest of my team can help support any issues that may happen.
This particular job creates multiple dictionary files, but for each one of the dictionary files it creates, it also creates a control file that tells the vendor what to process.
So example....I have a result set that is written to a.txt but I also need to create aa.ctrl, then I will have a b.txt and need a b.ctrl.
Using only one EnsLib.RecordMap.Operation.BatchFileOperation for the control files, is it possible to pass the Fi
Is there a way to get one of:
- Struct
- $lb
- Subscripted local variable
- List/array
As a return type from callout call?
And related question: is there a way to return several values (which may contain commas) from one callout call. Or rather what's the best approach when doing that?
Hi All,
Am getting the following error while try communicate with one ensemble from another ensemble using SOAP Adapter
ERROR #5002: Cache error: <TRANSLATE>zRead+195^%Net.HttpRequest.1
Any suggestions on this?
Thanks,
Dinesh
Hi, community
i've a problem with my production , it works since two months ago , today i can't start it , i don't know where is the problem !!!!
I enclose here screenshots for my production configuration .
thank's 
Hi,
a Customer of ours comes up with a requirement to improve an existing email business service within one of his ensemble productions. The services fetches emails from a mailserver on a daily basis and extract attached files from this email and send them along with some meta information through the production.
The sender of the email uses email signatures (which is embedded as smime.p7s). This gives us some problems when consuming this email. As a temporary workaround the email server forward the email to itself to remove the signature (which isn´t embedded when emails are forwarded). To get r
Hi, Community!
In the second part about DeepSee Web, I’ll describe what customization options you have with DSW.
There are two types of customizations: widget customization and dashboard panel customization.
Example of dashboard customization on Developer Community analytics.
I have a HL7 schema listed within Healthshare that is marked as 'Standard' however this doesn't appear to not a standard schema and more of a custom one created (there are very specific Z segments within it) that has somehow been marked as a standard. Is there a way to change it from a Standard to Custom? I realise that this cannot be completed within Healthshare but is there a way to change this within Studio?
Thanks
We have 1lakh records in table and while using sql select statement , it is taking more than 9mins to 12 mins to get the records. could you please how to optimize this performance issue if we have more records. how to optimize it.
Hi guys,
is there a way to get the Call-Parameter in an UrlMap to call a method that lies in another class?
Example:
I have a generic class 'RestApi' where I define all my routes for the different Rest-Services I offer - in order to get the same URL for every service.
<Route Url="/checkUID/:uid/:supplierid/" Method="GET" Call="checkUID"/>
This way the checkUID-Method has to be in the class 'RestApi' where my routes are defined. If I dont want to have all methods implemented in the same generic class, is it possible to get the Call-Parameter to call for example the method 'checkUID' i
Hi, Community!
Consider you move data from one server to another or make a deployment with persistent data. What do you do with index globals?
Is it always better to rebuild them or there are some cases when it worth to take them too?
Hi, Community!
Please find a new session recording from Global Summit 2017:
Building Durable APIs: New REST Tooling
Hi Guys,
Can you please guide me to get rid of this issue. Please find the image files with this post.
Please let me know, before we are developing an API what are all the setup/Configuration(Apache/web server) need to do in my machine.
If any lead would be appreciated.
I don't know, in XMLNamespace parameter which URL need to use.
.
Thanks,
Arun Kumar Durairaj.
DB Intersystems size = 635 gb, while backup size = 669 gb. Cache version is 2013.1
I am using cache for Cobas infinity IT solutions for medical lab information system.
Any idea why is this happening? When the DB was smaller, the backup was less in size. but later I noticed this issue
thanks
Yasser
Hi All, Can you please tell me how to get the Size of the Global Subcript. In Cache 2016 - they are using ##Class(%GlobalEdit).GetGlobalSizeBySubscript() For Older version how to get the GlobalSize of the Subscript. Because the method is not exist in Older Versions and all.
Hi, folks!
Suppose you have a Caché class with %String property which contains relatively large text (from 10 to 2000 symbols).
The class:
Class Test.Duplicates Extends %Persistent
{
Property Text As %String (MAXLEN = 2000);
}And you have thousands of entries.
What are the best options to find entries which are duplicates on this property?
Hi, Community!
This post is a digest of the Developer Community postings in November 2017.
Most viewed
Announcement: Atelier Is Only Available as an Eclipse Plugin 376
Advent of Code 2016 Day1: No Time for a Taxicab 194
Where is the equivalent of INSPECTOR in Atelier ? See ! 164
How to find duplicates for a large text field in Caché Objects? 160
Atelier 1.1 Beta Updates – October 2017 144
DeepSee Web: InterSystems Analytics Visualization with AngularJS. Part 1 133
What are all the ways an Object Property can be expressed? 127
The 'unlimited' UNIQUE index 126
How to get the Size of the Global Subscript 124
Software-Defined Storage and Containers 104
Summary on Local Variable Scoping 100
How long does it take to encrypt a database? 96
... but let’s first look at error handling.
Hi folks!
Is there a one line command to map class package A to Namespace ASPACE?
Hi, Community!
Today there are two main settings for your email notification subscriptions.
1. Subscribe to all new posts, all comments, all answers
You can do it in your subscription settings in the Content Types. Click on My Account, go to Subscriptions and click on Content types tab:
In this case, you'll get only one notification for every new article or question posted on DC and every answer and comment if you checked this option.
Here are some recipes with this option.
1. Receive all the new posts notifications (without answers and comments in it):
Turn on Post checkbox.
2. Receive all the new

In short, I wanted to react on CPUusage warnings and alerts with my own actions. It seemed that it was possible in my Caché version (2015.1):
http://docs.intersystems.com/cache201513/csp/docbook/DocBook.UI.Page.cl…
But all my attempts silently failed. Callback code was as simple as possible:
Class %z.Monitor.Health Extends SYS.Monitor.Health.AbstractCallback{/// This method is called for every Health Monitor sensor reading.<br>///...
Method Callback(type As %Integer, sensor As %String, value As %String, mean As %String, sigma AsOn the "General" tab of the Rule Editor there's a field called "Production Name". The doc says (my emphasis):
The name of the production in which you expect to use this routing rule.
Does anyone know where this value is used?
Is it safe to set this field blank?
Greetings.
We have one vendor who requires us to send data using TCP
through an SSH port forwarding tunnel that is set up in advance.
UNIX scripts maintain this, and the Ensemble interface uses a TCP Adapter.
I was thinking that Ensemble could maintain the SSH tunnel,
which would improve our detecting of issues.
Has anyone done something like this?
I see that the class %Net.SSH.Session has a method ForwardPort,
but it doesn't stand up the tunnel by itself. Instead, it appears
to return a handle into the tunnel. It will work a bit differently.
Thanks
Seth
• meth
I have list of business services in my ensemble production.
Often, my business services which are in green color turns to red color and asking for update and restart the services.
I would like to know, how to identify which business services are turned to red color.
Help me restart the service individually by code.
Thanks,
Ashok
Hi,All,
I did a small coding for the HTTP request and HTTP response. When i tried to use a server with ping i was able to get a response from the HTTP request. But when i tried the same with HTTP response i am getting a empty value in the response why is that?
Thanks in advance.
aa=$zwc(411,1,1,3)/*$bit(1,3,5)*/
bb=$zwc(403,1,0,2)/*$bit(1,3)*/
Is there a handy function to test wether one bit string is covered by another one bitstring? For example, "bb" is covered by "aa".
I currently implement this by one AND operation and then do a bitcount, I just want to know any default function is already out there.
Thanks.

