Choosing Output File Formats

Reference:

You can select from a wide range of output formats to preserve your report output for use in any of the following ways:

For details on each of the supported formats, including the commands that support them (HOLD, PCHOLD, SAVE) and the operating environments in which they are available, see the reference topics for the following formats.

AHTML

ALPHA

BINARY

COMMA

COM

COMT

DATREC

DB2

DFIX

DHTML

DIF

DOC

EXCEL

EXL2K

EXL2K FORMULA

EXL2K PIVOT

EXL97

FOCUS

HTML

HTMTABLE

INGRES

INTERNAL

LOTUS

PDF

POSTSCRIPT (PS)

PPT

REDBRICK

SQL_SCRIPT

SQL

SQLDBC

SQLINF

SQLMSS

SQLODBC

SQLORA

SQLSYB

SYLK

TAB

TABT

WP

XFOCUS


Top of page

x
Reference: FORMAT AHTML

Description: Saves report output as an active report (HTML file that can be used for offline analysis and interactive functions without any connection to FOCUS). All of the data and JavaScript code are stored within the HTML file, which also makes the output highly compressible for e-mail and transparent to security systems.

Use: For offline analysis of data.

Supported with the commands: HOLD, PCHOLD, SAVE.

Available in: WebFOCUS, FOCUS, Developer Studio.


Top of page

x
Reference: FORMAT ALPHA

Description: Saves report output as fixed-format character data and can be created as a HOLD file.

ALPHA is the default SAVE format. The output file contains data only.

Text fields are supported in ALPHA-formatted files. See Using Text Fields in Output Files.

To control missing data characters that are propagated to fields with the MISSING=ON attribute, use the SET HNODATA command. For more information, see the Developing Applications manual.

Use: For display in a text document. For further reporting in FOCUS, WebFOCUS, or Developer Studio. As a transaction file for modifying a data source.

Supported with the commands: HOLD, PCHOLD, SAVE.

Available in: WebFOCUS, Developer Studio, FOCUS.


Top of page

x
Reference: FORMAT BINARY

Description: Saves report data and stores numeric fields as binary numbers. When created as a HOLD file, also creates a Master File.

BINARY is the default format for HOLD files. When created in BINARY format:

The output file contains data only.

Use: For further reporting in FOCUS, WebFOCUS, or Developer Studio. As a transaction file for modifying a data source.

Supported with the commands: HOLD, SAVE.

Available in: WebFOCUS, Developer Studio, FOCUS.


Top of page

x
Reference: FORMAT COMMA

Description: Saves the data values as a variable-length text file, with fields separated by commas and with character values enclosed in double quotation marks. All blanks within fields are retained. This format is the industry standard comma-delimited format.

This format does not have the safety feature of the double quote added within a text field containing a double quote.

The extension for this format is PRN. This format type does not create a Master File.

Note:

The output file contains data only.

Use: For further processing in a database application. This format type can be imported into applications such as Excel or Lotus.

Supported with the commands: HOLD, SAVE.

Available in: WebFOCUS, Developer Studio, FOCUS.


Top of page

x
Reference: FORMAT COM

Description: Saves the data values as a variable-length text file with fields separated by commas and with character values enclosed in double quotation marks. Leading blanks are removed from numeric fields, and trailing blanks are removed from character fields. To issue a request against this data source, the setting PCOMMA=ON is required.

This format also includes a built-in safety feature, which allows embedded quotes within character fields. A second double quote (") is inserted adjacent to the existing one. For example, if you input Joe "Smitty" Smith, the output is Joe ""Smitty"" Smith.

The extension for this format is CSV. A Master File is created for this format type when the command used to create the output file is HOLD. The SUFFIX in the generated Master File is COM.

Note:

Use: For further processing in a database application. This format type can be imported into applications such as Excel or Lotus.

Supported with the commands: HOLD, SAVE, PCHOLD.

Available in: WebFOCUS, Developer Studio, FOCUS.


Top of page

x
Reference: FORMAT COMT

Description: Saves the column headings in the first row of the output file. It produces a variable-length text file with fields separated by commas, and with character values enclosed in double quotation marks. Leading blanks are removed from numeric fields, and trailing blanks are removed from character fields. This format is required by certain software packages such as Microsoft Access.

This format also includes a built-in safety feature, which allows embedded quotes within character fields. A second double quote (") is inserted adjacent to the existing one. For example, if you input Joe "Smitty" Smith, the output is Joe ""Smitty"" Smith.

The extension for this format is CSV. A Master File is created for this format type when the command used to create the output file is HOLD. The SUFFIX in the generated Master File is COMT.

Note:

Use: For further processing in a database application. This format type can be imported into applications such as Excel or Lotus.

Supported with the commands: HOLD, SAVE, PCHOLD.

Available in: FOCUS, Developer Studio, WebFOCUS.


Top of page

x
Reference: FORMAT DATREC

Description: Saves report output as a sequential file with a Master File, and stores numeric fields as binary numbers without aligning them on fullword boundaries. The last field consists of one byte for each of the other fields in the Master File that indicates whether the corresponding field is missing.

Use: For further reporting in FOCUS, WebFOCUS, or Developer Studio. As a transaction file for modifying a data source.

Supported with the command: HOLD.

Available in: WebFOCUS, Developer Studio, FOCUS.


Top of page

x
Reference: FORMAT DB2

Description: Creates a DB2 table, if you have the DB2 Data Adapter and permission to create tables.

Use: For further processing in a database application.

Supported with the command: HOLD.

Available in: WebFOCUS, Developer Studio, FOCUS.


Top of page

x
Reference: FORMAT DFIX

Description: Creates a delimited output file. You can specify the delimiter, whether alphanumeric fields should be enclosed within a special character such as a double quotation mark, and whether the file should be generated with a header record containing the field names.

For more information, see Creating a Delimited Sequential File.

Use: For importing data to Windows-based applications such as MS Access and Excel.

Supported with the command: HOLD, PCHOLD.

Available in: WebFOCUS, Developer Studio, FOCUS.


Top of page

x
Reference: FORMAT DHTML

Description: Provides HTML output that has most of the features normally associated with output formatted for printing such as PDF or PostScript output. You can create an HTML file (.htm) or a Web Archive file (.mht). The type of output file produced is controlled by the value of the HTMLARCHIVE parameter. HTMLARCHIVE=ON creates a Web Archive file.

Some of the features supported by format DHTML are:

Note:

Use: For display as a Web page.

Supported with the commands: HOLD, PCHOLD, SAVE.

Available in: WebFOCUS, Developer Studio, FOCUS.


Top of page

x
Reference: FORMAT DIF

Description: Captures the entire report output, excluding headings, footings, subheads, and subfoots, and creates a character file that can be easily incorporated into most spreadsheet packages.

For example, running a TABLE request with HEADING/FOOTING and ON TABLE HOLD FORMAT DIF does not display the report output with headings and footings. As a workaround, use another format (such as HTML, PDF, or EXL2K).

Note: Microsoft Excel SR-1 is no longer supported for HOLD FORMAT DIF. To open these reports, use either Microsoft Excel SR-2 or Microsoft Excel 2000.

Use: For display or processing in a spreadsheet application.

Supported with the commands: HOLD, PCHOLD, SAVE.

Available in: WebFOCUS, Developer Studio, FOCUS.


Top of page

x
Reference: FORMAT DOC

Description: Captures the entire report output, including headings, footings, and subtotals, and creates a text file with layout and line breaks that can be easily incorporated into most word processing packages. DOC format uses a form-feed character to indicate page control information.

Note: A request that contains ON TABLE HOLD FORMAT DOC results in a blank first page in the report when displayed in Microsoft XP Office. To eliminate this, include SET PAGE=NOPAGE in your request.

Use: For display in a text document.

Supported with the commands: HOLD, PCHOLD, SAVE.

The PCHOLD variation transfers the data from a Web server to a browser.

Available in: WebFOCUS, Developer Studio, FOCUS.


Top of page

x
Reference: FORMAT EXCEL

Description: Captures report output as a Microsoft Excel spreadsheet file, including data and column titles, but without report headings, footings, subheadings, or subfootings. If the report request contains an ACROSS phrase and specifies FORMAT EXCEL, column titles are not included in the output. If you wish to have the ACROSS column titles appear, use HOLD FORMAT EXL2K.

Text and varchar (AnV) fields are not supported with FORMAT EXCEL. To include them, use HOLD FORMAT EXL2K. To use FORMAT EXL2K, you must have Excel 2000 installed.

Leading zeros do not appear for FORMAT EXCEL.

Since only single-line (single-cell) column titles are supported in format EXCEL reports, any additional column title rows are treated as data. For example, if you have a report with a multi-line (multi-cell) column title and you sort the column, the second (and so on) column title rows are sorted with the data. To avoid this, only select the data instead of the entire column when you select sorting options in Excel.

Note:

Use: For display or processing in a spreadsheet application.

Supported with the commands: HOLD, PCHOLD, SAVE.

Available in: WebFOCUS, Developer Studio, FOCUS.

In FOCUS, the recommended transfer mechanism is FTP in binary mode. On a PC, the extension of the resulting file should be .xls.


Top of page

x
Reference: FORMAT EXL2K

Description: Generates fully styled reports in Excel 2000 HTML format. You must have Excel 2000 installed to use this output format. For details, see Choosing a Styled Display Format.

ACROSS column titles are supported for EXL2K output format.

For EXL2K output format, a report can include 65,536 rows and/or 256 columns. Rows and columns in excess of these limits are truncated from the worksheet when opened in Excel.

For information about creating overflow worksheets for the additional rows when the number of rows becomes too high for a single worksheet, see Overcoming the Excel 2003 65K Row Limit Using Overflow Worksheets.

Use: For display or processing in a spreadsheet application.

Supported with the commands: HOLD, PCHOLD, SAVE.

For details, and for information about working with EXL2K files, see Choosing a Styled Display Format.

Available in: WebFOCUS, Developer Studio.


Top of page

x
Reference: FORMAT EXL2K FORMULA

Description: Specifies that the report will be displayed as an Excel 2000 spreadsheet, with FOCUS totals and other calculated values translated to active Excel formulas. For details, see Choosing a Styled Display Format.

Use: For display or processing in a spreadsheet application.

Supported with the commands: HOLD, PCHOLD, SAVE.

Available in: WebFOCUS, FOCUS, Developer Studio.


Top of page

x
Reference: FORMAT EXL2K PIVOT

Description: Generates fully styled reports in Excel 2000 HTML format, with added pivoting capabilities. Requires Excel 2000 on your PC. For details, see Choosing a Styled Display Format.

Use: For display or processing in a spreadsheet application.

Supported with the commands: HOLD, PCHOLD, SAVE.

Available in: WebFOCUS, FOCUS, Developer Studio.


Top of page

x
Reference: FORMAT EXL97

Description: Enables you to view and save reports in Excel 97 that include full styling. For details on working with Excel formats, see Choosing a Styled Display Format.

Leading zeros do not display for FORMAT EXL97.

Use: For display or processing in a spreadsheet application.

Supported with the command: HOLD, PCHOLD, SAVE.

Available in: FOCUS, WebFOCUS, Developer Studio.


Top of page

x
Reference: FORMAT FOCUS

Description: Creates a FOCUS data source. Four files result: a HOLD data file, a HOLD Master File, and two work files. See Holding Report Output in FOCUS Format.

Text fields are supported for FOCUS output files. See Using Text Fields in Output Files.

Use: For further processing in a database application.

Supported with the command: HOLD.

Available in: WebFOCUS, Developer Studio, FOCUS.


Top of page

x
Reference: FORMAT HTML

Description: Creates a complete HTML document that can be viewed in a Web browser.

For more information, see Chapter 10, Styling Reports.

Use: For display as a Web page.

Supported with the commands: HOLD, PCHOLD, SAVE.

Available in: WebFOCUS, Developer Studio, FOCUS.


Top of page

x
Reference: FORMAT HTMTABLE

Description: Creates an output file that contains only an HTML table. The output produced is not a complete HTML document.

Internal Cascading Style Sheets (CSS) are supported for FORMAT HTMTABLE. The CSS code is placed immediately before the TABLE command.

Use: For embedding reports and graphs in an existing HTML document.

Supported with the commands: HOLD, PCHOLD, SAVE.

Available in: WebFOCUS, Developer Studio, FOCUS.


Top of page

x
Reference: FORMAT INGRES

Description: Creates an Ingres table, if you have the Ingres Data Adapter and permission to create tables.

Use: For further processing in a database application.

Supported with the command: HOLD.

Available in: WebFOCUS, Developer Studio, FOCUS when used as a client to the WebFOCUS Reporting Server.


Top of page

x
Reference: FORMAT INTERNAL

Description: Saves report output without padding the values of integer and packed fields. See Saving Report Output in INTERNAL Format.

Use: For accurate processing by 3GL programs.

Supported with the command: HOLD, SAVB.

Available in: WebFOCUS, Developer Studio, FOCUS.


Top of page

x
Reference: FORMAT LOTUS

Description: Captures all the columns of the report in a character file that LOTUS 1-2-3 can then import. All alphanumeric fields are enclosed in quotation marks. Columns are separated by commas.

Use: For display and processing in a spreadsheet application.

Supported with the commands: HOLD, PCHOLD, SAVE (WebFOCUS only).

Available in: WebFOCUS, Developer Studio, FOCUS.


Top of page

x
Reference: FORMAT PDF

Description: Saves the report output in Adobe Portable Document Format (PDF), which enables precise placement of output (all formatting options such as headings, footings, and titles) correctly aligned on the physical page, so the report looks exactly as it does when printed.

If you have a wide PDF report, it is automatically paneled. However, the PANEL parameter has no effect on FORMAT PDF.

A PDF object is a page, hyperlink, or image. The Portable Document Format (PDF) limits the number of objects that a PDF document can contain.FOCUS imposes the following object limits for each PDF report:

Object

Limit

Pages

10,000

Images

900

Hyperlinks per page

500

Total pages with hyperlinks

100

Total hyperlinks

44,500

PDF format retains all formatting options, such as a headings, footings, and titles.

The following fonts are supported: Courier (fixed width), Times (proportional width), and Helvetica (proportional width). PDF format maps all fonts to Courier, Helvetica, or Times. The font styles that can be used are Normal (default), Bold, Italic, Underline, and combinations of these.

The following StyleSheet features are supported with PDF: PAGESIZE, ORIENTATION, UNITS, TOPMARGIN, BOTTOMMARGIN, LEFTMARGIN, RIGHTMARGIN, POSITION, SQUEEZE, HGRID, VGRID, BACKCOLOR. Note when you use BACKCOLOR with PDF reports, extra space is added to the top, bottom, right, and left of each cell of data in the report. This is for readability and to prevent data truncation.

Use: For display as a printed document. For information about compound reports and styling options, see Choosing a Styled Display Format.

Supported with the commands: HOLD, PCHOLD, SAVE (WebFOCUS only).

Available in: WebFOCUS, Developer Studio, FOCUS.


Top of page

x
Reference: FORMAT PDF OPEN/CLOSE

Description: Saves multiple reports into one PDF report.

Use: For combining multiple reports into a single PDF file, also known as a compound report.

Supported with the command: PCHOLD.

Available in: WebFOCUS, Developer Studio, FOCUS


Top of page

x
Reference: FORMAT POSTSCRIPT (PS)

Description: Creates an output file in PostScript format, which supports headings, footings, and totals.

PS is an abbreviation for POSTSCRIPT.

PostScript format supports headings, footings, and totals. PS supports ISO Latin font encoding.

Use: For display as a printed document. For information about compound reports and styling options, see Chapter 10, Styling Reports.

Supported with the command: HOLD, PCHOLD.

Available in: WebFOCUS, Developer Studio, FOCUS.


Top of page

x
Reference: FORMAT PPT

Description: Creates an output file in PowerPoint format in which each page of report output becomes a separate slide in the file with all styling applied.

Use: For use in a slide presentation.

Supported with the command: HOLD, SAVE.

Available in: WebFOCUS, Developer Studio, FOCUS.


Top of page

x
Reference: FORMAT REDBRICK

Description: Creates a Red Brick table, if you have the Redbrick Data Adapter and permission to create tables.

Use: For further processing in a database application.

Supported with the command: HOLD.

Available in: WebFOCUS, Developer Studio, FOCUS when used as a client to the WebFOCUS Reporting Server.


Top of page

x
Reference: FORMAT SQL_SCRIPT

Description: Creates an SQL subquery file or a file of data values with a corresponding synonym.

When used in a request against a relational data source, the HOLD FORMAT SQL_SCRIPT command generates the SQL SELECT statement needed to execute the current query and stores it in the application folder as a file with a .sql extension along with the Master and Access File pair that describes the SQL answer set.

When used in a request against any other type of data source, the HOLD FORMAT SQL_SCRIPT command executes the current query and stores the retrieved values in the application folder as a sequential file with a .ftm extension along with the Master File that describes the retrieved data.

Use: You can use the output from HOLD FORMAT SQL_SCRIPT as the target file for the DB_INFILE function. For more information about the DB_INFILE function, see the Using Functions manual.

Supported with the command: HOLD.

Available in: WebFOCUS, Developer Studio, FOCUS.


Top of page

x
Reference: FORMAT SQLDBC

Description: Creates a Teradata table, if you have the Teradata Data Adapter and permission to create tables.

Use: For processing in a database application.

Supported with the command: HOLD.

Available in: WebFOCUS, Developer Studio, FOCUS.


Top of page

x
Reference: FORMAT SQLINF

Description: Creates an Informix table, if you have the Informix Data Adapter and permission to create tables.

Use: For processing in a database application.

Supported with the command: HOLD.

Available in: WebFOCUS, Developer Studio, FOCUS when used as a client to the WebFOCUS Reporting Server.


Top of page

x
Reference: FORMAT SQLMSS

Description: Creates a Microsoft SQL Server table, if you have the Microsoft SQL Data Adapter and permission to create tables.

Use: For processing in a database application.

Supported with the command: HOLD.

Available in: WebFOCUS, Developer Studio, FOCUS when used as a client to the WebFOCUS Reporting Server.


Top of page

x
Reference: FORMAT SQLODBC

Description: Creates an SQLODBC table if you have the current ODBC Data Adapter and permission to create tables.

Use: For processing in a database application.

Supported with the command: HOLD.

Available in: WebFOCUS, Developer Studio, FOCUS when used as a client to the WebFOCUS Reporting Server.


Top of page

x
Reference: FORMAT SQLORA

Description: Creates an Oracle table, if you have the Oracle Data Adapter and permission to create tables.

Use: For processing in a database application.

Supported with the command: HOLD.

Available in: WebFOCUS, Developer Studio, FOCUS.


Top of page

x
Reference: FORMAT SQLSYB

Description: Creates a Sybase table, if you have the Sybase Data Adapter and permission to create tables.

Use: For processing in a database application.

Supported with the command: HOLD.

Available in: WebFOCUS, Developer Studio, FOCUS when used as a client to the WebFOCUS Reporting Server.


Top of page

x
Reference: FORMAT SYLK

Description: Captures all the columns of the report request in a character file for Microsoft's spreadsheet program Multiplan. The generated file cannot have more than 9,999 rows.

Use: For display and processing in a spreadsheet application.

Supported with the command: HOLD, SAVE.

Available in: WebFOCUS, Developer Studio, FOCUS.


Top of page

x
Reference: FORMAT TAB

Description: Creates an output file in tab-delimited format. The TAB format includes a built-in safety feature, which allows embedded quotes within character fields. A second double quote (") is inserted adjacent to the existing one. For example, if you input Joe "Smitty" Smith, the output is Joe ""Smitty"" Smith. The TAB format also includes the following features:

Note: To create a variable-length comma- or tab-delimited HOLD file that differentiates between a missing value and a blank string or zero value, use the SET NULL=ON command. For more information, see the Developing Applications manual.

Use: For importing data to Windows-based applications such as MS Access and Excel.

Supported with the command: HOLD, SAVE, PCHOLD.

Available in: WebFOCUS, Developer Studio, FOCUS.


Top of page

x
Reference: FORMAT TABT

Description: Creates an output file in tab-delimited format that includes column headings in the first row. The TABT format includes a built-in safety feature, which allows embedded quotes within character fields. A second double quote (") is inserted adjacent to the existing one. For example, if you input Joe "Smitty" Smith, the output is Joe ""Smitty"" Smith. The TABT format also includes the following features:

Note:

Use: For importing data to Windows-based applications such as MS Access and Excel.

Supported with the command: HOLD, SAVE, PCHOLD.

Available in: WebFOCUS, Developer Studio, FOCUS.


Top of page

x
Reference: FORMAT WP

Description: Captures the entire report output, including headings, footings, and subtotals, and creates a text file that can easily be incorporated into most word processing packages.

Text fields are supported in WP format. See Using Text Fields in Output Files.

To control whether a carriage control character is included in column 1 of each page of the report output, use:

[ON TABLE] HOLD AS filename FORMAT WP [CC|NOCC]

NOCC excludes carriage control characters. The position reserved for those characters remains in the file, but is blank. CC includes carriage control characters and creates the HOLD file with RECFM VBA. To include page control information in the WP file, you can also specify the TABPAGENO option in a heading or the SET PAGE=OFF command. The character 1 in the column 1 indicates the start of a new page.

The following rules summarize FORMAT WP carriage control options:

Tip: HOLD FORMAT WP does not change the number of lines per page. In order to do so, issue one or a combination of the commands SET PRINT=OFFLINE, SET SCREEN=PAPER, or SET SCREEN=OFF.

The WP file is created with a record format of VB when the carriage control character is omitted and with a record format of VBA when the carriage control character is inserted.

The maximum record length for HOLD FORMAT WP is 358 characters, 356 of which can represent data.

If you need the report width to remain fixed across releases for later processing of the output file, you can set the width you need using the SET WPMINWIDTH command. This parameter specifies the minimum width of the output file. It will be automatically increased if the width you set cannot accommodate the fields propagated to the output file in the request. The LRECL of the output file will be four bytes more than the report width because the file is variable length and needs an additional four bytes to hold the actual length of each record instance. In other operating environments, the length of the record is the value of WPMIDWIDTH.

FORMAT WP retains headings, footings, and subtotals.

Use: For display in a text document.

Supported with the commands: HOLD, PCHOLD, SAVE.

Available in: WebFOCUS, Developer Studio, FOCUS.


Top of page

x
Reference: FORMAT XFOCUS

Description: Creates an XFOCUS data source.

Use: For further processing in a database application.

Supported with the command: HOLD.

Available in: WebFOCUS, Developer Studio, FOCUS.


Top of page

x
Reference: FORMAT XML

Description: Creates an XML output file based on an internal DTD that includes the rows that are displayed in the final report output. It does not honor the HOLDLIST setting. It does not honor the ASNAMES setting. The parameter HOLDATTRS ON is automatically invoked. The XML file generated is based on the structure and layout of the report request. The metadata included in the DTD for each column is FIELDNAME, ALIAS, data type, width, FOCUS format, DESCRIPTION, ACCEPTS, HELP_MESSAGE, TITLE, WITHIN, PROPERTY, REFERENCE, VALIGN, and column title. FORMAT XML does not create a Master File.

Use: For further processing.

Supported with the command: HOLD, PCHOLD.

Available in: WebFOCUS, FOCUS.


Information Builders