フォーマット・タグ

レポート用にデータをフォーマットする際、フォーマット・ユーザー出口で使用できるタグを以下で説明します。これらのタグにより、HTML に類似した構文を使用して表示データに見出し、リストなどを作成できます。タグ・ストリームを Fault Analyzer に戻すには、フォーマット・ユーザー出口から IDIWRITE コマンドを使用します。

フォーマット・タグの使用を示している以下の例は、データ・セット IDI.SIDISAM1 内のメンバー IDISUFM3 としてソフトコピー・フォーマットでも提供されています。
1. REXX フォーマット・ユーザー出口 3 ソースの例
"IDIWRITE '<P>First paragraph.'"
"IDIWRITE '<AREA INDENT=5>'"
"IDIWRITE '<P>Second paragraph, indented 5 characters from the first. '"
"IDIWRITE 'This <DATA 3><P> tag is treated as text only.'"
"IDIWRITE '<P COMPACT>Third paragraph. '"
"IDIWRITE 'Note that this paragraph is not preceded by a blank line.'"
"IDIWRITE '</AREA>'"
"IDIWRITE '<P>Fourth paragraph - now we are back at the left margin.</P>'"
"IDIWRITE '<L>**************************************** This line will '"
"IDIWRITE '<HP>not</HP> wrap at the preferred formatting width!'"
"IDIWRITE '<P><ADDR 625f22>Previous area</ADDR> and <ADDR 625f22></ADDR> are '"
"IDIWRITE 'both point-and-shoot fields to the Dump Storage '"
"IDIWRITE 'display for address 00625F22 in the interactive reanalysis report.'"
"IDIWRITE '<DL BREAK=STDLBL>'"
"IDIWRITE '<DT>This is a long definition term'"
"IDIWRITE '<DD>This is the matching definition description which might wrap '"
"IDIWRITE 'depending on the preferred formatting width.'"
"IDIWRITE '<DT>A shorter definition term'"
"IDIWRITE '<DD>The definition description of the second term.'"
"IDIWRITE '</DL>'"
"IDIWRITE '<P><DUMP 0 20>Address 0 storage for a length of 32 bytes:</DUMP>'"
"IDIWRITE '<UL>'"
"IDIWRITE '<LI>In an unordered list, each item is preceded by a bullet. '"
"IDIWRITE 'If necessary, the item description will wrap at the '"
"IDIWRITE 'preferred formatting width.'"
"IDIWRITE '<LI>Another item in the same list.'"
"IDIWRITE '</UL>'"
"IDIWRITE '<P><NOTEL>'"
"IDIWRITE '<LI>In a note list, each note is numbered and the list is '"
"IDIWRITE 'preceded by a ""Notes:"" heading.  If necessary, the note '"
"IDIWRITE 'description will wrap at the preferred formatting width.'"
"IDIWRITE '<LI>Another note in the same list.'"
"IDIWRITE '</NOTEL>'"
"IDIWRITE '<P><TH>Column Column</TH>'"
"IDIWRITE '<L><U>1     <U>2     </U>'"
"IDIWRITE '<L>   123     17'"
exit 0
上記のフォーマット結果は次のようになります (ポイント・アンド・シュート・フィールドと強調表示テキストが Bold スタイルで表示されます)。
2. REXX フォーマット・ユーザー出口 3 出力の例
  File  View  Services  Help
──────────────────────────────────────────────────────────────────────────────
Interactive Reanalysis Options                                 Line 1 Col 1 80
Command ===> ________________________________________________ Scroll ===> CSR 
JOBNAME: P35777    SYSTEM ABEND: 0C7            FAE1      2019/10/31  22:51:13

First paragraph.

     Second paragraph, indented 5 characters from the first. This <P> tag is
     treated as text only.
     Third paragraph. Note that this paragraph is not preceded by a blank
     line.

Fourth paragraph - now we are back at the left margin.
**************************************** This line will not wrap at the prefer

Previous area and 00625F22 are both point-and-shoot fields to the Dump Storage
display for address 00625F22 in the interactive reanalysis report.

This is a long definition
term. . . . . . . . . . . . : This is the matching definition description
                              which might wrap depending on the preferred
                              formatting width.

A shorter definition term . : The definition description of the second term.

Address 0 storage for a length of 32 bytes:
Address  Offset     Hex                                 EBCDIC / ASCII    
00000000            040C0000 810692C8 00000000 00000000 *....a.kH........*
00000010       +10  00FC7F08 00000000 070E0000 00000000 *..".............*

o   In an unordered list, each item is preceded by a bullet. If necessary,
    the item description will wrap at the preferred formatting width.

o   Another item in the same list.

Notes:

1.  In a note list, each note is numbered and the list is preceded by a
    "Notes:" heading.  If necessary, the note description will wrap at the
    preferred formatting width.

2.  Another note in the same list.

 Column Column
 1      2     
    123     17
以下は、フォーマット・タグの一般的な規則です。
  • パラグラフの行の先頭と末尾、および定義記述の先頭と末尾 (<DD> タグが前に付加されたテキスト) を除く、すべてのブランクが有効です。
  • 先行タグが指定されておらず、ブランク文字を含むテキストでは、テキストの前に <P> タグが暗黙的に挿入されます。
  • すべてのタグと属性は、大/小文字の区別がありません。
  • 行の最大幅は、すべての出力において 132 文字です。最大幅を超えるテキストはラップされます。

各タグの詳細を以下に説明します。