Rocket® Enterprise Developer (formerly a product of Micro Focus or formerly a product of Open Text) documentation, created before Rocket Software acquired certain products from OpenText, may include outdated references to "Micro Focus" or "OpenText", both of which are trademarks of OpenText or its affiliates. Rocket Software is not affiliated with Micro Focus or OpenText and has since rebranded these products as Rocket® products. You may also encounter outdated links in this documentation. If you do, please contact Rocket Support (support@rocketsoftware.com) for assistance.
DECLARE 文
DECLARE 文は、対象のオブジェクトの属性またはプロパティを指定して 1 つ以上の名前を宣言します。DECLARE 文は実行可能な文ではありません。SELECT 文で WHEN 句または OTHERWISE 句の一部として記述できるほか、IF 文の THEN 句および ELSE 句、ON 文の ON-unit を除き、プロシージャまたは BEGIN ブロック内の任意の箇所に記述できます。
読みやすくするために、特定のブロックに属するすべての DECLARE 文を、実行可能な文の間ではなく、そのブロックの先頭に記述することをお勧めします。