home *** CD-ROM | disk | FTP | other *** search
/ ftp.barnyard.co.uk / 2015.02.ftp.barnyard.co.uk.tar / ftp.barnyard.co.uk / cpm / walnut-creek-CDROM / ENTERPRS / CPM / UTILS / S / TRISOFT1.LBR / HELP.3Z / HELP.3
Text File  |  2000-06-30  |  15KB  |  450 lines

  1. + 1 DB
  2.                *  Relational DataBase Management Help Menu  *
  3.  
  4.  
  5.  
  6.             Commands                                    Starting Out
  7.      .........................         .....................................
  8.      |  UPDATE     ORDER     |         |  DBM     ||  DataBase Management  |
  9.      |  SELECT     GROUP     |         |  RECORD  ||  Record Definition    |
  10.      |  SET        COMPLETE  |         |  FORM    ||  Form   Definition    |
  11.      |.......................|         |  RULES   ||  Rules  Definition    |
  12.                                        |  EQ      ||  Rule  Equations      |
  13.                                        |..........||.......................|
  14.  
  15.  
  16.      Getting Around A DataBase                     Other Stuff
  17. .....................................  .....................................
  18. |  DBKS  || DataBase Keystrokes     |  |  CDB    || Changing DB Structure  |
  19. |  RR    || Revising Records        |  |  RG     || Report Generation      |
  20. |  SE    || Searching a DataBase    |  |  LINK   || Linking DataBases      |
  21. |........||.........................|  |.........||........................|
  22. + 1 UPDATE
  23. 1/1 WHAT NEXT?  <UPDATE>
  24.  
  25.  
  26. UPDATE  is  used to input or revise information into a database.
  27.  
  28. UPDATE will allow you to use almost all of your standard editing
  29. keystrokes only in the areas as defined in the FORM  and  RECORD
  30. DEFINITION -that is, in the FIELD areas between the {  and   } .
  31.  
  32.  
  33.  
  34. <CTRL-Q>    Exit T/Maker UPDATE Editor
  35.  
  36.  
  37.  
  38.  
  39. Warning:  T/Maker will not automatically  save your  update.  To
  40. SAVE your UPDATE session, leave the editor and type: SAVE
  41. + 2 DBM
  42. A DATABASE is nothing more than a structured way of storing information, and
  43. is very similar to a filing cabinet.
  44.  
  45. We  will use  the  EDIT  command  to  build  our  electronic  filing system.
  46.  
  47. After our electronic filing cabinet "structure" is built,  we'll use  UPDATE
  48. to enter  &  view information in file records.
  49.  
  50. ............................................................................
  51.  
  52. A  T/Maker database is made up of many RECORDS.
  53.  
  54. 1) The RECORD DEFINITION describes the information you wish to file & store-
  55.    an "example" record of sorts. (Pieces of information are called "fields".)
  56.  
  57.         * Every database must have a Record Definition.
  58.  
  59. 2) A FORM DEFINITION allows you to personally create Record-viewing screens.
  60.  
  61. 3) A RULES DEFINITION allows you to perform math on and between data fields.
  62. + 2 RECORD
  63. RECORD DEFINITION    ( How Information is stored within T/Maker )
  64.  
  65.  
  66. *  A  Record Definition always begins with ... <RECORD>
  67.                     and always ends   with ... <END>
  68.  
  69. *  " Fields " are placed in between these two markers.
  70.    A  Record Definition  can contain up to 100  different Fields.
  71.  
  72.                              *  "Fields" are surrounded by BRACES
  73. ..........................      and are up to 80 characters wide.
  74. |Example: Address Record |
  75. |........................|   *  Every line begins with a  unique,
  76. |<RECORD>                |      two digit line label or number.
  77. |01 {lastname         }  |
  78. |02 {firstname        }  |   *  Every line in a Record Def'n gets
  79. |03 {address          }  |      a line label, even blank lines.
  80. |04 {zip}                |
  81. |<END>                   |
  82. |........................|     (See  FIELDS for more on Fields)
  83. + 2 FORM
  84. FORM DEFINITION   ( How Information is viewed on the screen )
  85.  
  86.  
  87. While the Record Definition describes the basic storage layout of information,
  88. the  FORM DEFINITION  allows us to present  our  Records  on the screen in any
  89. order, manner, and design we wish.
  90.  
  91.  
  92. *  A Form Definition always begins  with ...  <FORM>
  93.                   and  always ends  with ...  <END>
  94.  
  95. *  Fields can be placed  anywhere  on the screen.
  96.  
  97. *  A FORM can be a maximum of:   80 characters wide and 24 rows long.
  98.  
  99. *  You can attach up to  7  different  FORMS to one database.
  100.  
  101. *  A Form Definition is defined before the Rules and Record Definitions.
  102.  
  103. *  You can insert as much "design-text" as you wish.
  104. +
  105. <FORM>
  106. ......................... EXAMPLE ADDRESS CARD ........................
  107.  
  108.  Last Name: {lastname }   FirstName: {firstname}
  109.  
  110.  Address: {address             }
  111.  
  112.  City: {city                }     State: {state}    Zip Code: {zip}
  113. .......................................................................
  114. <END>
  115.  
  116. <RECORD>
  117. 01 {lastname }
  118. 02 {firstname}
  119. 03 {address             }
  120. 04 {city                }
  121. 05 {state}
  122. 06 {zip}
  123. <END>
  124. + 2 RULES
  125. RULES DEFINITION  ( Math Relationship between fields )
  126.  
  127.  
  128. We can turn our database in to a  type of  "spreadsheet"  by defining
  129. "RULES" between different FIELDS in our database.
  130.  
  131. The RULES DEFINITION expresses the relationships that we want to SET.
  132.  
  133. The SET command "sets" the RULES in motion.
  134.                                                   A RULES DEFINITION:
  135. ...................................
  136. | Example: Calculating Sales Tax  |    * Always begins with...<RULES>
  137. |.................................|
  138. |<RULES>                          |    * Always ends   with ...<END>
  139. |Tax = (Quantity * Price) * 0.065 |
  140. |Total = (Quantity * Price) + Tax |    * Always is defined:
  141. |<END>                            |        Before a Record Definition
  142. |.................................|        After  a Form Definition.
  143.  
  144.   (See SET for more on command; See EQ for more on Rules Equations)
  145. + 2 EQ
  146. RULE EQUATIONS
  147.  
  148.  
  149. A  "RULE"  will  define  or  calculate  the  value  of  a  Field  in relation
  150. to other Fields in a database.  A rule is "SET" in motion by the SET command.
  151.  
  152. Defining  a  "relationship"  is  just like  writing  a  simple  (or  complex)
  153. formula on a chalkboard.
  154.  
  155.         *  The following operators may be used for Rule Equations  *
  156. .............................................................................
  157.  +   addition        |   <   less than     |   <=   less  than  or  equal to
  158.  -   subtraction     |   >   greater than  |   >=   greater than or equal to
  159.  *   multiplication  |   =   equal to      |
  160.  /   division        |  <>   not equal to  |
  161. .....................|.....................|.................................
  162.   contains    e.g. "the" contains "h"    |   not    logical "not"
  163.   within      e.g. "h" within "the"      |   and    logical "and"
  164.   among       e.g. "A" among " A  B"     |   or     logical "or"
  165. .........................................|...................................
  166. + 3 WHEN
  167. WHEN STATEMENTS
  168.  
  169. A WHEN statement allows you to "selectively" calculate database
  170. RULES "if" certain conditions or criteria are met.
  171.  
  172. The WHEN condition is the "situation" that  must be  "true"  in
  173. order to carry out the first part of the equation.
  174.  
  175.  
  176. <RULES>
  177.    Price 9,999.99 = Price
  178.    Tax = (Qty * Price) * 0.065   WHEN State =  CA
  179.    Tax = 0                       WHEN State <> CA
  180.    Total 999,999 = (Qty * Price) + Tax + Shipping
  181.    Comment = "Great Sale!"  WHEN Total > 1000
  182. <END>
  183.  
  184.  
  185. NOTES: That we can specify "format" and "accuracy" of numerical
  186.        fields by putting a "Model Number" after the field name.
  187. + 2 SET
  188. 1/1 WHAT NEXT?   <SET>
  189.  
  190.  
  191.  
  192.  
  193. SET "sets" in motion the numeric or character equations as defined
  194. in the RULES DEFINITION.
  195.  
  196.  
  197.  
  198.  
  199.  
  200.             ( See  RULES  for Rules Examples )
  201. + 2 FIELDS
  202. DATABASE FIELDS
  203.  
  204. A FIELD is a piece of information.  It is defined by a FIELD NAME
  205. surrounded  by  BRACES.
  206.  
  207. Field Justifiers can be placed anywhere between the  {  and   } .
  208. .....
  209. | > |  Defines  numerical field  and is right justified.
  210. | < |  Defines  character field  and is left  justified.
  211. | - |  This symbol will  center  information in a field.
  212. |...|
  213. If you do not specify a field "type", the default is:
  214.  
  215. (1) a char field,   or  (2) To the previously defined field type.
  216.  
  217. Examples:
  218.  
  219. {<lastname}     is char field for last name and is 10 chars wide.
  220.  
  221. {>total}    is numeric field for value total and is 8 chars wide.
  222. + 2 DBKS
  223. * T/MAKER DATABASE KEYSTROKES *
  224.  
  225. <ESC>  >      Insert Record
  226. <ESC>  <      Delete Record
  227.  
  228. <ESC> <up>    Record Up
  229. <ESC><down>   Record Down
  230.  
  231. <ESC> <A>     Move to First Record
  232. <ESC> <Z>     Move to Last  Record
  233.  
  234. <CTRL-P>      Advance to Next Word
  235. <TAB>         Advance to Next Field
  236. <ESC> <TAB>   Previous Field
  237.  
  238. <ENTER>       First Field, Next Line
  239. <ESC> <ENTER> Next Record, First Field
  240. +
  241. CHANGING SCREEN FORMS
  242.  
  243. You can display data with up to 7 different types of Screen Forms.
  244.  
  245. <ESC> <F>    Scrolls through each Form Definition.
  246.  
  247. ................................................
  248. |<FORM>                                        |   * Example: Name Entry *
  249. |       Form 1: Enter First Name: {firstname}  |
  250. |<END>                                         |     In UPDATE Mode, type:
  251. |                                              |
  252. |<FORM>                                        |     [ESC] F to view FORM 2,
  253. |       Form 2: Enter Last Name : {lastname }  |     [ESC] F to return to 1.
  254. |<END>                                         |
  255. |                 .............................|
  256. |<RECORD>         |
  257. |01 {firstname}   |
  258. |02 {lastname }   |
  259. |<END>            |
  260. |.................|
  261. + 2 RR
  262. *  INSERTING & DELETING & MOVING & COPYING RECORDS  *
  263.  
  264.  
  265. <ESC>  >   Insert A Record    (Inserts a blank Record)
  266.  
  267.  
  268. <ESC>  <   Delete A Record    (Deletes the currently displayed Record)
  269.  
  270.  
  271. <CTRL-F>   Copy to the Buffer
  272.                                              NOTE:
  273.                                                 The Buffer will only
  274. <CTRL-G>   Move to the Buffer                   hold  one   complete
  275.                                                 record.   Also,  the
  276.                                                 Buffer automatically
  277. <CTRL-D>   Insert (Dump) Buffer                 empties   when   you
  278.                                                 exit the UPDATE mode.
  279.  
  280. <CTRL-C>   Clear Buffer
  281. + 2 SE
  282. SEARCHING A DATABASE
  283.  
  284.  
  285.  
  286. <ESC> <'>    Search for a string
  287.  
  288.  
  289. <ESC> <&>    Continue the search
  290.  
  291.  
  292.  
  293.  
  294.  
  295. Note:  Always Home the Screen before searching a database.
  296. + 2 SELECT
  297. 1/1 WHAT NEXT?   <SELECT>
  298.  
  299. SELECT  allows  you to extract particular information from  a  database.
  300.  
  301.  Options:
  302.    *  FILE-NAME  (or choose IT when SELECTing from  current work space.)
  303.    *  LIST       (To list all  possible Field Names you can  SELECT  on).
  304.    *  WHEN       (SELECT conditionally - that is, using WHEN statement.)
  305.  
  306.                  ( See help topic WHEN for more information.)
  307. ............................................................................
  308. Example:
  309.  
  310. 1/1 WHAT NEXT?    SELECT IT WHEN REGION = West and REVENUES > 5500 END
  311.  
  312.  
  313. NOTE:  SELECT "cuts out" the un-SELECTED records from current work space.
  314. Therefore,  never  do a SAVE after a SELECT unless you RENAME the current
  315. work space first (else you will lose the "temporarily" discarded Records).
  316. + 2 CDB
  317. CHANGING A DATABASE
  318.  
  319.  
  320. Accomplish changes to the structure of a database by using the SELECT Command.
  321.  
  322.  
  323.     Step-by-Step:
  324.  
  325. 1)  Make sure you have the database SAVEd on disk.
  326.  
  327. 2)  GET database file and jump into the editor.  Make appropriate
  328.     changes to the  Record Definition  and  Forms Definition.
  329.  
  330. 3)  Move your cursor to the <END> line of  Record Definition, and
  331.     Exit the Editor.   ( <END>  should be at Top of your Screen.)
  332.  
  333. 4)  Type:    CLIP AFTER  1/1
  334.  
  335. 5)  Type:    SELECT (filename) END
  336. + 2 RG
  337. REPORT GENERATION
  338.  
  339.  
  340.  
  341. * Set up report as a Record Definition.(These reports don't take up much space)
  342.  
  343. * Make sure all field names in all Record Definitions match exactly.
  344.  
  345. * Use the SELECT command to  select the information from an existing
  346.   database into your "custom-made" report.
  347.  
  348.  
  349.  
  350.  
  351. NOTE:   The resulting report should be RENAMEd and SAVEd if you want
  352.         to use the report "mask" to create future reports.
  353. + 2 LINK
  354. LINKING DATABASES
  355.  
  356.  
  357. You can "link" identical  databases together with the <CONTINUE> filename
  358. option.  With the CONTINUE, you can SELECT and COMPLETE across databases.
  359.  
  360.       *  Database Record Definitions must be identical.
  361.  
  362.       *  The last line of each file will contain <CONTINUE> and the  name
  363.          of database that is next in line.
  364.  
  365.  
  366.  
  367. Example:
  368. .....................
  369. |So this will be    |      To  "link"  DBASE1  and  DBASE2 together,
  370. |the end of this    |      at  the  end  of  DBASE1,    include  the
  371. |file.              |      <continue>  [filename to be continued to]
  372. |<CONTINUE> DBASE2  |      marker.
  373. |...................|
  374. +
  375.  -----  LINKING CON'T
  376.  
  377. To SELECT certain information from "linked" databases, type:
  378.  
  379.  
  380. 1/1 WHAT NEXT?   SELECT (filename) when ...    to begin the process.
  381.  
  382.  
  383. (When using  SELECT  with  the  IT instead of specifying a filename,
  384. the  <CONTINUE>  request is ignored.)
  385.  
  386.  
  387. When you  SELECT across databases, the resulting database  or report
  388. MUST  fit in the  work  file.   If you  still need more  space,  try
  389. SELECTing in blocks.   Here's an example:
  390.  
  391.  
  392.  1/1 WHAT NEXT?   SELECT (filename) from 1 to 100 when CITY = CA end
  393.  
  394.                   SELECT (filename) from 101 to 200 when CITY = CA end
  395. + 2 ORDER
  396. 1/1 WHAT NEXT?   <ORDER>
  397.  
  398.  
  399.  
  400. Use ORDER to sort a database.
  401.  
  402.  
  403.  
  404. T/Maker will prompt you for the following information:
  405.  
  406.    ascending or descending?
  407.    numerical or characters?
  408.    field name?    (field to be "ordered" on)
  409.  
  410.  
  411.  
  412. Because you can abbreviate these answers,  never  use
  413. A, D, N, or  C  as the name of a database Field.
  414. + 2 COMPLETE
  415. 1/1 WHAT NEXT?   <COMPLETE>
  416.  
  417.  
  418.  
  419. COMPLETE links information from two or more separate  database  files.
  420. It brings in  data  into the work file on the basis  of  a  KEY FIELD.
  421.  
  422.  
  423. If you have partial  data  in one file that can  be  "COMPLETED"  with
  424. the  data in another file, simply specify the name of that other file,
  425. and the key field that is common to both files.
  426.  
  427.  
  428.  
  429.         ( See Reference Manual under "COMPLETE" for examples. )
  430. + 2 GROUP
  431. 1/1 WHAT NEXT?   <GROUP>
  432.  
  433.  
  434. GROUP  summarizes data in a database work file and presents a report of
  435. its results.
  436.  
  437. * For numerical values, GROUP will "total" the values in the key field.
  438. * For character values, GROUP will simply present the  key field label.
  439.  
  440. GROUP on as many key fields as you wish. (LIST displays all keyfields.)
  441.  
  442.  
  443. Note:
  444.    Always RENAME a GROUP report if you intend to SAVE it, or else  you
  445.    will lose the database Records that made up the report.
  446.  
  447.    Always enter names in the exact same way they are spelled.
  448.  
  449.              ( See Reference Manual for GROUP Examples. )
  450. ÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷