Extracting Data Into a File

Topics:

You can create extract files, in various formats, that contain the data output of your report requests. Depending on the format you use, a Master File for the data may be created. You can use these files for further reporting or import them into other programs, such as word processors or spreadsheets.

The following commands extract and save report output in a variety of file formats:

Extracting Report Output

You create an extract file by adding the proper command to your report request.

The following is the simple format of the extract command:
ON TABLE {HOLD|SAVE|SAVB|PCHOLD} [AS filename] [FORMAT fmt]

To produce a HOLD file, issue the following request:

TABLE FILE EMPLOYEE
SUM CURR_SAL ED_HRS
BY DEPARTMENT
BY LAST_NAME BY FIRST_NAME
ON TABLE HOLD
END

The ? HOLD command displays the Master File once the data is extracted. Here is what the Master File for this request looks like:

Two SET parameters that enable you to control how data is presented in a HOLD Master File are SET ASNAMES (controls the naming of fields) and SET TITLE (controls the naming of column titles). For more information on SET commands, see the Developing Reporting Applications manual.

WebFOCUS

Feedback