home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Press 1997 July
/
Sezamfile97_1.iso
/
msdos
/
database
/
pdx_ti2.arj
/
TI1079.ASC
< prev
next >
Wrap
Text File
|
1992-08-12
|
6KB
|
265 lines
PRODUCT : Reflex NUMBER : 1079
VERSION : 2.0
OS : DOS
DATE : August 12, 1992 PAGE : 1/4
TITLE : Performing a Fixed Length Export Using Report View
Intended Audience:
A moderate level of Reflex 2.0 experience.
Prerequisites:
Previous experience with Reflex 2.0 Report View.
Purpose:
A simple way to export Reflex 2.0 data to a fixed length record
ASCII file.
There are two ways to create a fixed length record ASCII file
from a Reflex database. One method of exporting out a database
to a fixed length ASCII file is to use the Translate function
within Reflex. For additional information on the Translate
function, refer to Chapter 8 of the Reflex User's Guide. Another
method is to use the Report Generator of Reflex which can easily
generate output to ASCII files. The Report Generator affords
additional advantages over the Translate function. For example,
the Report Generator enables you to alter the field order, select
particular fields, and to use filters to select a subset of
records from the database. The Report Generator can be used to
export out data to a fixed length file, provided the total length
of the fields you want to export do not exceed 254 characters.
Follow these steps to create a fixed length record ASCII file
from your Reflex database.
1. Start Reflex and open the database you want to export:
a. Press <F10>, then select Database | Open
b. Press <F9>, then highlight the database you want to
export.
2. Choose Report & Labels from the View menu option:
a. Press <F10>
b. Select Views | Report & Labels
PRODUCT : Reflex NUMBER : 1079
VERSION : 2.0
OS : DOS
DATE : August 12, 1992 PAGE : 2/4
TITLE : Performing a Fixed Length Export Using Report View
3. You are now in the Report Design mode. If you have an
existing Report on the screen, perform the steps below to
save the Report view and to clear the Report Window. If
you are in a brand new report and you do not have any
fields placed in the report, skip to step 4.
a. Press <F10>
b. Select Save | View
c. Type in a file name, then select Proceed.
NOTE: If you have an existing view with the same
file name, Reflex will prompt you to confirm you
want to replace the existing file name.
d. You are now ready to clear the Report Window.
e. Press <F10>, then select Edit | Window | Clear
f. You should now have a new report on the screen.
4. To insert a line above the bottom Detail band:
a. Move the cursor to the last line of Detail Band and
press the Insert key.
b. Press <Esc> to deselect the line
5. Place the fields you want to export by following these
steps:
a. Press the <F9> key and highlight the field you
want.
b. Press the <Enter> key to place that field.
c. Move the cursor to the right two spaces using the
right arrow key.
d. Repeat steps a through c until all of the desired
fields are placed.
PRODUCT : Reflex NUMBER : 1079
VERSION : 2.0
OS : DOS
DATE : August 12, 1992 PAGE : 3/4
TITLE : Performing a Fixed Length Export Using Report View
6. Make sure there is no information in any other section of
the report, (i.e. introduction, header, summary).
7. Set the margin and page length settings.
a. Determine what the right margin setting should be.
Move the cursor to the rightmost field in the
report. At the bottom of the screen Reflex will
display the following message:
Row: # From Col: X Through Col: Y
The right margin setting in the report must be
equal to, or greater than, the value Y (the ending
column value for the last field) however, it cannot
exceed 254 characters.
b. You are now ready to set the printer settings.
c. Press <F10>, then select Report | View Printer
Settings
d. Set the Left Margin to 0.
e. Set the Right Margin to the value you determined in
step a.
f. Set the Top Margin to 0.
g. Set the Bottom Margin to 0.
h. Choose ("X") the Continuous box.
i. Choose ("X") the "Print Page Breaks No" box
j. Make sure there is no setup string entered in the
setup string box, otherwise it will be exported
along with your data.
k. Select Proceed
PRODUCT : Reflex NUMBER : 1079
VERSION : 2.0
OS : DOS
DATE : August 12, 1992 PAGE : 4/4
TITLE : Performing a Fixed Length Export Using Report View
8. Choose Print from the Utilities menu:
a. Press <F10>, then select Utilities | Print
9. Choose ("X") the File box.
10. Choose ("X") the ASCII box.
11. Give the file a name; you must include the path to where
you want the file stored. For example: c:\reflex\test.
12. Choose Proceed.
After following the steps listed above, you will have created a
fixed length record ASCII file.
DISCLAIMER: You have the right to use this technical information
subject to the terms of the No-Nonsense License Statement that
you received with the Borland product to which this information
pertains.