フォーマット・タグ

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

フォーマット・タグの使用を示している以下の例は、データ・セット HFZ.SHFZSAM1 内のメンバー HFZSUFM3 としてソフトコピー・フォーマットでも提供されています。
1. REXX フォーマット・ユーザー出口 3 ソースの例
"HFZWRITE '<P>First paragraph.'"
"HFZWRITE '<AREA INDENT=5>'"
"HFZWRITE '<P>Second paragraph, indented 5 characters from the first. '"
"HFZWRITE 'This <DATA 3><P> tag is treated as text only.'"
"HFZWRITE '<P COMPACT>Third paragraph. '"
"HFZWRITE 'Note that this paragraph is not preceded by a blank line.'"
"HFZWRITE '</AREA>'"
"HFZWRITE '<P>Fourth paragraph - now we are back at the left margin.</P>'"
"HFZWRITE '<L>**************************************** This line will '"
"HFZWRITE '<HP>not</HP> wrap at the preferred formatting width!'"
"HFZWRITE '<P><ADDR 625f22>Previous area</ADDR> and <ADDR 625f22></ADDR> are '"
"HFZWRITE 'both point-and-shoot fields to the Dump Storage '"
"HFZWRITE 'display for address 00625F22 in the interactive reanalysis report.'"
"HFZWRITE '<DL BREAK=STDLBL>'"
"HFZWRITE '<DT>This is a long definition term'"
"HFZWRITE '<DD>This is the matching definition description which might wrap '"
"HFZWRITE 'depending on the preferred formatting width.'"
"HFZWRITE '<DT>A shorter definition term'"
"HFZWRITE '<DD>The definition description of the second term.'"
"HFZWRITE '</DL>'"
"HFZWRITE '<P><DUMP 0 20>Address 0 storage for a length of 32 bytes:</DUMP>'"
"HFZWRITE '<UL>'"
"HFZWRITE '<LI>In an unordered list, each item is preceded by a bullet. '"
"HFZWRITE 'If necessary, the item description will wrap at the '"
"HFZWRITE 'preferred formatting width.'"
"HFZWRITE '<LI>Another item in the same list.'"
"HFZWRITE '</UL>'"
"HFZWRITE '<P><NOTEL>'"
"HFZWRITE '<LI>In a note list, each note is numbered and the list is '"
"HFZWRITE 'preceded by a ""Notes:"" heading.  If necessary, the note '"
"HFZWRITE 'description will wrap at the preferred formatting width.'"
"HFZWRITE '<LI>Another note in the same list.'"
"HFZWRITE '</NOTEL>'"
"HFZWRITE '<P><TH>Column Column</TH>'"
"HFZWRITE '<L><U>1     <U>2     </U>'"
"HFZWRITE '<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 文字です。最大幅を超えるテキストはラップされます。

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