Visual COBOL 5.0 の新機能

.NET Core Support

Back to Top

.NET Core is an open-source development platform that supports multiple operating systems. You can now use Visual COBOL to develop a COBOL application then publish it to be deployed on .NET Core.

The following project templates for .NET Core applications are available - Class Library (.NET Core) and Console App (.NET Core).

COBOL のフォーマット

上へ戻る

エディターで独自の設定や基準に応じて COBOL コードを再フォーマットできるようになりました。[Tools > Options > Text Editor > Micro Focus COBOL > Formatting > Indentation] (Visual Studio) で設定できる構成オプションに基づいてインデントが設定されます。

COBOL のフォーマットの機能は、[Edit > Advanced] メニュー (Visual Studio) から利用できます。

コード分析

上へ戻る

コードについての次のビューを作成できるようになりました。

  • Program Flow Graph - COBOL プログラムの全体の構造を節と段落を表すノードを使用して表示できます。ノード間にあるプログラム フローに影響する PERFORM 文は、ノードを結ぶリンクで表されます。[Program Flow Graph] ビューには他のプログラムの外部呼び出しも表示されますが、それらを展開することはできません。ノードにカーソルを合わせると、該当する節または段落を表すコードがツールチップに表示されます。ノードまたはノードを結ぶリンクをクリックすると、コード エディターでソースの該当する位置に移動し、プログラム内をすばやく簡単に移動することができます。
  • Data Flow Analysis Tree - データ項目を選択し、その値がどのような要因で変化するかや他のデータ項目にどのように影響するかを静的にトレースできます。

Enterprise Server Common Web Administration

Back to Top

注: This feature is in Early Adopter Program (EAP) release status.

Visual COBOL now includes a new Enterprise Server Common Web Administration interface (ESCWA). ESCWA is a web user interface and server for modern administration, monitoring and control of Enterprise Server. It offers improved usability that consolidates the different Enterprise Server user interfaces so that native and managed regions, and security stores can be managed in one place. Features include:

  • Administering directory servers across multiple hosts.
  • Monitoring and control of Enterprise Server instances.
  • Configuring and administering a security store, defined in an LDAP-compatible security manager such as Microsoft Active Directory or OpenLDAP.
  • Administering the Scale-Out features - enable you to specify logical groups of Enterprise Server instances, and configure and run Performance Availability Clusters (PACs) and their related Scale-Out Repositories (SORs).
  • Administering, monitoring and control of Enterprise Server for .NET regions and listeners.
  • The use of current web frameworks that have a greater focus on security.
  • (Included with 5.0 Patch Update 2 ) - support for Enterprise Server XA, MQ and PL/I configuration and monitoring. This includes support for XA resources, configuring MQ, Listeners and Writers, PL/I, MFCS console, Region Trace options, displaying the current ESMs on logon page and Local/loopback connections warning changes.

COBOL 言語の機能拡張

上へ戻る

COBOL 構文の強化点は次のとおりです。

  • ISO2002 条件付きコンパイル - 条件付きコンパイルのメカニズムが追加され、ISO2002 条件付きコンパイル方式が使用可能になりました。これは、Enterprise COBOL 6.2 に対するサポートの一部として実装されています。

    次のコンパイラ指令文がサポートされています。

    >>DEFINE
    >>IF/>>ELSE/>>END-IF
    >>EVALUATE/>>WHEN/>>WHEN OTHER/>>END-EVALUATE
  • JSON PARSE 文を使用すると、JSON テキストを COBOL データ形式に変換できます。これは、Enterprise COBOL 6.2 に対するサポートの一部として実装されています。
  • async および await 構文 (.NET COBOL のみ) - .NET COBOL で async および await 構文を使用した非同期プログラミングがサポートされます。
  • INSPECT 文 - INSPECT...CONVERTING 文のパフォーマンスが改善されました。特に、source-alphabet が長い場合のパフォーマンスが向上しています。
  • SET の移植可能な構文として set[string] がサポートされるようになりました。

コンパイラ指令

上へ戻る

このリリースでは、次のコンパイラ指令が新たに追加されました。

ILNORMALIZENAMES
プログラムを .NET または JVM COBOL にコンパイルするときに正規化されるプログラム要素を決定します。この正規化では、生成されたクラス ファイルの名前に含まれるすべての $ および - (ハイフン) 文字が _ (アンダースコア) 文字に置き換えられます。

統合トレーシング機能 (CTF)

上へ戻る

このリリースの強化点は次のとおりです。

  • 動的 CTF - トレースしているプロセスの外部から動的に CTF を構成できるようになりました。

    新しいコマンド ライン ユーティリティ cblctd の使用 - CTF トレースがすでに有効になっている実行中のアプリケーションのトレース イベントを変更できます。トレース レベルを変更したり、トレース対象のコンポーネントを追加または削除したりできるほか、有効になっているエミッターの構成も可能です。

    さらに、Micro Focus ネイティブ データベース ファイル ハンドラーのアクティビティをトレースするために、mf.mfdbfh というコンポーネントを新たにトレースできるようになりました。

データファイル ツール

上へ戻る

このリリースの強化点は次のとおりです。

  • データファイル エディタに、2 つのデータ ファイルの内容を並べて比較できる [Compare Files] ツールが追加されました。
  • 構造ファイルとそれに含まれるレイアウトをデータファイル エディタで作成できるようになり、レイアウトを管理するためにクラシック データファイル ツール ユーティリティを使用する必要はなくなりました。
  • エンタープライズ サーバー リージョンに格納されている VSAM データセットへの接続で、現在のセッションの間はアクセスに必要なパスワードを格納できます。
  • アーカイブ スプール ファイルのマージ プロセスを使用して、1 つのスプール ファイルにマージされたアーカイブ JES スプール ジョブを表示できます。
  • [Duplicate Record] オプションを使用して、索引ファイル以外のファイルのレコードをすばやく複製できるようになりました。

データベース アクセス

Back to Top

Enhancements are available in the following areas:

OpenESQL ADO.NET Connection Editor Toolbar

  • A new "i" (information) button is available that provides all the details of any installed .NET provider. Provides additional information mitigating resource definition and use within the ADO.NET Connection editor
  • Static XA switch modules "Reconnect" - At the beginning of a global transaction, the XA switch will attempt to reconnect temporarily broken connections to the database. If there is a temporary disconnect to the database, there is no need to manually re-enable the XA switch to run transactions.

Database Connectors

上へ戻る

新しい XFD 指令 IDENTITY_COLUMN を使用してデータベースに ID 列を作成できるようになりました。これは数値フィールドに指定する必要があります。

デバッグ

上へ戻る

このリリースの強化点は次のとおりです。

  • COBOL ビジュアライザー - Visual Studio の新しいウィンドウでは、デバッグ時にテキストまたは HEX のいずれかの形式でデータ項目を表示および編集できます。このウィンドウはデータ項目のデータチップから起動できます。
  • 条件付き監視ポイント - COBOL 監視ポイントの条件およびヒット カウントを指定できるようになりました。式の形式またはヒット カウント (データ項目に関連付けられたメモリが更新された回数) として条件を指定できます。監視対象のデータ項目に変更が見つかるたびに条件が評価されます。条件が真と評価されると、プログラムの実行が停止します。これにより、現在の監視ポイントのサポートをより細かく調整することができ、大規模で複雑なプログラムをデバッグするときに役立ちます。
  • 動的コア ダンプ - コア ダンプをプログラムで起動し、その間もプログラムの実行を継続できるようになりました。新しいライブラリ ルーチンの CBL_CREATE_CORE を使用すると、現在のプロセス、または現在のプロセスと同じユーザーが所有するプロセスのコア ファイルを作成できます。
  • PERFORM の可視性の改善 - 32 ビットの Intel アーキテクチャの Linux および Intel アーキテクチャの Solaris の多くで、PERFORM スタックおよび PERFORM 範囲の名前が gdb などのシステム デバッガーに認識されるようになりました。AIX、64 ビットの Solaris-Intel、および他のすべての Linux プラットフォーム (64 ビット Linux-Intel を含む) は、すでに対応しています。
  • ランタイム エラー メッセージにソース行番号を含めることでプログラムの問題の診断が簡単になるように、コマンド ラインからビルドする場合に、NOANIM 指令が指定されていない限り、COBOL コンパイラによってデフォルトで .idy ファイルが生成されるようになりました。これらの .idy ファイルは、不要であればコンパイルの完了後に削除してかまいません。また、コードをデバッグする場合以外は、アプリケーションと一緒に配布する必要もありません。ただし、ANIM 指令を指定しないと、.dll.gnt などの生成された実行可能ファイルをデバッグすることはできません。これは、これまでの動作と同じです。
    注: IDE または IDE から生成されたビルド スクリプトを使用する場合の動作には変更はありません。

Enterprise Server Security

Back to Top

This release includes the following enhancements:

  • Security - security features can now be employed when developers and administrators install new COBOL services (web services and EJBs) into an enterprise server instance over the network. There are a number of authentication and authorization options that can be enabled. See Deployment Listeners and The .mfdeploy File.
  • Vault Facility - a new security feature has been added that enables some Enterprise Server components to keep certain sensitive information in a form of storage defined as a vault, accessible via a configurable vault provider. The default vault provider stores data in encrypted format on disk.
  • OpenSSL 1.1.1 - the OpenSSL security provider has been updated to OpenSSL version 1.1.1.

    This is the stable Long Term Support version of OpenSSL.

    • Added support for the ratified TLS protocol version 1.3. TLS 1.3 benefits include:
      • Much shorter initial connection negotiation sequence. This reduces the time taken to establish a link before starting to transmit data.
      • Using only the most secure ciphers and hash methods.
      • TLS 1.3 will be negotiated in preference to the older TLS protocols.
    • Added support for new Ciphers and Key Exchange groups in line with TLS 1.3 requirements.
    • The default security level for previously configured endpoints has been moved from Security Level 0 to Security Level 1. This removes the ability to accidentally make use of known-weak elements such as SSL3 and MD5. Similar changes to the default Security Level have recently happened to Java, Chrome, Firefox, and other systems providing secure connections.
  • Fileshare Security - the Fileshare Secure TCP/IP transport provider now supports the trusted use of X509 certificates bearing the name of the Fileshare service as the Common Name element of the certificate.

    In previous releases, a secure connection to a Fileshare server was made using a certificate that represented the network location upon which the Fileshare service was located. This method is still supported, but does not distinguish between the exact Fileshare server that is being connected to when more than one service can exist on a single host system. With this change, individual Fileshare services can identify themselves by using a unique certificate. While running on the same host and registered with the same network endpoint.

  • Support for Active Directory user groups and group name mapping - the Enterprise Server External Security Facility's MLDAP ESM Module can now use Active Directory user group objects for Enterprise Server user groups. Also, the module can now map long group names to the 8-character-maximum names required for mainframe emulation.
  • Selective auditing - administrators can audit only security activity of particular interest, reducing audit overhead and the volume of events. The Enterprise Server External Security Facility's MLDAP ESM Module can now enable ESF Audit events only for particular users, groups, and resources.
  • Improved interaction with LDAP client libraries resulting in fewer LDAP-related issues and easier diagnostics - the Enterprise Server External Security Facility's MLDAP ESM Module has improved interoperation with LDAP client libraries:
    • The client library vendor and version information is logged after the library is loaded
    • The module has better heuristics for loading the correct library supplied by the OS vendor, so the "provider" configuration option can generally be omitted
    • For OpenLDAP, the module sets its proprietary "connect timeout" option
  • SNI support (requires 5.0 Patch Update 1 or later) - support has been added in Patch Update 1 for the Server Name Identification (SNI) extension to TLS. This helps to avoid connectivity issues related to a growing number of Web services being hosted on SNI servers.

Micro Focus Unit Testing Framework

上へ戻る

このリリースでは、次の機能がサポートされています。

  • データ駆動型単体テスト - ソースから読み取られた値が同じテストを通過するデータのテストに適した新しいタイプのテスト。
  • テスト出力の色付け - テスト出力に、サポートされている端末エミュレーション用の基本的な色分けを含めることができるようになりました。この機能はコマンド ラインから実行する必要があります。

Platform Support

Back to Top

Support is now available for the following additional or updated operating systems:

  • SUSE (Power) 11 SP3, 12
  • Red Hat (Power) 7.2, 7.3
  • Windows Server 2019

For a full list of supported platforms, check HTTPS://SUPPORTLINE.MICROFOCUS.COM/PRODAVAIL.ASPX.

製品ドキュメント

上へ戻る

このリリースの新機能は次のとおりです。

  • Visual Studio のオンライン コンテキスト ヘルプ - オンライン コンテキスト ヘルプが Visual COBOL のデフォルトの設定になり、Micro Focus SupportLine のドキュメントが開くようになりました。

    Visual COBOL のローカル ヘルプも引き続きサポートされ、必要に応じて手動でインストールできます。詳細については、「After Installing」を参照してください。

  • COBOL と他のマネージ言語の比較」のドキュメントが更新され、.NET および JVM COBOL のサポートについての最新の機能拡張の内容が反映されました。

Visual Studio Integration

Back to Top

This release includes enhancements in the following areas:

COBOL editor:

  • Code snippets - new snippets are available for $if and $region statements, and for specifying *cblformat off which indicates the area of code that is unaffected by formatting.
  • Collapsible regions - outlining is now available for IF, EVALUATE and PERFORM statements.
  • Peek Definition context menu command - this invokes a pop-up window, embedded in the editor, showing the data item definition. You can use the feature both while editing and while debugging.
  • IntelliSense suggestions - IntelliSense suggestions for the COPY statement now include directories to add.
  • (Introduced in 5.0 Patch Update 1) Choosing a separator for qualified field names - you can configure IntelliSense to either use OF or IN as a separator in qualified field names - e.g. A-COUNT OF A-WORK-1 or A-COUNT IN A-WORK-1. You can specify this in Tools > Options > Text Editor > Micro Focus COBOL > IntelliSense, and on the Completion Lists page.
  • Find All References - the Find All References output window for COBOL has been enhanced, so you can now filter results, group results, order results and search results.
  • Quick actions - the editor now displays light bulbs for creating a missing section or a paragraph, for adding and sorting $ILUSING statements, and for removing or commenting out dead code.

Visual Studio tool windows:

  • The Error List window now includes a column for the Sequence Number.
  • You can use Visual Studio's Find All References tool window to search for references in your COBOL projects.

New settings in the project property pages:

  • The Debug project properties page for managed projects now includes settings for either generating a portable symbol file (.PDB) or for embedding the portable symbol information directly in the assembly.
  • The Smart Linkage section in the properties of managed projects now offers two new settings for enabling the ILSMARTTRIM and ILSMARTANNOTATE Compiler directives.

New project template categories:

  • The COBOL project templates are organized in a new set of categories that better represent the tasks and workloads used in modern development. Some of the categories, such as Azure or .NET Core, only show if you have installed the support for these features in Visual Studio. For more information, see To install missing features from the IDE.