
IBM i 開発者向け! VSCode拡張機能 #6VSCode Extensions for IBM i Developers! #6
匿名の公開いいねです。記事の保存・お気に入りではなく、Featured、Top 3、重要度、掲載順位には影響しません。仕組みとプライバシーAnonymous public likes are reactions, not saved articles or bookmarks. They do not affect Featured, Top 3, importance, or listing order.How it works and privacy
- IBM i DSPF Screen Designerは、CNTFLDの長方形入力を編集、Excel出力、重なり検査に反映し、AUTOをCHECKの別表記として元の記述を保ちます。
- 既存DDS資産をVSCodeで安全に保守したい開発者に役立ちます。
IBM i DSPF Screen Designer adds CNTFLD layout, Excel export, and overlap checks, while handling AUTO as a CHECK alias without rewriting it, helping developers maintain legacy DDS safely.
本ページの本文と要約は AI による自動生成です。日本語版と英語版は言語ごとに独立して生成されるため、表現や詳しさが異なる場合があります。正確性は元記事 (qiita.com) をご確認ください。The body and summaries are AI-generated independently for each language, so wording and detail may differ. Verify accuracy at the original source (qiita.com).
要約と収集メタデータに基づく AI 解説。元記事全文の転載・翻訳ではありません。AI explainer based on the summaries and collected metadata, not a copy or translation of the full source article.
画面設計の拡充
IBM i DSPF Screen Designerは、IBM iのディスプレイファイル(DSPF/DDS)をVSCode上で視覚的に確認・編集するための拡張機能です。対応キーワードと編集機能が拡充され、CNTFLDやAUTO、COMPを扱えるようになりました。
CNTFLDの編集
CNTFLDは、1つの入力フィールドを「桁幅×行数」の長方形入力フィールドとして扱うキーワードです。フィールドプロパティから継続入力の桁幅を指定でき、画面イメージだけでなくExcel出力でも長方形として反映されます。
2行目以降が実際に画面を占有することも考慮され、他の項目と重なった場合は「配置の警告」で検出されます。新規作成時に加え、既存ソースを読み込んだ場合も、仕様に合わない指定が検証結果へ表示されます。
AUTOの保持
古いDDS資産で使われていることがあるAUTOは、単なる未対応キーワードではなく、IBM iの仕様に合わせてCHECKの別表記として扱われます。AUTOを含むDDSをインポートすると、プロパティ上ではCHECK(RZ)相当として編集できます。
一方、読み込んだAUTOが自動的にCHECKへ書き換えられることはありません。新規設定では基本的にCHECK表記を使用しつつ、既存DDSでは意味に加えて元の書き方もできるだけ保持する設計です。
COMPの比較検査
入力フィールドの比較検査を行うCOMPにも対応しました。フィールドプロパティで演算子をプルダウンから選択し、比較する値を入力できます。なお、COMPのエラーメッセージを差し替えるCHKMSGIDは、現時点では編集対象外です。
IBM i DSPF Screen Designer
IBM i DSPF Screen Designer is being developed to visually inspect and edit IBM i display files, including DSPF and DDS, in VSCode. Its expanded keyword support and editing functions are intended to help developers maintain existing DDS assets safely while preserving their original form where possible.
The latest operating manual adds or strengthens several capabilities that were not covered sufficiently in earlier articles. These include layout handling for CNTFLD, validation when creating or importing specifications, support for AUTO as an alternative notation, and comparison checks using COMP.
CNTFLD
CNTFLD treats one input field as a rectangular input area defined by digit width multiplied by the number of rows. In DSPF Screen Designer, the continuation-input width can now be specified through the field properties.
The rectangular layout is reflected both in the screen image and in Excel output. Because the second and subsequent rows occupy actual screen space, the designer also considers them when detecting overlaps with other items. Any such conflict can be reported through placement warnings.
The designer validates relevant specifications not only when a field is newly created, but also when existing source is loaded. Settings that do not comply with the specification are shown in the validation results.
AUTO as a CHECK alias
Older IBM i DDS assets may use AUTO. Rather than leaving AUTO as an unsupported keyword, the designer handles it as an alternative notation for CHECK in accordance with IBM i specifications.
When DDS containing AUTO is imported, it can be edited through the properties as the equivalent of CHECK(RZ). However, the imported AUTO notation is not automatically rewritten as CHECK. New settings generally use CHECK notation, while existing DDS retains its original wording as far as possible.
COMP
The designer also supports COMP for comparison checking on input fields. In the field properties, the operator can be selected from a pull-down control and the comparison value can be entered.
CHKMSGID, which replaces the COMP error message, is currently outside the scope of editing.
ポコとTECHガイドPoko & TECH Guide
ポコと当サイトのTECHガイドが、記事の要約と収集した情報から読みどころを語るAI生成の対話です。Poko and TECH Dashboard's own TECH Guide discuss the article's highlights in an AI-generated conversation based on its summary and collected source details.
- ポコPoko仕事で古いDDSの画面を直すとき、普段の保守作業は何が変わるの? VSCode上で扱いやすくなるってこと?When updating an old DDS screen at work, what changes in the usual maintenance process? Does it become easier to handle in VSCode?
- TECHガイドTECH Guideこの記事では、CNTFLDという長方形の入力欄を視覚的に編集でき、Excel出力や重なり警告にも反映されるのじゃ。The article says you can visually edit CNTFLD rectangular input areas, with their layout also reflected in Excel exports and overlap warnings.
- ポコPokoそれって前はできなかったの? 古いDDSにあるAUTOの扱いも変わったのかな?Was that not possible before? And did the handling of AUTO in older DDS files change too?
- TECHガイドTECH Guide今回紹介された更新で、CNTFLDの桁幅編集などが加わったのじゃ。AUTOはCHECK相当で編集できるが、元のAUTO表記は勝手に変えないぞい。This update adds features such as editing CNTFLD width. AUTO can be edited as the equivalent of CHECK, while its original spelling remains untouched.
- ポコPokoへえ、すごい! 長方形の入力欄を確認しつつ、古いDDSの書き方も守って保守できるのが一番の収穫だね。Oh, nice! The biggest win is being able to check rectangular input areas while preserving how the old DDS was originally written.
- TECHガイドTECH Guide次に押さえるなら、COMPは演算子と比較値を編集できる一方、CHKMSGIDは現時点で編集対象外という境界じゃのう。One more detail to note: COMP supports editing operators and comparison values, while CHKMSGID is currently outside the editable scope.





