新しい投稿

検索

質問
· 2024年10月3日

IRIS IDE limbo

Is it possible to install IRIS Studio as an evaluation, so I can use the built-in IDE? 

I have installed IRIS Community edition that does not come with a built-id IDE. 

Altelier website is down down.

VSCode with ObjectScript - tried to run simple MUMPS code and says not supported

4 Comments
ディスカッション (4)3
続けるにはログインするか新規登録を行ってください
記事
· 2024年10月3日 3m read

How to use the FreeSpace query of the SYS.Database class to check the free space on the disk where the database is located

InterSystems FAQ rubric

You can check the free disk space at any time using the system utility class: SYS.Database and query: FreeSpace.

Here's how to try it in the IRIS terminal (go to the %SYS namespace and then run it):

zn "%SYS"
set stmt=##class(%SQL.Statement).%New()
set st=stmt.%PrepareClassQuery("SYS.Database","FreeSpace")
set rset=stmt.%Execute()
do rset.%Display()

The output result example is as follows:

*In the command execution example, all databases are located on the same disk, so the free disk space (DiskFreeSpace) returns the same value.

Dumping result #1
DatabaseName    Directory       MaxSize Size    ExpansionSize   AvailableFreeDiskFreeSpace      Status  SizeInt AvailableNum    DiskFreeSpaceNum        ReadOnly
IRISSYS c:\intersystems\irishealth3\mgr\        無制限  159MB   システムデフォル           ト      18MB    11.32   245.81GB        マウント/RW     159     18      2517050
ENSLIB  c:\intersystems\irishealth3\mgr\enslib\ 無制限  226MB   システムデフォル           ト      19MB    8.4     245.81GB        マウント/R      226     19      2517051
   <一部省略>
IRISTEMP        c:\intersystems\irishealth3\mgr\iristemp\       無制限  51MBシス     テムデフォルト  49MB    96.07   245.81GB        マウント/RW     51      49251705           0
USER    c:\intersystems\irishealth3\mgr\user\   無制限  31MB    システムデフォル           ト      8.5MB   27.41   245.81GB        マウント/RW     31      8.5     2517050

If you want to specify the database directory you want to refer to, run the following:

//Use the $LISTBUILD() function to obtain the full path of the database directory you want to view.
set dbdir=$LISTBUILD("c:\intersystems\irishealth3\mgr","c:\intersystems\irishealth3\mgr\user")
set rset=stmt.%Execute(dbdir)
do rset.%Display()

If you want to get only the Database Name (DatabaseName), Current Size (Size) in MB, Available Space (Available) in MB, Free Space (Free), and Disk Free Space (DiskFreeSpace) in a specified database directory, follow the steps below (create a routine/class in VSCode or Studio while connected to the %SYS namespace and write the code).

Class ZMyClass.Utils
{
ClassMethod GetDiskFreeSpace()
{
    set dbdir=$LISTBUILD("c:\intersystems\irishealth3\mgr","c:\intersystems\irishealth3\mgr\user")
    set stmt=##class(%SQL.Statement).%New()
    set st=stmt.%PrepareClassQuery("SYS.Database","FreeSpace")
    set rset=stmt.%Execute(dbdir)
    while(rset.%Next()) {
        write rset.%Get("DatabaseName")," - ",
        rset.%Get("Size")," - ",rset.%Get("Available")," - ",
        rset.%Get("Free"),"% - ",rset.%Get("DiskFreeSpace"),!
    }
}
}

 

NOTE: If you place user-defined routines or classes in the %SYS namespace, creating them with names beginning with Z ensures that the user-defined source code remains available after an upgrade installation.

An example of execution is as follows.

USER>zn "%SYS"

%SYS>do ##class(ZMyClass.Utils).GetDiskFreeSpace()

IRISSYS - 159MB - 18MB - 11.32% - 245.81GB
USER - 31MB - 8.5MB - 27.41% - 245.81GB

%SYS>
ディスカッション (0)0
続けるにはログインするか新規登録を行ってください
質問
· 2024年10月3日

Create - and use - custom setting in BPL

I try to add custom setting in BPL process by adding parameter SETTINGS = "Scope" and property Scope As %String. But how do I access instance property in BPL process? I get error that method or property Scope is not found.

2 Comments
ディスカッション (2)2
続けるにはログインするか新規登録を行ってください
お知らせ
· 2024年10月3日

InterSystems Global Masters - Bienvenido de nuevo (Beta)

Hola Comunidad, 

¡Global Masters abre las puertas!

Inicio de sesión mediante InterSystems SSO

Acceded a la plataforma mediante >> [este enlace] << e iniciad sesión con vuestro SSO de InterSystems.

Por favor, tened en cuenta esto: durante pruebas recientes, descubrimos que algunos de vosotros estáis encontrando errores al intentar iniciar sesión de esta manera. Actualmente estamos investigando el problema con el proveedor. Si experimentáis este error, simplemente enviadme un mensaje directo, y os enviaré una invitación manual.

Descargo de responsabilidad BETA

Tened en cuenta que esta sigue siendo una versión BETA y estamos trabajando activamente en segundo plano para mejorar muchos aspectos del programa. Si encontráis algún problema con el acceso, vuestro perfil, o detectáis algún error, no dudéis en enviarme un mensaje directo.
 

ディスカッション (0)1
続けるにはログインするか新規登録を行ってください
お知らせ
· 2024年10月3日

InterSystems Global Masters - Welcome Back (Beta)

Hi Community, 

Global Masters opens the doors!

Logging in using InterSystems SSO

Access the platform using >> [this link] << and log in with your InterSystems SSO.

Please note: during recent tests, we discovered that some users are encountering errors when trying to log in this way. We’re currently investigating the issue with the vendor. If you experience this error, just ping me via DM, and I will send you a manual invitation!

BETA Disclaimer

Please note that this is still a BETA version, and we’re actively working behind the scenes to improve many aspects of the program. If you encounter any issues with access, your profile, or spot any errors, feel free to send me a direct message.
 

11 Comments
ディスカッション (11)4
続けるにはログインするか新規登録を行ってください