home *** CD-ROM | disk | FTP | other *** search
/ PC Treasures, Inc. / pctreasures.mdf / WINDOWS / adabas / f_0001 / env / report.enh < prev    next >
Text File  |  1999-11-01  |  57KB  |  726 lines

  1. ENG|08          |     0     REPORT.enh   10.05.01   1998-04-24
  2. ENG|08          |     1|  |
  3. ENG|08          |     3|  |       R E P O R T   F U N C T I O N S :
  4. ENG|08          |     5|  |            Positioning in the result table
  5. ENG|08          |     7| M|            #07  BOTTOM    branching to the end of the result table
  6. ENG|08          |     8| M|            #06  TOP       branching to the beginning of the result table
  7. ENG|08          |     9| M|            #05  DOWN      scrolling forward in the result table
  8. ENG|08          |    10| M|            #04  UP        scrolling backward in the result table
  9. ENG|08          |    11| M|            #08  LEFT      moving the displayed section to the left
  10. ENG|08          |    12| M|            #09  RIGHT     moving the displayed section to the right
  11. ENG|08          |    13| M|            #10  POS       positioning to any table column
  12. ENG|08          |    14| M|            #11  TAB       tabulator in a wide column
  13. ENG|08          |    15| M|            #37  FIX       fixing a column on the screen
  14. ENG|08          |    16|SM|            #38  WINDOW    REPORT screen output in a window
  15. ENG|08          |    19|  |            Format of the result table
  16. ENG|08          |    21| M|            #28  RTITLE    heading for the first output page
  17. ENG|08          |    22| M|            #29  TTITLE    heading for every output page
  18. ENG|08          |    23| M|            #30  BTITLE    footing for every output page
  19. ENG|08          |    24| M|            #12  NAME      renaming a column
  20. ENG|08          |    25| M|            #13  NUMBER    displaying the column numbers
  21. ENG|08          |    26| M|            #43  LINENO    displaying row numbers
  22. ENG|08          |    27| M|            #15  EXCLUDE   excluding columns from the result table display
  23. ENG|08          |    28| M|            #16  INCLUDE   redisplaying excluded columns
  24. ENG|08          |    29| M|            #14  WIDTH     changing the column width
  25. ENG|08          |    30| M|            #17  SEPARATOR separator character between the table columns
  26. ENG|08          |    31| M|            #18  GROUP     grouping rows of the result table
  27. ENG|08          |    32| M|            #40  LFEEDS    controllable line feed at the end of group
  28. ENG|08          |    33| M|            #39  PAGE      controllable form feed at the end of group
  29. ENG|08          |    34|SM|            #45  LONG      displaying the beginning of CHAR LONG columns
  30. ENG|08          |    37|  |            Calculations based on values of the result table
  31. ENG|08          |    39| M|            #20  SUBTOTAL  calculations across grouped columns
  32. ENG|08          |    40| M|            #21  PSUBTOTAL subtotals per page for long groups
  33. ENG|08          |    41| M|            #19  TOTAL     calculations across columns
  34. ENG|08          |    43|  |            Representing values in the result table
  35. ENG|08          |    45| M|            #22  SET       display of the control parameters
  36. ENG|08          |    46| M|            #23  NULL      represention of the NULL values
  37. ENG|08          |    47| M|            #24  DECIMAL   defining the representation of numbers
  38. ENG|08          |    48| M|            #41  FORMAT    formatted output of numbers
  39. ENG|08          |    49| M|            #42  CRDB      sign representation in account representations
  40. ENG|08          |    50| M|            #26  LEAD      leading characters for numeric values
  41. ENG|08          |    51| M|            #27  TRAIL     trailing characters for numeric values
  42. ENG|08          |    52| M|            #25  PROTECT   treatment of leading zeros
  43. ENG|08          |    53|SM|            #34  ASCII     ASCII representation of BYTE columns
  44. ENG|08          |    55| M|            #35  EBCDIC    EBCDIC representation of BYTE columns
  45. ENG|08          |    56| M|            #36  HEXADEC   hexadecimal representation of BYTE columns
  46. ENG|08          |    58|  |            Writing the result table to paper or disk
  47. ENG|08          |    60| M|            #31  PRINT     prints the current result table
  48. ENG|08          |    61| M|            #32  CLOSE     prints the contents of the spool area
  49. ENG|08          |    62| M|            #33  PUT       writes the current result table into a file
  50. ENG|08          |    64|  |            General commands
  51. ENG|08          |    66| M|            #01  HELP      displays explanations on the screen
  52. ENG|08          |    67| M|            #44  DETAIL    displays Master-Detail REPORT
  53. ENG|08          |    68| M|            #46  ZOOM      displays the content of a LONG column
  54. ENG|08          |    69| M|            #47  DATE      displays date and time
  55. ENG|08          |    70| M|            #03  END       leaves the REPORT mode
  56. ENG|08          |    71|RM|            #02  EXIT      terminates a QUERY session
  57. ENG|0801        |     1|  |
  58. ENG|0801        |     3|  |       H E L P   command :
  59. ENG|0801        |     5|  |            Displays explanations on the screen.
  60. ENG|0801        |     7|  |            SYNTAX :  HELP  [ <command name> ]
  61. ENG|0801        |     9|  |            HELP  without  command  name  displays  a  menu.  HELP with
  62. ENG|0801        |    10|R |            command name directly displays the pertinent information.
  63. ENG|0802        |     1|  |
  64. ENG|0802        |     3|  |       E X I T   command :
  65. ENG|0802        |     5|  |            Terminates a QUERY session.
  66. ENG|0802        |     7|  |            SYNTAX :  EXIT
  67. ENG|0802        |     9|  |            EXIT leaves QUERY. All the modifications  are  recorded  in
  68. ENG|0802        |    10|R |            the database.
  69. ENG|0803        |     1|  |
  70. ENG|0803        |     3|  |       E N D   command :
  71. ENG|0803        |     5|  |            END leaves the REPORT mode.
  72. ENG|0803        |     7|  |            SYNTAX :  END
  73. ENG|0803        |     9|  |            The  END  command  leaves the REPORT mode. When leaving the
  74. ENG|0803        |    10|  |            REPORT mode, take into account that unnamed  result  tables
  75. ENG|0803        |    11|R |            will not exist any more.
  76. ENG|0804        |     1|  |
  77. ENG|0804        |     3|  |       U P   command :
  78. ENG|0804        |     5|  |            Scrolling back in the result table.
  79. ENG|0804        |     7|  |            SYNTAX :  UP  [<n> | MAX ]
  80. ENG|0804        |     9|  |            The  screen is a window to the result table. UP can be used
  81. ENG|0804        |    10|  |            for scrolling back one page, UP n can be used for scrolling
  82. ENG|0804        |    11|  |            back n lines, UP MAX can be used for scrolling back to  the
  83. ENG|0804        |    12|R |            beginning of the result table.
  84. ENG|0805        |     1|  |
  85. ENG|0805        |     3|  |       D O W N   command :
  86. ENG|0805        |     5|  |            Scrolling forward in the result table.
  87. ENG|0805        |     7|  |            SYNTAX :  DOWN  [<n> | MAX]
  88. ENG|0805        |     9|  |            The  screen  is  a  window to the result table. DOWN can be
  89. ENG|0805        |    10|  |            used for scrolling forward one page, DOWN n can be used for
  90. ENG|0805        |    11|  |            scrolling forward  n  lines,  DOWN  MAX  can  be  used  for
  91. ENG|0805        |    12|R |            scrolling to the end of the result table.
  92. ENG|0806        |     1|  |
  93. ENG|0806        |     3|  |       T O P   command :
  94. ENG|0806        |     5|  |            Branching to the beginning of the result table.
  95. ENG|0806        |     7|  |            SYNTAX :  TOP
  96. ENG|0806        |     9|  |            The screen is a window to the result table. TOP branches to
  97. ENG|0806        |    10|R |            the beginning of the result table.
  98. ENG|0807        |     1|  |
  99. ENG|0807        |     3|  |       B O T T O M   command :
  100. ENG|0807        |     5|  |            Branching to the end of the result table.
  101. ENG|0807        |     7|  |            SYNTAX :  BOTTOM
  102. ENG|0807        |     9|  |            The screen is a window to the result table. BOTTOM branches
  103. ENG|0807        |    10|R |            to the end of the result table.
  104. ENG|0808        |     1|  |
  105. ENG|0808        |     3|  |       L E F T   command :
  106. ENG|0808        |     5|  |            Moving the displayed section to the left.
  107. ENG|0808        |     7|  |            SYNTAX :  LEFT  [<n>]
  108. ENG|0808        |     9|  |            The screen is a window to the result table. LEFT moves this
  109. ENG|0808        |    10|  |            window to the left. LEFT n moves the window n table columns
  110. ENG|0808        |    11|  |            to  the  left.  LEFT  without n moves the window one screen
  111. ENG|0808        |    12|R |            width to the left.
  112. ENG|0809        |     1|  |
  113. ENG|0809        |     3|  |       R I G H T   command :
  114. ENG|0809        |     5|  |            Moving the displayed section to the right.
  115. ENG|0809        |     7|  |            SYNTAX :  RIGHT [<n>]
  116. ENG|0809        |     9|  |            The screen is a window to the result table. RIGHT moves the
  117. ENG|0809        |    10|  |            window to the right. RIGHT  n  moves  the  window  n  table
  118. ENG|0809        |    11|  |            columns  to the right. RIGHT without n moves the window one
  119. ENG|0809        |    12|R |            screen width to the right.
  120. ENG|0810        |     1|  |
  121. ENG|0810        |     3|  |       P O S   command :
  122. ENG|0810        |     5|  |            Positioning to any table column.
  123. ENG|0810        |     7|  |            SYNTAX :  POS  <n>
  124. ENG|0810        |     9|  |            The POS command has the  effect  that  the  selected  table
  125. ENG|0810        |    10|  |            column begins at the left margin. n is always the number of
  126. ENG|0810        |    11|R |            the column in the original result table.
  127. ENG|0811        |     1|  |
  128. ENG|0811        |     3|  |       T A B   command :
  129. ENG|0811        |     5|  |            Tabulator in a wide column.
  130. ENG|0811        |     7|  |            SYNTAX :  TAB <n>
  131. ENG|0811        |     9|  |            TAB  positions  within  a  column  which  is wider than the
  132. ENG|0811        |    10|  |            screen. The position specified by n  is  displayed  at  the
  133. ENG|0811        |    11|R |            left margin of the screen.
  134. ENG|0812        |     1|  |
  135. ENG|0812        |     3|  |       N A M E   command :
  136. ENG|0812        |     5|  |            Renaming a column.
  137. ENG|0812        |     7|  |            SYNTAX :  NAME  <column> <new name> [CENTER]
  138. ENG|0812        |     9|  |            The  NAME  command  can  be used for defining new names for
  139. ENG|0812        |    10|  |            columns of the result table. <column> is the  name  or  the
  140. ENG|0812        |    11|  |            number of the column to be modified.
  141. ENG|0812        |    13|  |            The  old  name cannot be used any more in subsequent REPORT
  142. ENG|0812        |    14|  |            commands. The new column name must not begin with a  digit,
  143. ENG|0812        |    15|  |            it  must  not  contain  blanks,  and it must be enclosed in
  144. ENG|0812        |    16|S |            single quotes if lower case letters are to be included.
  145. ENG|0812        |    19|  |            If BLANK is inserted in place of  <new  name>,  the  column
  146. ENG|0812        |    20|  |            name will subsequently consist of blanks only. This special
  147. ENG|0812        |    21|  |            name  only represents the column. It does not designate it.
  148. ENG|0812        |    22|  |            Therefore further operations can only be performed via  the
  149. ENG|0812        |    23|  |            column number.
  150. ENG|0812        |    25|  |            '>'  characters  in  new column names mean that the name is
  151. ENG|0812        |    26|  |            displayed in more than one row. The option CENTER  has  the
  152. ENG|0812        |    27|  |            effect  that the new name is displayed in the middle of the
  153. ENG|0812        |    28|  |            column.
  154. ENG|0812        |    30|  |            The length of the name may have 40 characters at the most.
  155. ENG|0812        |    32|  |            Examples:
  156. ENG|0812        |    33| E|
  157. ENG|0812        |    34| E|            NAME cno customer_no.       | CUSTOMER_NO.    |
  158. ENG|0812        |    35|SE|            NAME cno 'Customer_No.'     | Customer_No.    |
  159. ENG|0812        |    37| E|            NAME cno customer CENTER    |      CUSTOMER   |
  160. ENG|0812        |    38| E|            NAME cno customer>no.       | CUSTOMER        |
  161. ENG|0812        |    39|RE|
  162. ENG|0813        |     1|  |
  163. ENG|0813        |     3|  |       N U M B E R   command :
  164. ENG|0813        |     5|  |            Displaying the column numbers.
  165. ENG|0813        |     7|  |            SYNTAX :  NUMBER  ON | OFF
  166. ENG|0813        |     9|  |            NUMBER ON displays  the  column  numbers  in  the  original
  167. ENG|0813        |    10|  |            result table below the column names.
  168. ENG|0813        |    12|  |            These  numbers  can  be  used in REPORT commands instead of
  169. ENG|0813        |    13|  |            column names.  NUMBER  ON  is  in  effect  for  the  entire
  170. ENG|0813        |    14|  |            QUERY/REPORT session.
  171. ENG|0813        |    16|R |            The default setting is NUMBER OFF.
  172. ENG|0814        |     1|  |
  173. ENG|0814        |     3|  |       W I D T H   command :
  174. ENG|0814        |     5|  |            Changing the column width.
  175. ENG|0814        |     7|  |            SYNTAX :  WIDTH  <column> [+|-] <n> [<m>]
  176. ENG|0814        |     8|  |                      WIDTH  * | <
  177. ENG|0814        |     9|  |                      WIDTH  [<column>] OFF
  178. ENG|0814        |    11|  |            The WIDTH command changes the width of columns. <column> is
  179. ENG|0814        |    12|  |            the name or number of the column to be modified.
  180. ENG|0814        |    14|  |            <n> specifies the new column width. If a sign is specified,
  181. ENG|0814        |    15|  |            the   current  width  is  increased  or  decreased  by  the
  182. ENG|0814        |    16|  |            indicated value. <m> indicates  the  number  of  rows  into
  183. ENG|0814        |    17|S |            which  the values of the column are to be divided. <m> must
  184. ENG|0814        |    19|  |            not be greater than 8. Default is 1.
  185. ENG|0814        |    21|  |            * and < change the column width depending on the values  in
  186. ENG|0814        |    22|  |            the  columns. These changes apply to the entire table. Both
  187. ENG|0814        |    23|  |            options have only an effect on CHAR columns.
  188. ENG|0814        |    25|  |            < calculates the new column width in such a  way  that  the
  189. ENG|0814        |    26|  |            longest  value  from the current buffer may be represented.
  190. ENG|0814        |    27|  |            The column header can be truncated, if necessary.
  191. ENG|0814        |    29|  |            * works in a similar way, but the column  header  is  taken
  192. ENG|0814        |    30|  |            into consideration when computing the minimum lengths.
  193. ENG|0814        |    32|  |            OFF  redisplays  one  or  all  columns  with  their default
  194. ENG|0814        |    33|R |            widths.
  195. ENG|0815        |     1|  |
  196. ENG|0815        |     3|  |       E X C L U D E   statement :
  197. ENG|0815        |     5|  |            Excluding columns from the result table.
  198. ENG|0815        |     7|  |            SYNTAX :  EXCLUDE  [ALL BUT] <column>...
  199. ENG|0815        |     9|  |            EXCLUDE excludes columns from the  display  of  the  result
  200. ENG|0815        |    10|  |            table.  The  columns  are  defined either by their names or
  201. ENG|0815        |    11|  |            numbers. ALL BUT excludes  all  the  columns  except  those
  202. ENG|0815        |    12|R |            which have been specified.
  203. ENG|0816        |     1|  |
  204. ENG|0816        |     3|  |       I N C L U D E    command :
  205. ENG|0816        |     5|  |            Redisplaying excluded columns.
  206. ENG|0816        |     7|  |            SYNTAX :  INCLUDE [ ONLY ] [<column>...]
  207. ENG|0816        |     9|  |            INCLUDE  can  be  used  for redisplaying columns which have
  208. ENG|0816        |    10|  |            been excluded from the display by EXCLUDE. INCLUDE  without
  209. ENG|0816        |    11|  |            value  includes  all the columns. INCLUDE with a value only
  210. ENG|0816        |    12|  |            includes the specified columns.
  211. ENG|0816        |    14| I|            INCLUDE ONLY has the same effect as  ##0815EXCLUDE^ALL^BUT.  Only
  212. ENG|0816        |    15|  |            those  columns will be displayed which are specified in the
  213. ENG|0816        |    16|R |            column list.
  214. ENG|0817        |     1|  |
  215. ENG|0817        |     3|  |       S E P A R A T O R   command :
  216. ENG|0817        |     5|  |            Separator character between table columns.
  217. ENG|0817        |     7|  |            SYNTAX :  SEPARATOR  <character string>
  218. ENG|0817        |     9|  |            The character string must be enclosed in single  quotes  if
  219. ENG|0817        |    10|  |            it contains blanks or lower case letters.
  220. ENG|0817        |    12|  |            The  character string specified by the SEPARATOR command is
  221. ENG|0817        |    13|  |            only in effect for the current result table  and  does  not
  222. ENG|0817        |    14| I|            change  the  ##0822SET  parameter.  The  length  of the character
  223. ENG|0817        |    15|  |            string may be 20 characters at the most.
  224. ENG|0817        |    17|R |            example :    SEPARATOR ' | '
  225. ENG|0818        |     1|  |
  226. ENG|0818        |     3|  |       G R O U P   statement :
  227. ENG|0818        |     5|  |            Grouping rows of the result table.
  228. ENG|0818        |     7|  |            SYNTAX :  GROUP  [ REPEAT ] <column>... [ LEVEL <n> ]
  229. ENG|0818        |     8|  |                      GROUP [<column>...] OFF
  230. ENG|0818        |    10|  |            GROUP can be used for grouping the result  table  according
  231. ENG|0818        |    11|  |            to  any  columns. This is only useful if the table has been
  232. ENG|0818        |    12|  |            sorted according to these columns.
  233. ENG|0818        |    14|  |            A change in the value of one of the columns always  creates
  234. ENG|0818        |    15|  |            a  new group. Upon changing groups, a blank row will always
  235. ENG|0818        |    16|SI|            be inserted, if nothing else was determined by ##0840LFEEDS.
  236. ENG|0818        |    19|  |            If LEVEL numbers are  assigned,  columns  will  be  grouped
  237. ENG|0818        |    20|  |            hierarchically.  LEVEL  1 is the highest level; a column of
  238. ENG|0818        |    21|  |            LEVEL 2 will therefore only be grouped within  a  group  of
  239. ENG|0818        |    22|  |            LEVEL 1.
  240. ENG|0818        |    24|  |            OFF  cancels the grouping either of the specified column or
  241. ENG|0818        |    25|R |            of all columns.
  242. ENG|0819        |     1|  |
  243. ENG|0819        |     3|  |       T O T A L   command :
  244. ENG|0819        |     5|  |            Enables cross-column calculations.
  245. ENG|0819        |     7|  |            SYNTAX :  TOTAL  [<function>] [<comment>] <column>...
  246. ENG|0819        |     8|  |                      TOTAL  [<column>] OFF
  247. ENG|0819        |    10|  |            Possible functions:
  248. ENG|0819        |    11|  |                      SUM   : sum of all column values (default)
  249. ENG|0819        |    12|  |                      MIN   : smallest column value
  250. ENG|0819        |    13|  |                      MAX   : largest column value
  251. ENG|0819        |    14|  |                      AVG   : average value
  252. ENG|0819        |    15|  |                      COUNT : number of result rows
  253. ENG|0819        |    16|  |                      VAL1 ( <column> ) to VAL4 ( <column> )
  254. ENG|0819        |    17|S |                            : storage spaces for own calculations
  255. ENG|0819        |    19|  |            The functions are  performed  for  each  of  the  specified
  256. ENG|0819        |    20|  |            columns  and  the  result  is  displayed  at the end of the
  257. ENG|0819        |    21|  |            result table in the order of the commands.
  258. ENG|0819        |    23|  |            The result values can  be  provided  with  a  comment.  The
  259. ENG|0819        |    24|  |            character  string must be enclosed in single quotes. &COUNT
  260. ENG|0819        |    25|  |            in the character string is replaced by the number of result
  261. ENG|0819        |    26|  |            rows. &COLi is replaced by  the  last  value  of  the  i-th
  262. ENG|0819        |    27|  |            column.
  263. ENG|0819        |    29|  |            OFF  disables  all  the  functions either for the specified
  264. ENG|0819        |    30|  |            column or for all columns.
  265. ENG|0819        |    32|  |            examples:
  266. ENG|0819        |    33| E|
  267. ENG|0819        |    34| E|                 TOTAL amount turnover
  268. ENG|0819        |    35|SE|                 TOTAL MIN 'smallest of &COUNT values' amount
  269. ENG|0819        |    37| E|                 TOTAL turnover OFF
  270. ENG|0819        |    38| E|                 TOTAL VAL1(5) 'VAT sum' 14 * SUM (6) / 100
  271. ENG|0819        |    39| E|                 TOTAL VAL1(4) 'total units' COUNT (6)
  272. ENG|0819        |    40| E|                 TOTAL VAL1(6) 'VAT/unit' VAL1(5) / VAL1 (4)
  273. ENG|0819        |    41| E|
  274. ENG|0819        |    43|  |            The variables designated as VAL1 to VAL4  form  a  kind  of
  275. ENG|0819        |    44|  |            spreadsheet  having  as many columns as are included in the
  276. ENG|0819        |    45|  |            result table. VAL2(7), e.g., addresses the value stored  in
  277. ENG|0819        |    46|  |            row  two,  column  seven. Values can be assigned to each of
  278. ENG|0819        |    47|  |            these variables by  means  of  calculation  formula.  These
  279. ENG|0819        |    48|  |            formula   can   continue   computing  with  constants,  the
  280. ENG|0819        |    49|  |            functions SUM, MIN, MAX etc. as well as with  values  which
  281. ENG|0819        |    50|  |            are  already  available  in  other  variables  of  the same
  282. ENG|0819        |    51|R |            spreadsheet.
  283. ENG|0820        |     1|  |
  284. ENG|0820        |     3|  |       S U B T O T A L   command :
  285. ENG|0820        |     5|  |            Enables calculations across grouped columns.
  286. ENG|0820        |     7|  |            SYNTAX :  SUBTOTAL <function> [<comment>] <column> [LEVEL <n>]
  287. ENG|0820        |     8|  |                      SUBTOTAL  <column> OFF
  288. ENG|0820        |    10|  |            Possible functions:
  289. ENG|0820        |    11|  |                      SUM   : sum of all column group values (default)
  290. ENG|0820        |    12|  |                      MIN   : smallest column group value
  291. ENG|0820        |    13|  |                      MAX   : largest column group value
  292. ENG|0820        |    14|  |                      AVG   : average group value
  293. ENG|0820        |    15|  |                      COUNT : number of group result rows
  294. ENG|0820        |    16|  |                      VAL1 ( <column> ) to VAL4 ( <column> )
  295. ENG|0820        |    17|S |                            : storage spaces for own calculations
  296. ENG|0820        |    19|  |                      @<function>
  297. ENG|0820        |    20|  |                            : cumulating the values accumulated
  298. ENG|0820        |    21|  |                              in previous groups
  299. ENG|0820        |    23| I|            The results are only displayed if the ##0818GROUP command  is  in
  300. ENG|0820        |    24|  |            effect.
  301. ENG|0820        |    26|  |            The  functions  are  performed  for  each  of the specified
  302. ENG|0820        |    27|  |            columns and the result is  displayed  at  the  end  of  the
  303. ENG|0820        |    28|  |            result table in the order of the commands.
  304. ENG|0820        |    30|  |            Specifying  a  LEVEL  number  enables  the  calculation  of
  305. ENG|0820        |    31|  |            subtotals even for the grouping of another column.
  306. ENG|0820        |    33|  |            The result values can  be  provided  with  a  comment.  The
  307. ENG|0820        |    34|  |            character  string must be enclosed in single quotes. &COUNT
  308. ENG|0820        |    35|S |            in the character string is replaced by the number of result
  309. ENG|0820        |    37|  |            rows. &COLi is replaced by  the  last  value  of  the  i-th
  310. ENG|0820        |    38|  |            column.
  311. ENG|0820        |    40|  |            OFF  disables  all  the  functions either for the specified
  312. ENG|0820        |    41|  |            column or for all columns.
  313. ENG|0820        |    43|  |            examples:
  314. ENG|0820        |    44| E|
  315. ENG|0820        |    45| E|                 GROUP department
  316. ENG|0820        |    46| E|                 SUBTOTAL amount turnover
  317. ENG|0820        |    47| E|                 SUBTOTAL MIN 'smallest of &COUNT values' amount
  318. ENG|0820        |    48| E|                 SUBTOTAL turnover OFF
  319. ENG|0820        |    49| E|                 SUBTOTAL VAL1(6) 'unit' COUNT
  320. ENG|0820        |    50| E|                 SUBTOTAL VAL2(6) 'VAT' 14 * SUM / 100
  321. ENG|0820        |    51| E|                 SUBTOTAL VAL1 (DEBIT) @SUM (DEBIT)
  322. ENG|0820        |    52|SE|
  323. ENG|0820        |    55|  |            The variables designated as VAL1 to VAL4  form  a  kind  of
  324. ENG|0820        |    56|  |            spreadsheet  having  as many columns as are included in the
  325. ENG|0820        |    57|  |            result table. VAL2(7), e.g., addresses the value stored  in
  326. ENG|0820        |    58|  |            row  two,  column  seven. Values can be assigned to each of
  327. ENG|0820        |    59|  |            these variables by  means  of  calculation  formula.  These
  328. ENG|0820        |    60|  |            formula   can   continue   computing  with  constants,  the
  329. ENG|0820        |    61|  |            functions SUM, MIN, MAX etc. as well as with  values  which
  330. ENG|0820        |    62|  |            are  already  available  in  other  variables  of  the same
  331. ENG|0820        |    63|  |            spreadsheet.  Functions   without   column   specifications
  332. ENG|0820        |    64|R |            implicitly refer to the spreadsheet columns.
  333. ENG|0821        |     1|  |
  334. ENG|0821        |     3|  |       P S U B T O T A L   command :
  335. ENG|0821        |     5|  |            Enables  subtotals computed for long groups to be output at
  336. ENG|0821        |     6|  |            the end of each page.
  337. ENG|0821        |     8|  |            SYNTAX :  PSUBTOTAL <column> ...
  338. ENG|0821        |     9|  |                      PSUBTOTAL [<column>] OFF
  339. ENG|0821        |    11|  |            At the end of each page, the current subtotals  are  output
  340. ENG|0821        |    12|R |            for grouped columns which are set to SUBTOTAL.
  341. ENG|0822        |     1|  |
  342. ENG|0822        |     3|  |       S E T   command :
  343. ENG|0822        |     5|  |            Displaying the control parameters.
  344. ENG|0822        |     7|  |            SYNTAX :  SET
  345. ENG|0822        |     9|  |            The  SET  command enables the individual setting of control
  346. ENG|0822        |    10|  |            parameters. The control parameters determine,  among  other
  347. ENG|0822        |    11|  |            things,  the  default  format  for  the  REPORT  display of
  348. ENG|0822        |    12|  |            tables. These parameters may be changed by overwriting.
  349. ENG|0822        |    14|  |            Input is checked and may be rejected if, e.g., a number has
  350. ENG|0822        |    15|  |            been entered instead of letters. The altered values  remain
  351. ENG|0822        |    16|S |            valid beyond the session's end.
  352. ENG|0822        |    19|  |            The  SET  parameters  can temporarily be overridden for the
  353. ENG|0822        |    20|  |            current result  table  by  means  of  the  REPORT  commands
  354. ENG|0822        |    21| I|            ##0824DECIMAL, ##0817SEPARATOR, ##0823NULL, and ##0831PRINT.
  355. ENG|0822        |    23|  |            The meanings of the individual SET parameters are described
  356. ENG|0822        |    24|R |            in detail in the QUERY manual.
  357. ENG|0823        |     1|  |
  358. ENG|0823        |     3|  |       N U L L   command :
  359. ENG|0823        |     5|  |            Representation of NULL values.
  360. ENG|0823        |     7|  |            SYNTAX :  NULL  <character string>
  361. ENG|0823        |     8|  |                or    NULL  <column> <position>
  362. ENG|0823        |     9|  |                      position ::= LEFT | RIGHT
  363. ENG|0823        |    11|  |            The  character  string must be enclosed in single quotes if
  364. ENG|0823        |    12|  |            it contains blanks or lower case characters.
  365. ENG|0823        |    14|  |            The character string specified via the  NULL  command  only
  366. ENG|0823        |    15|  |            affects the current result table and does not alter the SET
  367. ENG|0823        |    16|S |            parameter. The number of characters must be <= 20.
  368. ENG|0823        |    19|  |            example :  NULL ' ? '
  369. ENG|0823        |    21|  |            It  may  be  specified for every single column, whether the
  370. ENG|0823        |    22|  |            NULL value is to  be  displayed  left-justified  or  right-
  371. ENG|0823        |    23|  |            justified.  Default  representation  is right-justification
  372. ENG|0823        |    24|  |            for FIXED and FLOAT columns, otherwise left-justification.
  373. ENG|0823        |    26|R |            example :  NULL column_3 LEFT
  374. ENG|0824        |     1|  |
  375. ENG|0824        |     3|  |       D E C I M A L   command :
  376. ENG|0824        |     5|  |            Defining the representation of numbers.
  377. ENG|0824        |     7|  |            SYNTAX :  DECIMAL  <column> <n>
  378. ENG|0824        |     8|  |                      DECIMAL  <column> <n>  [<t>/<d>]
  379. ENG|0824        |    10|  |            n is  the  number  of  fractional  digits.  t  defines  the
  380. ENG|0824        |    11|  |            thousands punctuation. d defines the decimal punctuation.
  381. ENG|0824        |    13|  |            The  values  specified  via the DECIMAL command only affect
  382. ENG|0824        |    14|  |            the  current  result  table  and  do  not  alter  the   SET
  383. ENG|0824        |    15|  |            parameter.
  384. ENG|0824        |    17|S |            examples:
  385. ENG|0824        |    19| E|
  386. ENG|0824        |    20| E|                 DECIMAL amount 3 / /,/        1 234,567
  387. ENG|0824        |    21| E|                 DECIMAL amount 2 /./,/        1.234,56
  388. ENG|0824        |    22| E|                 DECIMAL amount 1              1.234,5
  389. ENG|0824        |    23| E|                 DECIMAL amount 1 /,/./        1,234.5
  390. ENG|0824        |    24| E|                 DECIMAL amount 2 //,/         1234,56
  391. ENG|0824        |    25|RE|
  392. ENG|0825        |     1|  |
  393. ENG|0825        |     3|  |       P R O T E C T   command :
  394. ENG|0825        |     5|  |            Treatment of leading zeros.
  395. ENG|0825        |     7|  |            SYNTAX :  PROTECT  <column> [<character>]
  396. ENG|0825        |     8|  |                      PROTECT  [<column>] OFF
  397. ENG|0825        |    10|  |            PROTECT  serves  to  protect  decimal fields. The column is
  398. ENG|0825        |    11|  |            defined by means of its name or number. The  number  fields
  399. ENG|0825        |    12|  |            are  padded  with  the  specified  character from the left.
  400. ENG|0825        |    13|  |            Default is blank.
  401. ENG|0825        |    15|R |            OFF disables the PROTECT command for the specified column.
  402. ENG|0826        |     1|  |
  403. ENG|0826        |     3|  |       L E A D   command :
  404. ENG|0826        |     5|  |            Leading characters for numeric values.
  405. ENG|0826        |     7|  |            SYNTAX :  LEAD  <column> <character string> [IMMEDIATE]
  406. ENG|0826        |     8|  |                      LEAD  [<column>] OFF
  407. ENG|0826        |    10|  |            Characters may be set in front of numeric values  by  means
  408. ENG|0826        |    11|  |            of LEAD. This function serves especially to provide numbers
  409. ENG|0826        |    12|  |            with currency symbols (e.g. $ ). If IMMEDIATE is specified,
  410. ENG|0826        |    13|  |            the  characters  are  placed  directly  before the numbers;
  411. ENG|0826        |    14|R |            otherwise they will be left-justified.
  412. ENG|0827        |     1|  |
  413. ENG|0827        |     3|  |       T R A I L   command :
  414. ENG|0827        |     5|  |            Trailing characters for numeric values.
  415. ENG|0827        |     7|  |            SYNTAX :  TRAIL <column> <character string>
  416. ENG|0827        |     8|  |                      TRAIL [<column>] OFF
  417. ENG|0827        |    10|  |            Characters may be set after  numeric  values  by  means  of
  418. ENG|0827        |    11|  |            TRAIL.  This  function serves especially to provide numbers
  419. ENG|0827        |    12|R |            with currency symbols or dimensions (e.g. DM or km).
  420. ENG|0828        |     1|  |
  421. ENG|0828        |     3|  |       R T I T L E   command :
  422. ENG|0828        |     5|  |            Heading for output.
  423. ENG|0828        |     7|  |            SYNTAX : RTITLE  [<n>] <heading> [LEFT | RIGHT | CENTER]
  424. ENG|0828        |     8|  |                     RTITLE  [<n>] OFF
  425. ENG|0828        |    10|  |            The entered title (consisting of up to three lines) appears
  426. ENG|0828        |    11|  |            at the beginning of  the  report.  It  may  contain  formal
  427. ENG|0828        |    12|  |            parameters  which  will  be replaced by current values when
  428. ENG|0828        |    13|  |            the heading is output.
  429. ENG|0828        |    15|  |            The parameter &COLn  (1 <= n <= 254)  is  replaced  by  the
  430. ENG|0828        |    16|  |            column  value  of the n-th output table column in the first
  431. ENG|0828        |    17|S |            result row.
  432. ENG|0828        |    19|  |            &USER and &GROUP are replaced by the name  of  the  current
  433. ENG|0828        |    20|  |            user or usergroup.
  434. ENG|0828        |    22|  |            &DATE  is  replaced by the current date. The date is output
  435. ENG|0828        |    23|  |            according to the current SET definition.
  436. ENG|0828        |    25|  |            The title can be written left-justified or right-justified,
  437. ENG|0828        |    26|R |            or centered. Default is CENTER.
  438. ENG|0829        |     1|  |
  439. ENG|0829        |     3|  |       T T I T L E   command :
  440. ENG|0829        |     5|  |            Enables one heading per output page.
  441. ENG|0829        |     7|  |            SYNTAX : TTITLE  [<n>] <heading> [LEFT | RIGHT | CENTER]
  442. ENG|0829        |     8|  |                     TTITLE  [<n>] OFF
  443. ENG|0829        |    10|  |            The entered heading appears on every output page.
  444. ENG|0829        |    12|  |            On output &COUNT is replaced by the number of the first row
  445. ENG|0829        |    13|  |            of the page, and &COLi is replaced by the value of the i-th
  446. ENG|0829        |    14|  |            column.
  447. ENG|0829        |    16|S |            &PAGE is replaced by the current page number.
  448. ENG|0829        |    19|  |            &USER and &GROUP are replaced by the name  of  the  current
  449. ENG|0829        |    20|  |            user or usergroup.
  450. ENG|0829        |    22|  |            &DATE  is  replaced by the current date. The date is output
  451. ENG|0829        |    23|  |            according to the current SET definition.
  452. ENG|0829        |    25|  |            Allowed are up to n = 3  top  titles.  They  may  be  left-
  453. ENG|0829        |    26|  |            justified,  right-justified, or centered on output. Default
  454. ENG|0829        |    27|R |            is CENTER.
  455. ENG|0830        |     1|  |
  456. ENG|0830        |     3|  |       B T I T L E   command :
  457. ENG|0830        |     5|  |            Enables a footing for each output page.
  458. ENG|0830        |     7|  |            SYNTAX : BTITLE  [<n>] <footing> [LEFT | RIGHT | CENTER]
  459. ENG|0830        |     8|  |                     BTITLE  [<n>] OFF
  460. ENG|0830        |    10|  |            The specified footing appears at the end of each page.
  461. ENG|0830        |    12|  |            For print output &COUNT is replaced by the  number  of  the
  462. ENG|0830        |    13|  |            last  result  row  of the page and &COLi is replaced by the
  463. ENG|0830        |    14|  |            value of the i-th column of this row.
  464. ENG|0830        |    16|  |            &PAGE, &DATE, &USER, and &GROUP are replaced  in  the  same
  465. ENG|0830        |    17|S |            way as in other TITLE commands.
  466. ENG|0830        |    19|  |            Allowed  are  up  to  n  =  3  footings.  They may be left-
  467. ENG|0830        |    20|R |            justified, right-justified, or centered on output.
  468. ENG|0831        |     1|  |
  469. ENG|0831        |     3|  |       P R I N T   command :
  470. ENG|0831        |     5|  |            Prints the current result table.
  471. ENG|0831        |     7|  |            SYNTAX :  PRINT [<n>] [<printer>] [ONLY]
  472. ENG|0831        |     9|  |            PRINT writes the entire formatted  result  table  into  the
  473. ENG|0831        |    10|  |            spool area.
  474. ENG|0831        |    12|  |            <n>  defines  the  number  of  copies  to  be  printed. The
  475. ENG|0831        |    13|  |            identifier <printer> can be enclosed in  single  quotes  if
  476. ENG|0831        |    14|  |            the operating system is case sensitive. If these parameters
  477. ENG|0831        |    15|  |            are not specified, the SET regulation will be valid.
  478. ENG|0831        |    17|S |            The  option  ONLY  has  the effect that the result table is
  479. ENG|0831        |    19|R |            only printed and not displayed on the screen.
  480. ENG|0832        |     1|  |
  481. ENG|0832        |     3|  |       C L O S E   command :
  482. ENG|0832        |     5|  |            Prints the contents of the spool area.
  483. ENG|0832        |     7|  |            SYNTAX :  CLOSE [ PRINTER ]
  484. ENG|0832        |     9|  |            Everything that has been written to the  spool  area  since
  485. ENG|0832        |    10|  |            the last CLOSE is output via the printer. An implicit CLOSE
  486. ENG|0832        |    11|R |            is performed at the end of each QUERY/REPORT session.
  487. ENG|0833        |     1|  |
  488. ENG|0833        |     3|  |       P U T   command :
  489. ENG|0833        |     5|  |            Writes the current result table into a file.
  490. ENG|0833        |     7|  |            SYNTAX :  PUT  '<filename>'  [APPEND] [ONLY]
  491. ENG|0833        |     9|  |            PUT  writes the entire formatted result table into the file
  492. ENG|0833        |    10|  |            defined by <filename>. The option  APPEND  has  the  effect
  493. ENG|0833        |    11|  |            that  an  existing  file  will  not be overwritten, but the
  494. ENG|0833        |    12|  |            result is added to it.
  495. ENG|0833        |    14|  |            The option ONLY is only enabled if it  is  specified  in  a
  496. ENG|0833        |    15|  |            stored  command. It has the effect that the result table is
  497. ENG|0833        |    16|R |            only output to the file and not displayed on the screen.
  498. ENG|0834        |     1|  |
  499. ENG|0834        |     3|  |       A S C I I   command :
  500. ENG|0834        |     5|  |            Converts representable ascii characters stored in CHAR BYTE
  501. ENG|0834        |     6|  |            columns into plaintext.
  502. ENG|0834        |     8|  |            SYNTAX :  ASCII <column>
  503. ENG|0834        |    10|  |            The  default  hexadecimal  representation  for  CHAR   BYTE
  504. ENG|0834        |    11|  |            columns  will  be  replaced  by a plaintext representation.
  505. ENG|0834        |    12|  |            Non-representable characters will be output as '?'.
  506. ENG|0834        |    14|  |            This command only makes sense, when the column  contains  a
  507. ENG|0834        |    15|R |            great amount of ascii-coded plaintext.
  508. ENG|0835        |     1|  |
  509. ENG|0835        |     3|  |       E B C D I C   command :
  510. ENG|0835        |     5|  |            Converts  representable  ebcdic  characters  stored in CHAR
  511. ENG|0835        |     6|  |            BYTE columns into plaintext.
  512. ENG|0835        |     8|  |            SYNTAX :  EBCDIC <column>
  513. ENG|0835        |    10|  |            The  default  hexadecimal  representation  for  CHAR   BYTE
  514. ENG|0835        |    11|  |            columns  will  be  replaced  by a plaintext representation.
  515. ENG|0835        |    12|  |            Non-representable characters will be output as '?'.
  516. ENG|0835        |    14|  |            The command only makes sense, when the  column  contains  a
  517. ENG|0835        |    15|R |            great amount of ebcdic-coded plaintext.
  518. ENG|0836        |     1|  |
  519. ENG|0836        |     3|  |       H E X A D E C   command :
  520. ENG|0836        |     5|  |            Default representation of CHAR BYTE columns.
  521. ENG|0836        |     7|  |            SYNTAX :  HEXADEC <column>
  522. ENG|0836        |     9| I|            If CHAR BYTE columns were processed with an ##0834ASCII or ##0835EBCDIC
  523. ENG|0836        |    10|  |            command for output, the original hexadecimal representation
  524. ENG|0836        |    11|R |            may be restored.
  525. ENG|0837        |     1|  |
  526. ENG|0837        |     3|  |       F I X   command :
  527. ENG|0837        |     5|  |            Serves to fix any column on the screen.
  528. ENG|0837        |     7|  |            SYNTAX :  FIX <column> [<column>] ...
  529. ENG|0837        |     8|  |                      FIX  OFF
  530. ENG|0837        |    10|  |            The  corresponding columns are permanently displayed at the
  531. ENG|0837        |    11|  |            left margin of the screen, even if scrolling to the left or
  532. ENG|0837        |    12|  |            to the right.
  533. ENG|0837        |    14|R |            FIX OFF cancels the fixing of these columns.
  534. ENG|0838        |     1|  |
  535. ENG|0838        |     3|  |       W I N D O W   command :
  536. ENG|0838        |     5|  |            REPORT screen output in form of a window.
  537. ENG|0838        |     7|  |            SYNTAX :  WINDOW  <position> [<size>] [NOFRAME]
  538. ENG|0838        |     8|  |                      position ::= POS <row> <column>
  539. ENG|0838        |     9|  |                      size     ::= SIZE <rows> <columns>
  540. ENG|0838        |    10|  |            The window is closed by means of
  541. ENG|0838        |    11|  |                      WINDOW OFF
  542. ENG|0838        |    13|  |            The WINDOW command can be used for representing the  REPORT
  543. ENG|0838        |    14|  |            screen output in form of a window. This can be useful, e.g.
  544. ENG|0838        |    15|  |            from  an SQL-PL application, if REPORT is not to occupy the
  545. ENG|0838        |    16|S |            whole screen.
  546. ENG|0838        |    19|  |            POS defines the upper left-hand corner of the window,  SIZE
  547. ENG|0838        |    20|  |            defines  the  size  of  the window specifying the number of
  548. ENG|0838        |    21|  |            rows and columns. The SIZE specification  can  be  omitted;
  549. ENG|0838        |    22|  |            the window will then be displayed in its maximum size.
  550. ENG|0838        |    24|  |            In  case  of  a NOFRAME specification a window is generated
  551. ENG|0838        |    25|R |            without a frame.
  552. ENG|0839        |     1|  |
  553. ENG|0839        |     3|  |       P A G E   statement :
  554. ENG|0839        |     5|  |            Controllable form feed at the end of group.
  555. ENG|0839        |     7|  |            SYNTAX :  PAGE  [<number of lines>] [<level>]
  556. ENG|0839        |     9|  |            Resetting with
  557. ENG|0839        |    10|  |                      PAGE OFF [<level>]
  558. ENG|0839        |    11|  |            <level> ::= LEVEL <n>
  559. ENG|0839        |    13|  |            The PAGE command can be used for performing  a  conditional
  560. ENG|0839        |    14|  |            or unconditional form feed at the end of a group.
  561. ENG|0839        |    16|  |            If  no  number of lines is specified, an unconditional form
  562. ENG|0839        |    17|S |            feed is performed at the  end  of  a  group.  Specifying  a
  563. ENG|0839        |    19|  |            number  of  lines  n  means: if there are less than n lines
  564. ENG|0839        |    20|  |            free on  the  current  page,  then  a  form  feed  will  be
  565. ENG|0839        |    21|  |            performed.
  566. ENG|0839        |    23|  |            The  LEVEL  option  reduces  the  form  feed to the ends of
  567. ENG|0839        |    24|R |            groups of the specified level.
  568. ENG|0840        |     1|  |
  569. ENG|0840        |     3|  |       L F E E D S   command :
  570. ENG|0840        |     5|  |            Controllable line feed at the end of group.
  571. ENG|0840        |     7|  |            SYNTAX :  LFEEDS <number of lines> [LEVEL <n>]
  572. ENG|0840        |     9|  |            The LFEEDS command can be used for controlling a line  feed
  573. ENG|0840        |    10|  |            at  the end of group. Default setting is one blank line for
  574. ENG|0840        |    11|  |            each end of group.
  575. ENG|0840        |    13|  |            The LEVEL option can be used  for  defining  an  individual
  576. ENG|0840        |    14|R |            number of blank lines for each group level.
  577. ENG|0841        |     1|  |
  578. ENG|0841        |     3|  |       F O R M A T   command :
  579. ENG|0841        |     5|  |            Formatted number output.
  580. ENG|0841        |     7|  |            SYNTAX :  FORMAT <column> <pattern>
  581. ENG|0841        |     8|  |                or    FORMAT [<column>] OFF
  582. ENG|0841        |    10|  |            The  FORMAT  command  enables  flexible  editing of numeric
  583. ENG|0841        |    11| I|            values in accordance with a given pattern.  Previous  ##0826LEAD,
  584. ENG|0841        |    12| I|            ##0827TRAIL,  and  ##0825PROTECT  commands  are  disabled by the FORMAT
  585. ENG|0841        |    13|  |            command.
  586. ENG|0841        |    15|  |            Examples of possible patterns:
  587. ENG|0841        |    16| E|
  588. ENG|0841        |    17|SE|                  FORMAT column '9 999'       :  1234 -->  '1 234'
  589. ENG|0841        |    19| E|                  FORMAT column '9,999.99 Kg' :  1234 -->  '1,234.00 Kg'
  590. ENG|0841        |    20| E|                  FORMAT column 'DM 999,99'   :  12.3 -->  'DM  12,30'
  591. ENG|0841        |    21| E|                  FORMAT column '9 Kg 555 g'  : 1.234 -->  '1 Kg 234 g'
  592. ENG|0841        |    22| E|                  FORMAT column '.9999e-99'   : 12.34 -->  '.1234e+02'
  593. ENG|0841        |    23| E|
  594. ENG|0841        |    25|  |            Every '9' in the mask  designates  a  digit  position.  The
  595. ENG|0841        |    26|  |            first   point  or  comma  (from  left  to  right)  will  be
  596. ENG|0841        |    27|  |            interpreted as position and representation of  the  decimal
  597. ENG|0841        |    28|  |            sign;  if  it is not to be represented by a point or comma,
  598. ENG|0841        |    29|  |            the fractional positions must be designated by a '5'.
  599. ENG|0841        |    31|  |            If the mask does  not  contain  any  signs,  only  floating
  600. ENG|0841        |    32|  |            negative  signs  precede  the  first digit. Otherwise a '-'
  601. ENG|0841        |    33|  |            (only negative signs) or a '+' (all signs)  determines  the
  602. ENG|0841        |    34|  |            sign position in the mask:
  603. ENG|0841        |    35|S |                  FORMAT column '99 999'      :  -123 -->  '  -123'
  604. ENG|0841        |    37|  |                  FORMAT column '-9 999'      :   123 -->  '   123'
  605. ENG|0841        |    38|  |                  FORMAT column '+9 999'      :   123 -->  '+  123'
  606. ENG|0841        |    39|  |                  FORMAT column '99 999-'     : -1234 -->  ' 1 234-'
  607. ENG|0841        |    41|  |            The  leading  digit  can  also  be designated by 0, *, or >
  608. ENG|0841        |    42|  |            instead of 9. For 0 leading zeros will be displayed, for  *
  609. ENG|0841        |    43|  |            not  required  positions  in front of the number are padded
  610. ENG|0841        |    44|  |            with * (cheque protection). For >  floating  text  will  be
  611. ENG|0841        |    45|  |            placed before the first digit.
  612. ENG|0841        |    46|  |                  FORMAT column '099 999'     :   123 -->  '000 123'
  613. ENG|0841        |    47|  |                  FORMAT column '*99 999'     :   123 -->  '****123'
  614. ENG|0841        |    48|R |                  FORMAT column '$>99 999'    :   123 -->  '    $123'
  615. ENG|0842        |     1|  |
  616. ENG|0842        |     3|  |       C R D B   command:
  617. ENG|0842        |     5|  |            Sign representation in an account representation.
  618. ENG|0842        |     7|  |            SYNTAX :  CRDB <column>
  619. ENG|0842        |     8|  |                      CRDB [<column>] OFF
  620. ENG|0842        |    10|  |            CRDB  can  only be applied to numerical columns. The values
  621. ENG|0842        |    11|  |            of the specified column will not be output with a  plus  or
  622. ENG|0842        |    12|  |            minus  sign.  It  will, however, be followed by CR(edit) in
  623. ENG|0842        |    13|  |            case of  positive  values  and  by  D(e)B(it)  in  case  of
  624. ENG|0842        |    14|R |            negative values.
  625. ENG|0843        |     1|  |
  626. ENG|0843        |     3|  |       L I N E N O   command :
  627. ENG|0843        |     5|  |            Displaying the row numbers.
  628. ENG|0843        |     7|  |            SYNTAX :  LINENO  [<column header>]
  629. ENG|0843        |     8|  |                      LINENO  OFF
  630. ENG|0843        |    10|  |            LINENO  displays a column with row numbers on the left side
  631. ENG|0843        |    11|  |            of the result table. A column header is optional.
  632. ENG|0843        |    13|R |            LINENO OFF excludes the column from the display.
  633. ENG|0844        |     1|  |
  634. ENG|0844        |     3|  |       DETAIL   command :
  635. ENG|0844        |     6|  |            Displaying a Master-Detail REPORT.
  636. ENG|0844        |     8|  |            SYNTAX :  DETAIL  [OFF]
  637. ENG|0844        |    10|  |            The  master  detail  functionality  enables  the  user   to
  638. ENG|0844        |    11|  |            simultaneously  represent and evaluate two tables which are
  639. ENG|0844        |    12|  |            related to each other.
  640. ENG|0844        |    14|  |            The relation between two tables is thereby described either
  641. ENG|0844        |    15|  |            explicitly by join  conditions  or  implicitly  by  FOREIGN
  642. ENG|0844        |    16|S |            KEYs.
  643. ENG|0844        |    19|  |            The select statement for the DETAIL command is requested in
  644. ENG|0844        |    20|  |            an additional input window.
  645. ENG|0844        |    22|  |            Example of a DETAIL select:
  646. ENG|0844        |    24|  |                <select statement>
  647. ENG|0844        |    25|  |                [WHERE ... AND|OR <detail column> = :<master column> ... ]
  648. ENG|0844        |    26|  |                [FOREIGN KEY <name> REFERENCED BY <table> ]
  649. ENG|0844        |    28|  |            Example of a FOREIGN KEY condition:
  650. ENG|0844        |    30|  |                DETAIL
  651. ENG|0844        |    31|  |                  SELECT "detail table"
  652. ENG|0844        |    32|  |                    ( rno, cno, hno, num_pers, price )
  653. ENG|0844        |    33|  |                    FROM reservation
  654. ENG|0844        |    34|  |                    FOREIGN KEY customer_reservation REFERENCED BY reservation
  655. ENG|0844        |    35|S |                    ORDER BY hno
  656. ENG|0844        |    37|  |                  REPORT
  657. ENG|0844        |    38|  |                  WIDTH *
  658. ENG|0844        |    39|  |                  NUMBER on
  659. ENG|0844        |    40|  |                ENDDETAIL
  660. ENG|0844        |    41|  |                WIDTH *
  661. ENG|0844        |    43|  |            and with JOIN conditions
  662. ENG|0844        |    45|  |                DETAIL
  663. ENG|0844        |    46|  |                  SELECT "detail table"
  664. ENG|0844        |    47|  |                    ( rno, cno, hno, num_pers, price )
  665. ENG|0844        |    48|  |                    FROM reservation
  666. ENG|0844        |    49|  |                    WHERE cno = :cno
  667. ENG|0844        |    50|  |                    ORDER BY hno
  668. ENG|0844        |    51|  |                  REPORT
  669. ENG|0844        |    52|  |                  WIDTH *
  670. ENG|0844        |    53|S |                  NUMBER on ENDDETAIL WIDTH *
  671. ENG|0844        |    55|R |            DETAIL OFF returns to the normal report representation.
  672. ENG|0845        |     1|  |
  673. ENG|0845        |     3|  |       L O N G   command :
  674. ENG|0845        |     5|  |            Displaying LONG CHAR columns.
  675. ENG|0845        |     7|  |            SYNTAX :  LONG  ALL | <column> ON
  676. ENG|0845        |     8|  |                      LONG  ALL | <column> OFF
  677. ENG|0845        |    10|  |            The  command  LONG displays the beginnings of the specified
  678. ENG|0845        |    11|  |            LONG column in the report. This command only works on CHAR-
  679. ENG|0845        |    12|  |            type LONG columns.
  680. ENG|0845        |    14|  |            With a keyword ALL specification the command is  valid  for
  681. ENG|0845        |    15|  |            all LONG CHAR columns.
  682. ENG|0845        |    17|R |            LONG OFF redisplays the columns in normal way.
  683. ENG|0846        |     1|  |
  684. ENG|0846        |     3|  |       Z O O M   command :
  685. ENG|0846        |     5|  |            Displaying LONG columns.
  686. ENG|0846        |     7|  |            SYNTAX :  ZOOM  <column> [<row number>]
  687. ENG|0846        |     8|  |                      ZOOM  <column> [<row number>] PUT <filename>
  688. ENG|0846        |    10|  |            The  ZOOM  command  allows  contents  of LONG columns to be
  689. ENG|0846        |    11|  |            represented in a special window (viewer).
  690. ENG|0846        |    13|  |            The LONG content is specified by the column and  optionally
  691. ENG|0846        |    14|  |            by the row number. If no row number is specified, the first
  692. ENG|0846        |    15|  |            row displayed in the report will be used.
  693. ENG|0846        |    17|S |            It  is  also possible to position the cursor to the desired
  694. ENG|0846        |    19|  |            LONG column and row and to get to  the  display  window  by
  695. ENG|0846        |    20|  |            means of the ZOOM function key.
  696. ENG|0846        |    22|  |            In  the  viewer  it  is possible to scroll through the LONG
  697. ENG|0846        |    23|  |            column,   to   choose   between   hexadecimal   and   ASCII
  698. ENG|0846        |    24|  |            representation, and to write the content to a file.
  699. ENG|0846        |    26|  |            Writing  to a file can also be enabled from the report. For
  700. ENG|0846        |    27|  |            this purpose enter, after the ZOOM command, the keyword PUT
  701. ENG|0846        |    28|R |            and the filename.
  702. ENG|0847        |     1|  |
  703. ENG|0847        |     3|  |       D A T E   command :
  704. ENG|0847        |     5|  |            Displaying date and time.
  705. ENG|0847        |     7|  |            SYNTAX :  DATE
  706. ENG|0847        |     9|  |            The DATE command displays the current date and the  current
  707. ENG|0847        |    10|R |            time.
  708. ENG|0850        |     1|  |
  709. ENG|0850        |     3|  |            R E P O R T   F U N C T I O N S :
  710. ENG|0850        |     5|  |                 Positioning in the result table
  711. ENG|0850        |     7| I|                 ##0807  BOTTOM    branching to the end of the result table
  712. ENG|0850        |     8| I|                 ##0806  TOP       branching to the beginning of the result table
  713. ENG|0850        |     9| I|                 ##0805  DOWN      scrolling forward in the result table
  714. ENG|0850        |    10| I|                 ##0804  UP        scrolling backward in the result table
  715. ENG|0850        |    11| I|                 ##0808  LEFT      moving the displayed section to the left
  716. ENG|0850        |    12| I|                 ##0809  RIGHT     moving the displayed section to the right
  717. ENG|0850        |    13| I|                 ##0810  POS       positioning to any table column
  718. ENG|0850        |    14|SI|                 ##0811  TAB       tabulator in a wide column
  719. ENG|0850        |    19|  |                 Writing the result table to paper or disk
  720. ENG|0850        |    21| I|                 ##0831  PRINT     prints the current result table
  721. ENG|0850        |    22| I|                 ##0832  CLOSE     prints the contents of the spool area
  722. ENG|0850        |    23| I|                 ##0833  PUT       writes the current result table into a file
  723. ENG|0850        |    25|  |                 General commands
  724. ENG|0850        |    27| I|                 ##0801  HELP      displays explanations on the screen
  725. ENG|0850        |    28|RI|                 ##0803  END       leaves the REPORT mode
  726.