Nova postagem

Encontrar

Artigo
· Abr. 7 1min de leitura

全角/半角混在文字列から指定された幅の文字列を取得する方法

これはInterSystems FAQサイトの記事です。
 

指定した文字列式のうち指定したフィールド幅(半角での文字数)に収まる文字数を取得する関数:$ZPOSITIONと、部分文字列を返す関数:$EXTRACTを組み合わせることによって、全角/半角混在文字列から、指定された幅の文字列を取得することが出来ます。
※$Extractは文字単位で処理を行いますので、全角/半角を区別した取り扱いはできません。

構文:

$ZPOSITION(<文字列式>, <フィールド幅>, <全角文字に使用するピッチ値(デフォルトは2)>)

$EXTRACT(<文字列>, <開始位置>, <終了位置>)


例:

//指定した文字列(str)のうち、全角=2/半角=1 の幅として、フィールド幅10(半角10文字分)に含まれる文字数を取得
USER>set str="あい1234うえお"
USER>write $ZPOSITION(str,10,2)
7
//指定した文字列(str)のうち、全角=2/半角=1 の幅として、フィールド幅10(半角10文字分)に含まれる文字列を取得
USER>write $extract(str,1,$zposition(str,10,2))
あい1234


$ZPOSITION、$EXTRACTの詳細については、下記各ドキュメントページをご確認ください。

ドキュメント:$ZPOSITION(ObjectScript)

ドキュメント:$EXTRACT(ObjectScript)

Discussão (0)1
Entre ou crie uma conta para continuar
Artigo
· Abr. 7 1min de leitura

インストールマニフェストを利用したアプリケーションのデプロイ

これは、InterSystems FAQ サイトの記事です。
 

InterSystems製品では、%Installerユーティリティによりインストール・マニフェストを定義することができます。これを利用することにより、複雑な構成設定を自動化することが可能になります。
これは特に、複数の同様なアプリケーションデプロイを行うときに大変有効です。

インストール・マニフェストの詳細については、下記のドキュメントページをご参照ください。
インストール・マニフェストの作成および使用

また、下記の トピックでも、詳しく記載されています。
%InstallerでInterSystems Cachéにアプリケーションをデプロイする
※記事ではCachéについて記述していますが、内容はIRISでも同様です。

Discussão (0)1
Entre ou crie uma conta para continuar
Pergunta
· Abr. 7

Trace de aplicação

Pessoal,

Poderia me informar se na plataforma InterSystems IRIS, existe uma ferramenta de trace de execução de comandos SQL, procedures entre outros, semelhante ao SQL Profiler? 

Grato,

4 Comments
Discussão (4)1
Entre ou crie uma conta para continuar
Resumo
· Abr. 7
Resumo
· Abr. 7

InterSystems Developers Publications, Week March 31 - April 06, 2025, Digest

Articles
#InterSystems IRIS
OMOP Odyssey - Vanna AI ( The Underworld )
By Ron Sweeney
Ask your IRIS server using an AI Chat
By Yuri Marx
Operate the database through dialogue
By lando miller
Hey chat, what's up with my Interoperability
By Dmitry Maslennikov
How to get server/instance info
By Kurro Lopez
Ask your IRIS classes with Ollama, IRIS VectorDB and Langchain
By Yuri Marx
Command the Crew
By Henry Pereira
Note about the StayConnected setting for TCP adapters
By Hiroshi Sato
Part I: Studying for IRIS Developer Professional Certification with the "Ask Developer Community AI"
By Yuri Marx
Part IV: Studying for IRIS Developer Professional Certification with the "Ask Developer Community AI"
By Yuri Marx
Part III: Studying for IRIS Developer Professional Certification with the "Ask Developer Community AI"
By Yuri Marx
Part II: Studying for IRIS Developer Professional Certification with the "Ask Developer Community AI"
By Yuri Marx
#InterSystems IRIS for Health
Announcements
#InterSystems IRIS
#IRIS contest
#Summit
#Developer Community Official
#Open Exchange
#Learning Portal
#Global Masters
Questions
March 31 - April 06, 2025Week at a GlanceInterSystems Developer Community