Hi,
First of all, do Cache instance and databases have UUIDs? If so, is there a simple way to obtain these from command line?
Thanks,
Raghu
InterSystems Caché is a multi-model DBMS and application server. See more details here.
Hi,
First of all, do Cache instance and databases have UUIDs? If so, is there a simple way to obtain these from command line?
Thanks,
Raghu
I have a property, Emails, that needs to contain a list of comma-delimited values, or "". Is there a benefit to making this property a list of %String, a Collection[list] (or however you do it), an array, or anything other than a simple %String type?
I just need to store some values, and return these values in SQL -- so it needs to be SQL compatible. I don't need to index the values or use individual values in the SQL statement (e.g. Select * from table where emails [ "email@co.com" -- I don't need to do this, although maybe this would work anyway if it's of type %String).
Hi, is possible rewind results of %SQL.StatementResult?
I not find a solution.
Amongst the large fonts and chunky icons of Portal's pages, the Menu button in the top left corner is easily overlooked:

When clicked, it often produces the following menu:

When I remember it's there, I find the "View Console Log" option particularly handy.
I wrote "often" above because I've also noticed that the Menu contents change when I'm on a page within the Ensemble section of Portal:

Maybe the contents are context-sensitive elsewhere too and I just haven't noticed yet.
Until recently I didn't pay much attention to Portal's home page:

If it's not showing when you initially launch Portal you can easily jump to it using the button / tab at the top of the left-hand column of options. And later during your session, get there via the Home link that will be visible at the top of every page.
On the Home page the "Recent" section is automatically maintained for you.
To use the "Favorites" section you need to tag your favorite pages. Suppose I want to add the production monitor page as a favorite. Here's how:
1. Navigate the menu to find the link for the page you want.

2.
We've been noticing that we're getting this (https://community.intersystems.com/post/cach%C3%A9-sql-error-odbc) error more frequently and having to constantly purge cached queries in order to resolve it. Is there a way to avoid the issue in the first place?
thanks!
Hi All, When i try to run the CSP from Studio it shows "Server Availability Error" and management portal and documents also throw a same error.how to recover it.
The following code in .Net using CacheObject.dll version 2016.1.2.206 com library
ConnectionString = "cn_iptcp:10.56.135.160[1972]:PHDEMO:PHSYSADM:***********"
b = factory.Connect(ConnectionString )
objCacheObject = factory.Static("CacheObjectConnection")
clist = factory.GetConnectionList()
for the above code, b is true and clist is Local,cn_iptcp:127.0.0.1[1972]:
Why isn't the 10.56.135.160 in the connection list? Next the program runs a function written an early version of Cache.
IO devices can be assigned to a mnemonic space using, for example:
u device::"^%X364"
Is there a method that will return the assigned mnemonic space for the current device?
I can infer it by attempting to write to the device using a non existent write /mnemonic and then inspecting the error returned, but this is rather messy and could potentially affect the status of the device. For example:
USER>u 0::"^BAR" USER>w /foo <NOLINE>^BAR USER 2d0>
Is there a method or system variable that will give me this information in a cleaner manner?
Thanks
George
www.georgejames.com
What is the difference between $case and $select?.Where places to use $case and $select?
I have a web application with html, css, js files (no ZEN/CSP).
Problem: after I update them on a server, Caché still servers old and cached version (browser Cache is disabled).
There is a manual cache purge in Gateway Settings, of course, but is there an automatic solution?
I'll be okay with disabling cache server-wide, but an application-wide solution would be better.
I don't want to host web app on a separate web server.
Here's my web app config:

For reasons that I won't go into here, I need to run Cache Terminal in Linux using Wine.
It starts up ok, but when I try to establish a connection to a remote server I get the following error:
Ctermsecure Read Error Could not obtain terminal server client name. Reason: (10035, 0x2733) unknown error
If I launch CTerm.exe from a command line then I get the following:
~/.wine/drive_c/InterSystems/Cache/bin $ wine CTerm.
In last week's discussion we created a simple graph based on the data input from one file. Now, as we all know, sometimes we have multiple different datafiles to parse and correlate. So this week we are going to load additional perfmon data and learn how to plot that into the same graph. Since we might want to use our generated graphs in reports or on a webpage, we'll also look into ways to export the generated graphs.
The perfmon data extracted from standard pbuttons report is a bit of a peculiar data format. On first glance it is a pretty straightforward csv file.
I created a new class DSW.Addons.htmlViewer:
Class DSW.Addons.htmlViewer Extends %DeepSee.Component.Portlet.abstractPortlet
{
Property Data As %String;
ClassMethod %OnGetPortletSettings(Output pInfo As %List, ByRef pSettings) As %Status
{
Kill pInfo
Set pInfo(1) = $lb("Data", , , "Data", "Data setting")
Quit $$$OK
}
}It's a ZEN component and DeepSee portlet. It's immediately available in the namespace I created it in. DSW package is mapped to %ALL and to Samples, but if I try to create a widget with this portlet I get ZEN class not found error.
Hi
I created a jdbc connection in the Caché 2010.2.3 with SQLServer 2008R2.
The connection to this DB works correctly. (Conection Sucess)
I try to perform table binding but this connection, even though it is successful, does not load my tables and schemas.
I did the same test on Caché 2015 , with same jar drivers files and works perfectly!
Any idea?
Caché 2010.2.3
Red Hat Enterprise Linux Server release 6.2 (Santiago)
java version "1.7.0_09"
Caché 2015
Red Hat Enterprise Linux Server release 6.2 (Santiago)
java version "1.7.0_09"
I have the following query which tells me how many documents were retrieved for each customer, but it only works for the "on-demand" customers:
All the other PatientFacility's show up as "Documents".
If I were trying to access an index of a global variable, what time complexity would this operation have? My understanding of languages like Java/C++ is that arrays are stored as blocks of memory so that x[15] would have a lookup time complexity of O(1) because it just goes to (address of the array + 15) and retrieves the value stored there.
How does this work in Cache where the index of a variable isn't necessarily an integer value? If I were to have a variable like the following:
x("Adam") = "Red"
x("George") = "Blue"
x("Bryan") = "Green"
etc.
We know there are numerous ways to backup cache/ensemble with VMware, but we are not in a state to do that and can't do shadowing because the lack of resources. Anyways how can i backup cache to a drive mounted as network share.
This is the second part of my long post about package managers in operating systems and language distributions. Now, hopefully, we have managed to convince you that convenient package manager and rich 3rd party code repository is one key factor in establishing of a vibrant and fast growing ecosystem. (Another possible reason for ecosystem success is the consistent language design, but it will be topic for another day.)
In this second part we plan to discuss the practical aspects of creating a package manager in general and their projection to the Caché database environment.
Hi ,
i installed and configure the cache odbc ODBC-2016.1.1.107.0-lnxrhx64.tar in centos7.
it connected while executing in terminal .(i.e isql -v DSN)
odbc_connect work in executing php shell script in terimal.
but odbc_connect not working in PHP web applcation.
Thanks,
Prabakran A.
Hi!
I'm using Caché JDBC driver to store, retrieve and some other operations. I have another question, "Is there any possible to execute the cache commands using JAVA".
Thanks
Hi,
I have downloaded an evaluation copy of Cache and installed on a Windows 2016 R2 machine. I wanted to Configure different locations for DAT, WIJ, and Journal files but the installation process didn't give me such a "custom" option. I do see that the installation guide mentions the presence of such an option so I am wondering if this is a limitation of evaluation copies. Can someone please confirm?
Hi all,
Is there any bcrypt algorithm on HealthShare? We are trying to use it but ww couldn't find it.
Regards
Back in my COBOL days, there was a utility that would analyze running COBOL code and expose bottle necks and those modules that were inefficient or were executed multiple times. This was to help the programmer know where to concentrate streamlining efforts.
Is there any such utility for Caché Routines?
I am in the planning stages of making things more uniform in our routines and I would like to know what the easiest way would be to include an .inc at the beginning of each .mac routine. Has anyone written something that would open all routines and place something into the first row while leaving the rest of the routine unchanged? Thanks for any guidance you all may provide.
Points to remember before you start:
Well I want to set the type of a piece in a global as a String, because when I use float numbers , the system parse them to numbers instead of use like strings and thats a little bit tricky with the sorts
Here is a code example:
ACB>s ^a("1.0012")=""// that is going to be stored as a number
ACB>s ^a("1.0011")="" // that is going to be stored as a number
ACB>s ^a("1.0010")="" // that is going to be stored as string
ACB>zw ^a
^a(1.0011)=""
^a(1.0012)=""
^a("1.0010")=""
I want to predefine the behaviour setting the type of this piece as String to solve this "behaviour"
thanks in advance
I want to override getter for a serial property as a whole, because getter code depends on a class in which a property is defined.
Let's say I have CS.Serial as a serial class:
Class CS.Serial Extends %SerialObject
{
Property Year As %Integer;
Property Month As %Integer;
}And CS.Persistent as a persistent class:
Class CS.Persistent Extends %Persistent
{
Property data As CS.Serial [ SqlComputeCode = {set {*} = ##class(CS.Persistent).dataGetStatic()}, SqlComputed, Transient ];
/// data getter method in object context
Method dataGet() As CS.Serial
{
return .The class %Compiler.UDL.TextServices arrived in 2015.1, bringing us methods for exporting a class in UDL format (i.e. looking just like we're used to seeing it in Studio), and importing a UDL format definition back into a namespace. Some source control tools including our Deltanji are now able to use UDL format, resulting in diffs that are easier to understand.
Per the information at http://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY… I am trying to use a call to $ZF("GETFILE") to obtain information about an OpenVMS file. But I get an <ILLEGAL VALUE> error.
For example:
w $zf("GETFILE",filename,"UIC")
reports:
My filename variable contains the full path and name of a file that I own. I hold the %All role in Cache.
This is 2012.1.5 on OpenVMS/IA64 V8.4
Any ideas what's going wrong?