|
[Home |
Announcements |
Access |
Installation |
User Notes |
Data Dictionary |
Mailing List |
Contact]
U s e r N o t e s
Saving and Loading GQL Queries and Data
There are many ways to
save work you do in GQL. This document describes the various
ways to store query results, queries and report specifications
for later use. The following topics are covered here:
Query Results
You may save the results
of a query to a file. This query can not be re-run, only the
results are saved. These results may be loaded back into GQL later,
or loaded into another program, such as a spread sheet (there
are also other ways to do this - see below). This may be done
in two ways.
- If you haven't submitted your query yet
- Formulate your query, do not run it
- Select "Submit Query to File" from the "Query" menu
- Enter a file name for the query results, click "OK"
- If you have already submitted your query
- Select "Save Results" from the "Results" menu
- Enter a file name for the query results, click "OK"
There are options related
to saving query results that determine the format of the data
you save. If you are saving query results and not getting the
format you want, follow these steps to change your "Results
Options".
- Select "Preferences" from the "Edit" menu
- Click the "Results Options
" button
- Make your choices and click "OK" twice
Here is a brief listing of the available options:
- Save Query Name - Includes
the name of the query in the results
- Save Column Headings
- Includes the column headings in the results
- Text in Quotes - Encloses
column values in quotes in the results
- Transpose - Switches
vertical and horizontal axes in the results
- Separators/Field -
The character that goes between fields (<TAB> suggested)
- Separators/Record -
The characters that go between records (<CR><LF>
suggested)
You may load previously
saved query results, and use these results to generate reports,
crosstabs, etc.
- Select "Open Results" from the "Results" menu
- Select the previously saved results that you want, and click "OK"
- You may now use these results just as you would use any query results
Queries
You may save a query for
later use. After saving a query using this method, you may load
and submit the query again at a later time to get new results.
- Formulate a query -
it doesn't matter whether you submit it or not
- Select "Save Query" from the "Query" menu
- Enter a descriptive name for the query in the "Query Name" field
- Click "Save"
You may load queries that you have previously saved.
- Select "Load Query" from the "Query" menu
- Select the query you want to load
- Click "Load"
- If you want new query results, submit the query
Report Specifications
You may save a report specification
that you have created to be used with different queries that you
run. This applies to "GQL Standard" reports, "Crosstab"
reports, and "Labels". This allows you to spend a lot
of time setting up a report to look exactly as you want it, then
use it again later with other queries. You may also save complete
queries, including the report specification. By doing this, you
may load the query again later, submit it, and end up with the
report exactly as you set it up.
- Formulate and submit a query
- Select "Show as Report" from the "Results" menu
- Choose the type of
report you are interested in - "GQL Standard", "Labels"
or "Crosstab"
- Format the report until it looks as you want it to
- Select "Save Report Specification" from the "Report" menu
- Enter a descriptive name in the "Report Name" field
- If you will use this report only with this query, mark the "Save Query Also" box
- If you will use this report with different queries, unmark the "Save Query Also" box
- Click "Save"
You may load reports that
you have previously saved. This may be done in two ways. One
way is to load a report that includes a query you saved. The
other way is to create a new query, and use a saved report to
display the new results.
- Load a report that includes a query
- Select "Load Query" from the "Query" menu
- Select the named query you are interested in
- Click "Load"
- Submit the query
- The report will be displayed
- Create a new query and use a saved report
- Formulate and submit a query
- Select "Show as Report" from the "Results" menu
- Select "Load Report Specification"
- Select the saved report that you wish to use
- Click "Load"
- The data results from your query will be displayed as the report you selected
This page was last updated on February 27, 1997.
[Home |
Announcements |
Access |
Installation |
User Notes |
Data Dictionary |
Mailing List |
Contact]
|