home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / t / tech91.zip / TI777.ASC < prev    next >
Text File  |  1991-08-26  |  3KB  |  133 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.   PRODUCT  :  Paradox                                NUMBER  :  777
  9.   VERSION  :  All
  10.        OS  :  DOS
  11.      DATE  :  August 26, 1991                          PAGE  :  1/2
  12.  
  13.     TITLE  :  Exporting a fixed length ASCII from Paradox
  14.  
  15.  
  16.  
  17.  
  18.                     Exporting a Fixed Length ASCII
  19.                           File from Paradox
  20.  
  21.   This document describes how to create a Fixed Length ASCII file
  22.   using the Paradox report generator.
  23.  
  24.   Paradox will let you export a delimited ASCII file from within
  25.   the menu system.  This is an ASCII file where each line is a new
  26.   record, with delimiters around the fields (usually the quote mark
  27.   <">) and separators between the fields (usually the comma
  28.   character <,>).
  29.  
  30.   Some applications will import a fixed length file.  This is an
  31.   ASCII file where each line represents a new record, but there are
  32.   no delimiters or separators.  Instead each field occupies the
  33.   same number of characters whether or not the data actually fills
  34.   up the whole field.  Where the data is shorter in length than a
  35.   particular field has been defined, spaces will be added to allow
  36.   the next field to begin at its proper position.
  37.  
  38.   To output a fixed length ASCII file from Paradox you will need to
  39.   use the report generator:
  40.  
  41.   Pick {Report} {Design} from the Paradox main menu.  Specify your
  42.   table and choose an unused report specification.  After entering
  43.   the description you will be asked if you want a tabular or free-
  44.   form report; choose {Tabular}.
  45.  
  46.   Remove all headers and footers by pressing <Ctrl-Y> while at the
  47.   left margin.  Remove all lines within the table band except the
  48.   line containing your field masks (the AAAs and 999s).
  49.  
  50.   Your resulting report definition should look like the following:
  51.  
  52.   Page─────────────────────────────────────────────────────────────
  53.   ┬Table─┬──────────┬───────┬───┬────┬────────┬────┬─────────────┬─
  54.   AAAAA   999999999  AAAAAA  AA  AAA  999999   AA   999999999999
  55.   ┴Table─┴──────────┴───────┴───┴────┴────────┴────┴─────────────┴─
  56.   Page─────────────────────────────────────────────────────────────
  57.  
  58.   You can adjust your starting and ending field position for your
  59.   fixed output file as needed.
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.   PRODUCT  :  Paradox                                NUMBER  :  777
  75.   VERSION  :  All
  76.        OS  :  DOS
  77.      DATE  :  August 26, 1991                          PAGE  :  2/2
  78.  
  79.     TITLE  :  Exporting a fixed length ASCII from Paradox
  80.  
  81.  
  82.  
  83.  
  84.   Your page length should be set to continuous: {Settings}
  85.   {PageLayout} {Length} set your length to <C>.
  86.  
  87.   Your page width should be set for at least as many characters as
  88.   are in one record.  Use {Setting} {PageLayout} {Width}.  You can
  89.   see what the number of characters is by using your right arrow to
  90.   move to the far right of your report to see what character number
  91.   it ends on.
  92.  
  93.   If you are using a setup string, remove it.  Use <F10> {Settings}
  94.   {Setup} {PreDefined} and Select {StandardPrinter}.  This must not
  95.   be using any Setup String.
  96.  
  97.   Save the report with <F2>.
  98.  
  99.   Next, pick {Report} {Output} {File} and choose a name for your
  100.   new Fixed Length file.
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.