Questions tagged [mumps]

MUMPS is a high-performance, hierarchical NoSQL database with an embedded general-purpose programming/scripting language, originating in Massachusetts General Hospital in 1966 and widely used in healthcare and finance.

MUMPS, also called M, is a high-performance, hierarchical NoSQL database with an embedded general-purpose programming/scripting language. The MUMPS programming language, which dates back to 1966, provides transparent database access, weak typing, and late binding of named variables, as well as abstract I/O and very convenient string manipulation. MUMPS systems are spectacularly fast and very good at handling sparse data, but legacy MUMPS code can be very difficult for programmers educated in C-descended traditions to understand.

The two major MUMPS implementations today are the free (GNU Affero license), open-source, no-frills GT.M, and the commercial Intersystems Caché, which provides numerous extra features and extensions, including object-oriented language extensions and powerful reporting software. Notable MUMPS users include the US Veterans' Administration (for its VistA software), Epic Systems Corporation, GE Healthcare, Ameritrade, and Barclays Bank.

84 questions
1
vote
1 answer

Cache Object Script How to MakeDirectory FTP Class

In Cache Object Script how can I make a remote directory on an FTP Server. I do see the class MakeDirectory but that is returning 0 when I call it? set ftp=##class(%Net.FtpSession).%New() d ftp.Connect(COMServer,c.Username,c.Password) d…
Jefferson
  • 173
  • 2
  • 12
  • 32
1
vote
1 answer

How can I get the file extension

In MUMPS how can I get the file extension is there a class I can use? Class(%File).GetFilename that will return the Full Message name but i would just like the extension? Set tNameIn=##class(%File).GetFilename(pRequest.OriginalFilename)
Jefferson
  • 173
  • 2
  • 12
  • 32
1
vote
2 answers

How do we examine a particular job in GTM?

Just as we have in Intersystem Cache D ^JOBEXAM to examine the jobs running in background or scheduled. How can we do the same in GTM? Do we have any command for the same. Please advice.
Dhaval Shah
  • 9,042
  • 2
  • 14
  • 21
1
vote
2 answers

MUMPS $Functions in SQL Statements

Can $Functions like $Extract, $P be used in SQL statements? If they can, please provide and example. Ex Select $P(Field1,"*") from MyTable. This returns an error saying "A term expected beginning with either..."
user6284097
  • 157
  • 1
  • 1
  • 9
1
vote
1 answer

How to create a subroutine in MUMPS on Mac os X

I'm starting a project where I need to have some reading knowledge of MUMPs, the Massachusetts General Hospital Utility Multi-Programming System. I've managed to get it working on my OS X El Capitan computer. I can do some of the simple things,…
John Wooten
  • 685
  • 1
  • 6
  • 21
1
vote
5 answers

String Replacing

In your opinion what would be the best way to replace something in a string without using $R? I've written a global and I'm trying to replace PETER(s) with PAUL, but not use $R. Here's what iteration of what I thought would work, but it just…
M Noob
  • 19
  • 4
1
vote
2 answers

Non-Ugly Way Convert a MUMPS $H formatted date/time to an Excel 2016 date/time

I am looking for a non-ugly way to convert a MUMPS formatted $H ("63868,62327" is 11/12/2015 at 17:18:47) date/time into an Excel 2016 compatible format date/time format. I came up with the following, but it's…
1
vote
1 answer

How do I work with assumed variables using the Callin API?

I'm looking to create an application using the Callin API provided by InterSystems, but some of existing M code I need to use relies on assumed variables. How can I provide such state to the tags I call? (Note that if I add the variable as a formal…
Sean Allred
  • 3,558
  • 3
  • 32
  • 71
1
vote
2 answers

GT.M - Error while building source

I get GT.M source from : http://sourceforge.net/projects/fis-gtm/files/GT.M-x86-Linux-src/V6.2-002A/ Extract and do the steps in the README file ,but I get error on the following step : $ make After that command , error occurred…
Ryo
  • 995
  • 2
  • 25
  • 41
1
vote
1 answer

GTM-E-RPARENMISSING error when signing meds in CPRS / VistA

I have an instance of OSEHRA VistA set up using the Vagrant autoinstaller, and using an imported KIDS drug file following these instructions. Users with correct permissions are able to enter and save med orders in CPRS using entries from the drug…
1
vote
2 answers

How to call a COS when SET/KILL applied to a specific global variable?

How to call a Cache ObjectScript routine when SET or KILL is applied to a specific global variable?
1
vote
3 answers

Calling an M tag from .NET using Cache'

I'm trying to find a way to call a MUMPS tag ideally from VBA, but alternatively from .NET. I know that you can do "sql" commands using Intersystems' provided APIs, but how can I just do something like d ^MYROUTINE?
Xodarap
  • 11,581
  • 11
  • 56
  • 94
1
vote
2 answers

Assigning two items together from an array Objectscript/Mumps

Just wanted to ask whether there was a way to put together two items so for instance if I was generating 4 random shopping lists from a large list of 20 items which are all stored in my global(array) if I could divide this by 4 and randomly put…
user2653531
  • 58
  • 1
  • 6
1
vote
2 answers

JavaM API for GT.M - SELECT support

I'm wondering if there's any possible way how to use or implement SELECT query into JavaM API for GT.M database system. I'm using version 0.1, since I haven't found any other version ( https://github.com/Gadreel/javam/blob/master/README.md ). If…
JustUser
  • 91
  • 1
  • 7
1
vote
2 answers

Grouping an array

PLEASE...Help me group the values in this array I have a an array like this Arr(0) = 5 Arr(1) = ATC^1 Arr(2) = BTC^2 Arr(3) = ATC^3 Arr(4) = CTC^4 Arr(5) = BTC^5 The end result I want is to change Arr(0) to be 3 which are…
SMJ
  • 33
  • 4