home *** CD-ROM | disk | FTP | other *** search
/ PC Press 1997 July / Sezamfile97_1.iso / msdos / database / pdx_ti2.arj / TI1079.ASC < prev    next >
Text File  |  1992-08-12  |  6KB  |  265 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.   PRODUCT  :  Reflex                                NUMBER  :  1079
  9.   VERSION  :  2.0
  10.        OS  :  DOS
  11.      DATE  :  August 12, 1992                          PAGE  :  1/4
  12.  
  13.     TITLE  :  Performing a Fixed Length Export Using Report View
  14.  
  15.  
  16.  
  17.  
  18.   Intended Audience:
  19.   A moderate level of Reflex 2.0 experience.
  20.  
  21.   Prerequisites:
  22.   Previous experience with Reflex 2.0 Report View.
  23.  
  24.   Purpose:
  25.   A simple way to export Reflex 2.0 data to a fixed length record
  26.   ASCII file.
  27.  
  28.   There are two ways to create a fixed length record ASCII file
  29.   from a Reflex database.  One method of exporting out a database
  30.   to a fixed length ASCII file is to use the Translate function
  31.   within Reflex.  For additional information on the Translate
  32.   function, refer to Chapter 8 of the Reflex User's Guide.  Another
  33.   method is to use the Report Generator of Reflex which can easily
  34.   generate output to ASCII files.  The Report Generator affords
  35.   additional advantages over the Translate function.  For example,
  36.   the Report Generator enables you to alter the field order, select
  37.   particular fields, and to use filters to select a subset of
  38.   records from the database.  The Report Generator can be used to
  39.   export out data to a fixed length file, provided the total length
  40.   of the fields you want to export do not exceed 254 characters.
  41.  
  42.   Follow these steps to create a fixed length record ASCII file
  43.   from your Reflex database.
  44.  
  45.      1.  Start Reflex and open the database you want to export:
  46.  
  47.             a.  Press <F10>, then select Database | Open
  48.  
  49.             b.  Press <F9>, then highlight the database you want to
  50.                 export.
  51.  
  52.      2.  Choose Report & Labels from the View menu option:
  53.  
  54.             a.  Press <F10>
  55.  
  56.             b.  Select Views | Report & Labels
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.   PRODUCT  :  Reflex                                NUMBER  :  1079
  75.   VERSION  :  2.0
  76.        OS  :  DOS
  77.      DATE  :  August 12, 1992                          PAGE  :  2/4
  78.  
  79.     TITLE  :  Performing a Fixed Length Export Using Report View
  80.  
  81.  
  82.  
  83.  
  84.      3.  You are now in the Report Design mode.  If you have an
  85.          existing Report on the screen, perform the steps below to
  86.          save the Report view and to clear the Report Window.  If
  87.          you are in a brand new report and you do not have any
  88.          fields placed in the report, skip to step 4.
  89.  
  90.             a.  Press <F10>
  91.  
  92.             b.  Select Save | View
  93.  
  94.             c.  Type in a file name, then select Proceed.
  95.  
  96.                 NOTE: If you have an existing view with the same
  97.                 file name, Reflex will prompt you to confirm you
  98.                 want to replace the existing file name.
  99.  
  100.             d.  You are now ready to clear the Report Window.
  101.  
  102.             e.  Press <F10>, then select Edit | Window | Clear
  103.  
  104.             f.  You should now have a new report on the screen.
  105.  
  106.      4.  To insert a line above the bottom Detail band:
  107.  
  108.             a.  Move the cursor to the last line of Detail Band and
  109.                 press the Insert key.
  110.  
  111.             b.  Press <Esc> to deselect the line
  112.  
  113.      5.  Place the fields you want to export by following these
  114.          steps:
  115.  
  116.             a.  Press the <F9> key and highlight the field you
  117.                 want.
  118.  
  119.             b.  Press the <Enter> key to place that field.
  120.  
  121.             c.  Move the cursor to the right two spaces using the
  122.                 right arrow key.
  123.  
  124.             d.  Repeat steps a through c until all of the desired
  125.                 fields are placed.
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.   PRODUCT  :  Reflex                                NUMBER  :  1079
  141.   VERSION  :  2.0
  142.        OS  :  DOS
  143.      DATE  :  August 12, 1992                          PAGE  :  3/4
  144.  
  145.     TITLE  :  Performing a Fixed Length Export Using Report View
  146.  
  147.  
  148.  
  149.  
  150.      6.  Make sure there is no information in any other section of
  151.          the report, (i.e. introduction, header, summary).
  152.  
  153.      7.  Set the margin and page length settings.
  154.  
  155.             a.  Determine what the right margin setting should be.
  156.                 Move the cursor to the rightmost field in the
  157.                 report.  At the bottom of the screen Reflex will
  158.                 display the following message:
  159.  
  160.                        Row: # From Col: X Through Col: Y
  161.  
  162.                 The right margin setting in the report must be
  163.                 equal to, or greater than, the value Y (the ending
  164.                 column value for the last field) however, it cannot
  165.                 exceed 254 characters.
  166.  
  167.             b.  You are now ready to set the printer settings.
  168.  
  169.             c.  Press <F10>, then select Report | View Printer
  170.                 Settings
  171.  
  172.             d.  Set the Left Margin to 0.
  173.  
  174.             e.  Set the Right Margin to the value you determined in
  175.                 step a.
  176.  
  177.             f.  Set the Top Margin to 0.
  178.  
  179.             g.  Set the Bottom Margin to 0.
  180.  
  181.             h.  Choose ("X") the Continuous box.
  182.  
  183.             i.  Choose ("X") the "Print Page Breaks No" box
  184.  
  185.             j.  Make sure there is no setup string entered in the
  186.                 setup string box, otherwise it will be exported
  187.                 along with your data.
  188.  
  189.             k.  Select Proceed
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.   PRODUCT  :  Reflex                                NUMBER  :  1079
  207.   VERSION  :  2.0
  208.        OS  :  DOS
  209.      DATE  :  August 12, 1992                          PAGE  :  4/4
  210.  
  211.     TITLE  :  Performing a Fixed Length Export Using Report View
  212.  
  213.  
  214.  
  215.  
  216.      8.  Choose Print from the Utilities menu:
  217.  
  218.             a.  Press <F10>, then select Utilities | Print
  219.  
  220.      9.  Choose ("X") the File box.
  221.  
  222.     10.  Choose ("X") the ASCII box.
  223.  
  224.     11.  Give the file a name; you must include the path to where
  225.          you want the file stored.  For example: c:\reflex\test.
  226.  
  227.     12.  Choose Proceed.
  228.  
  229.   After following the steps listed above, you will have created a
  230.   fixed length record ASCII file.
  231.  
  232.   DISCLAIMER: You have the right to use this technical information
  233.   subject to the terms of the No-Nonsense License Statement that
  234.   you received with the Borland product to which this information
  235.   pertains.
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.