home *** CD-ROM | disk | FTP | other *** search
/ com!online 2002 April / comcd0402.iso / vollver / adabas / f_0001 / env / load.enh < prev    next >
Encoding:
Text File  |  1999-11-01  |  129.1 KB  |  1,786 lines

  1. ENG|06          |     0     LOAD.enh   10.05.01   1998-04-24
  2. ENG|06          |     1|  |          Index of the Functions which May Be Used in LOAD
  3. ENG|06          |     2|  |          ------------------------------------------------
  4. ENG|06          |     4| M|    #02How^to^Use^LOAD^Interactively
  5. ENG|06          |     5| M|    #03...^Fill^Database^Tables            (DATALOAD / FASTLOAD)
  6. ENG|06          |     6| M|    #04...^Change^Column^Contents          (DATAUPDATE)
  7. ENG|06          |     7| M|    #05...^Merge^a^File^into^a^Table       (DUPLICATES clause)
  8. ENG|06          |     8| M|    #06...^Create^Formatted^Reports        (DATAEXTRACT)
  9. ENG|06          |     9| M|    #07...^Put^and^Get^LONG^Column^Values  (using DATALOAD / DATAEXTRACT)
  10. ENG|06          |    10| M|    #08...^Transfer^the^Database^Catalog   (EXTRACT/LOAD CATALOG)
  11. ENG|06          |    11| M|    #09...^Transfer^Table^Contents         (EXTRACT/LOAD TABLE)
  12. ENG|06          |    12| M|    #10...^Transfer^Catalog^and^Data       (DBEXTRACT/DBLOAD)
  13. ENG|06          |    13| M|    #11...^Use^the^ORACLE^Crossloader      (LOAD ORACLEDB, INFILE ... ORACLE)
  14. ENG|06          |    14| M|    #13Other^LOAD^Statements               (SQLMODE, AUTOCOMMIT ON/OFF etc)
  15. ENG|06          |    15| M|    #14Control^File^Statements
  16. ENG|06          |    16| M|    #15LOAD^Commands                       (==> RUN etc)
  17. ENG|06          |    17|RI|    ##09SQL^Statements                      (SELECT, CREATE etc)
  18. ENG|060103      |     1|  |    <load statement>
  19. ENG|060103      |     4| M|      {   #01<dataload^statement>
  20. ENG|060103      |     5| M|        | #02<dataload^default^statement>
  21. ENG|060103      |     6|RM|        | #03<fastload^statement>  }
  22. ENG|06010301    |     1|  |    <dataload statement>
  23. ENG|06010301    |     3|  |      <load table spec>...
  24. ENG|06010301    |     4| I|      ##06011721<infile^spec>
  25. ENG|06010301    |     7|  |    <load table spec>
  26. ENG|06010301    |     9|  |      { DATALOAD | LOAD DATA }
  27. ENG|06010301    |    10|  |      TABLE <table name>
  28. ENG|06010301    |    11| I|      [ { IF ##06010307<condition> | OTHERWISE } ]
  29. ENG|06010301    |    12|RI|      ##06010305<load^column^spec>...
  30. ENG|06010302    |     1|  |    <dataload default statement>
  31. ENG|06010302    |     3|  |      { DATALOAD | LOAD DATA }
  32. ENG|06010302    |     4|  |      TABLE <table name>
  33. ENG|06010302    |     5| I|      [ IF ##06010307<condition> ]
  34. ENG|06010302    |     6|RI|      ##06011721<infile^spec>
  35. ENG|06010303    |     1|  |    <fastload statement>
  36. ENG|06010303    |     3|  |      { FASTLOAD | LOAD FAST }
  37. ENG|06010303    |     4|  |      [ WITH <unsigned integer> % USAGE ]
  38. ENG|06010303    |     5|  |      TABLE <table name>
  39. ENG|06010303    |     6| I|      [ IF ##06010307<condition> ]
  40. ENG|06010303    |     7| I|      [ ##06010305<load^column^spec>... ]
  41. ENG|06010303    |     8|RI|      ##06011721<infile^spec>
  42. ENG|06010305    |     1|  |    <load column spec>
  43. ENG|06010305    |     3| I|      {   ##0601030501<column^descriptor> [ <null condition> ]
  44. ENG|06010305    |     4| I|        | ##0601030502<column^assignment> }
  45. ENG|06010305    |     7|  |    <null condition>
  46. ENG|06010305    |     9|RI|      { NULL [ IF ] ##06010307<condition> | DEFAULT NULL }
  47. ENG|0601030501  |     1|  |    <column descriptor>
  48. ENG|0601030501  |     3|RI|      <column name> ##06010308<pos^spec> ##06010306<format^spec>
  49. ENG|0601030502  |     1|  |    <column assignment>
  50. ENG|0601030502  |     3|  |      <column name> { '<literal>' | <generate spec> }
  51. ENG|0601030502  |     6|  |    <generate spec>
  52. ENG|0601030502  |     8|  |      {   <adabas value>
  53. ENG|0601030502  |     9|  |        | <ansi value>
  54. ENG|0601030502  |    10|  |        | <db2 value>
  55. ENG|0601030502  |    11|  |        | <oracle value>
  56. ENG|0601030502  |    12|  |        | SEQNO [ <start> [ <increment> ] ] }
  57. ENG|0601030502  |    15|  |    <adabas value>
  58. ENG|0601030502  |    17|S |      { USER | USERGROUP | DATE | TIME | TIMESTAMP | TRUE | FALSE | STAMP }
  59. ENG|0601030502  |    19|  |    <ansi value>
  60. ENG|0601030502  |    21|  |      USER
  61. ENG|0601030502  |    24|  |    <db2 value>
  62. ENG|0601030502  |    26|  |      { USER | CURRENT { SQLID | DATE | TIME | TIMESTAMP } }
  63. ENG|0601030502  |    29|  |    <oracle value>
  64. ENG|0601030502  |    31|  |      { USER | SYSDATE | UID }
  65. ENG|0601030502  |    34|  |    <start>, <increment>
  66. ENG|0601030502  |    36|R |      [ signed ] integer
  67. ENG|06010306    |     1|  |    <format spec>
  68. ENG|06010306    |     3| I|      {   <format of numeric columns> [ HEX ] ##0601030601<options>
  69. ENG|06010306    |     4|  |        | <format of oracle exp columns>
  70. ENG|06010306    |     5|  |        | [ CHAR ] [ HEX ]   }
  71. ENG|06010306    |     8|  |    <format of oracle exp columns>
  72. ENG|06010306    |    10|  |      {   DATE
  73. ENG|06010306    |    11|  |        | NUMBER   }
  74. ENG|06010306    |    14|  |    <format of numeric columns>
  75. ENG|06010306    |    16|  |      {   [ CHAR ] [ FLOAT ]
  76. ENG|06010306    |    17|  |        | DECIMAL [ <fraction> ]
  77. ENG|06010306    |    18|S |        | ZONED   [ <fraction> ]
  78. ENG|06010306    |    19|  |        | INTEGER
  79. ENG|06010306    |    20|R |        | REAL   }
  80. ENG|0601030601  |     1|  |    <options>
  81. ENG|0601030601  |     3|  |      [ <scale spec> ]   [ <round or trunc spec> ]
  82. ENG|0601030601  |     6|  |    <scale spec>
  83. ENG|0601030601  |     8|  |      SCALE  { <integer> | ( <integer> ) }
  84. ENG|0601030601  |    11|  |    <round or trunc spec>
  85. ENG|0601030601  |    13|  |      { ROUND | TRUNC }  { <unsigned integer> | ( <unsigned integer> ) }
  86. ENG|0601030601  |    16|  |    <integer>
  87. ENG|0601030601  |    18|R |      [ <sign> ] <unsigned integer>
  88. ENG|06010307    |     1|  |    <condition>
  89. ENG|06010307    |     3|  |      {   <simple condition>
  90. ENG|06010307    |     4|  |        | ( <condition> )
  91. ENG|06010307    |     5|  |        | <condition> AND <condition>
  92. ENG|06010307    |     6|  |        | <condition> OR <condition>
  93. ENG|06010307    |     7|  |        | NOT <condition>   }
  94. ENG|06010307    |    10|  |    <simple condition>
  95. ENG|06010307    |    12| I|      POS ##06010308<pos^spec> [ <field format> ] [ HEX ] <comp op> '<literal>'
  96. ENG|06010307    |    15|  |    <field format>
  97. ENG|06010307    |    17|  |      {   [ CHAR ]
  98. ENG|06010307    |    18|S |        | DECIMAL <fraction>
  99. ENG|06010307    |    19|  |        | ZONED <fraction>
  100. ENG|06010307    |    20|  |        | INTEGER
  101. ENG|06010307    |    21|  |        | REAL   }
  102. ENG|06010307    |    24|  |    <comp op>
  103. ENG|06010307    |    26|R |      {  <  |  <=  |  =  |  >=  |  >  |  <>  }
  104. ENG|06010308    |     1|  |    <pos spec>
  105. ENG|06010308    |     3|  |      <start pos> [ - <end pos> ]
  106. ENG|06010308    |     6|  |    <start pos>, <end pos>
  107. ENG|06010308    |     8|R |      1 <= Position <= 4096
  108. ENG|060104      |     1|  |    <dataupdate statement>
  109. ENG|060104      |     3|  |      <update table spec>...
  110. ENG|060104      |     4| I|      ##06011721<infile^spec>
  111. ENG|060104      |     7|  |    <update table spec>
  112. ENG|060104      |     9|  |      { DATAUPDATE | UPDATE DATA }
  113. ENG|060104      |    10|  |      TABLE <table name>
  114. ENG|060104      |    11| I|      [ { IF ##06010307<condition> | OTHERWISE } ]
  115. ENG|060104      |    12|  |      <access column spec>...
  116. ENG|060104      |    13|  |      <set column spec>...
  117. ENG|060104      |    16|  |    <access column spec>
  118. ENG|060104      |    18|SI|      [ KEY ] { ##0601030501<column^descriptor> |##0601030502<column^assignment> }
  119. ENG|060104      |    19|  |    <set column spec>
  120. ENG|060104      |    21|RI|      SET ##06010305<load^column^spec>
  121. ENG|060105      |     1|  |    <dataload-and-update statement>
  122. ENG|060105      |     3|  |      <load-and-update spec>...
  123. ENG|060105      |     4| I|      ##06011721<infile^spec>
  124. ENG|060105      |     7|  |    <load-and-update spec>
  125. ENG|060105      |     9|  |      { DATALOAD | LOAD DATA }
  126. ENG|060105      |    10|  |      TABLE <table name>
  127. ENG|060105      |    11| I|      [ { IF ##06010307<condition> | OTHERWISE } ]
  128. ENG|060105      |    12|  |      { IGNORE | REJECT | UPDATE } DUPLICATES
  129. ENG|060105      |    13|  |      <key column spec>...
  130. ENG|060105      |    14|S |      <set column spec>...
  131. ENG|060105      |    19|  |    <key column spec>
  132. ENG|060105      |    21| I|      KEY { ##0601030501<column^descriptor> |##0601030502<column^assignment> }
  133. ENG|060105      |    24|  |    <set column spec>
  134. ENG|060105      |    26|RI|      SET ##06010305<load^column^spec>
  135. ENG|060106      |     1|  |    <extract statement>
  136. ENG|060106      |     3|  |      { DATAEXTRACT | EXTRACT DATA }
  137. ENG|060106      |     4|  |      [ [ WITH ] LOCK ]
  138. ENG|060106      |     5|  |      <select expression> ;
  139. ENG|060106      |     6|  |      [ <output field spec>... ]
  140. ENG|060106      |     7|  |      [ OUTFILE <external file name> ]
  141. ENG|060106      |     8| I|      ##06011722<outfile^spec>
  142. ENG|060106      |     9| I|      [ ##06011723<longfile^spec>... ]
  143. ENG|060106      |    12|  |    <select expression>
  144. ENG|060106      |    14|  |      <select statement> without keyword SELECT
  145. ENG|060106      |    16|  |    <output field spec>
  146. ENG|060106      |    18|S |      { <column data spec> | <constant data spec> }
  147. ENG|060106      |    19|  |    <column data spec>
  148. ENG|060106      |    21| I|      <column id> ##06010308<pos^spec> ##06010306<format^spec> [ <null presentation> ]
  149. ENG|060106      |    24|  |    <constant data spec>
  150. ENG|060106      |    26| I|      '<literal>' ##06010308<pos^spec>
  151. ENG|060106      |    29|  |    <column id>
  152. ENG|060106      |    31|  |      { <column name> | <column number> }
  153. ENG|060106      |    34|  |    <null presentation>
  154. ENG|060106      |    36|RI|      [ IF ]  NULL  [ SET ]  POS ##06010308<pos^spec> = '<literal>'
  155. ENG|06010608    |     1|  |    <restore statement>
  156. ENG|06010608    |     3|  |      { DATAEXTRACT | EXTRACT DATA }
  157. ENG|06010608    |     4|  |      [ [ WITH ] LOCK ]
  158. ENG|06010608    |     5|  |      { FOR DATALOAD | FOR FASTLOAD | FOR DATAUPDATE }
  159. ENG|06010608    |     6|  |      TABLE <table name>
  160. ENG|06010608    |     7|  |      [ <order clause> ; ]
  161. ENG|06010608    |     8|  |      { <command and data file> | <command file> <data file> }
  162. ENG|06010608    |     9| I|      [ ##06011723<longfile^spec>... ]
  163. ENG|06010608    |    12|  |    <command and data file>, <command file>, <data file>
  164. ENG|06010608    |    14|  |      OUTFILE <external file name>
  165. ENG|06010608    |    15| I|      ##060117<file^format>
  166. ENG|06010608    |    16|R |      [ APPEND ]
  167. ENG|06010801    |     1|  |    <catalogextract statement>
  168. ENG|06010801    |     3|  |      { EXTRACT CATALOG | CATALOGEXTRACT }
  169. ENG|06010801    |     4|  |      { TABLE <table name> | USER | ALL }
  170. ENG|06010801    |     5|  |      OUTFILE <external file name>
  171. ENG|06010801    |     6|  |      [ <code spec> <sqlmode> <compress spec> <count spec> ]
  172. ENG|06010801    |     7|  |      [ APPEND ]
  173. ENG|06010801    |    10|  |    <code spec>, <sqlmode>, <compress spec>, <count spec>
  174. ENG|06010801    |    12|RI|      ##060117<file^format>
  175. ENG|06010802    |     1|  |    <catalogload statement>
  176. ENG|06010802    |     3|  |      { LOAD CATALOG | CATALOGLOAD }
  177. ENG|06010802    |     4|  |      { TABLE <table name> | USER | ALL }
  178. ENG|06010802    |     5|  |      INFILE <external file name>
  179. ENG|06010802    |     6|  |      [ <code spec> <sqlmode> <count spec> ]
  180. ENG|06010802    |     9|  |    <code spec>, <sqlmode>, <count spec>
  181. ENG|06010802    |    11|RI|      ##060117<file^format>
  182. ENG|06010901    |     1|  |    <tableextract statement>
  183. ENG|06010901    |     3|  |      { EXTRACT TABLE | TABLEEXTRACT }
  184. ENG|06010901    |     4|  |      { [ TABLE ] <table name> | USER | ALL }
  185. ENG|06010901    |     5|  |      <table content file>
  186. ENG|06010901    |     8|  |    <table content file>
  187. ENG|06010901    |    10|  |      OUTFILE <external file name>
  188. ENG|06010901    |    11|  |      [ <count spec> ]
  189. ENG|06010901    |    14|  |    <count spec>
  190. ENG|06010901    |    16|RI|      ##060117<file^format>
  191. ENG|06010902    |     1|  |    <tableunload statement>
  192. ENG|06010902    |     3|  |      { UNLOAD TABLE | TABLEUNLOAD }
  193. ENG|06010902    |     4|  |      { [ TABLE ] <table name> | USER | ALL }
  194. ENG|06010902    |     5|  |      <table content file>
  195. ENG|06010902    |     8|  |    <table content file>
  196. ENG|06010902    |    10|  |      OUTFILE <external file name>
  197. ENG|06010902    |    11|  |      [ <count spec> ]
  198. ENG|06010902    |    14|  |    <count spec>
  199. ENG|06010902    |    16|RI|      ##060117<file^format>
  200. ENG|06010903    |     1|  |    <tableload statement>
  201. ENG|06010903    |     3|  |      { LOAD TABLE | TABLELOAD }     { LOAD TABLE | TABLELOAD }
  202. ENG|06010903    |     4|  |      [ TABLE ] <table name>         { USER | ALL }
  203. ENG|06010903    |     5|  |      <table content file>           <table content file> ;
  204. ENG|06010903    |     6|  |                                     <rejected table file>
  205. ENG|06010903    |     9|  |    <table content file>
  206. ENG|06010903    |    11|  |      INFILE <external file name>
  207. ENG|06010903    |    12|  |      [ <count spec> ]
  208. ENG|06010903    |    15|  |    <rejected table file>
  209. ENG|06010903    |    17|  |      OUTFILE <external file name>
  210. ENG|06010903    |    18|S |      [ <count spec> ]
  211. ENG|06010903    |    19|  |    <count spec>
  212. ENG|06010903    |    21|RI|      ##060117<file^format>
  213. ENG|06011001    |     1|  |    <dbextract statement>
  214. ENG|06011001    |     3|  |      { EXTRACT DB | DBEXTRACT }
  215. ENG|06011001    |     4|  |      <catalog file> ;
  216. ENG|06011001    |     5|  |      <table content file>
  217. ENG|06011001    |     8|  |    <catalog file>
  218. ENG|06011001    |    10|  |      OUTFILE <external file name> [ APPEND ]
  219. ENG|06011001    |    11|  |      [ <code spec> <sqlmode> <compress spec> <count spec> ]
  220. ENG|06011001    |    14|  |    <code spec>, <sqlmode>, <compress spec>, <count spec>
  221. ENG|06011001    |    16|SI|      ##060117<file^format>
  222. ENG|06011001    |    19|  |    <table content file>
  223. ENG|06011001    |    21|  |      OUTFILE <external file name>
  224. ENG|06011001    |    22|R |      [ <count spec> ]
  225. ENG|06011002    |     1|  |    <dbload statement>
  226. ENG|06011002    |     3|  |      { LOAD DB | DBLOAD }
  227. ENG|06011002    |     4|  |      <catalog file> ;
  228. ENG|06011002    |     5|  |      <table content file> ;
  229. ENG|06011002    |     6|  |      <rejected table file>
  230. ENG|06011002    |     9|  |    <catalog file>
  231. ENG|06011002    |    11|  |      INFILE <external file name>
  232. ENG|06011002    |    12|  |      [ <code spec> <sqlmode> <count spec> ]
  233. ENG|06011002    |    15|  |    <code spec>, <sqlmode>, <count spec>
  234. ENG|06011002    |    17|SI|      ##060117<file^format>
  235. ENG|06011002    |    19|  |    <table content file>
  236. ENG|06011002    |    21|  |      INFILE <external file name>
  237. ENG|06011002    |    22|  |      [ <count spec> ]
  238. ENG|06011002    |    25|  |    <rejected table file>
  239. ENG|06011002    |    27|  |      OUTFILE <external file name>
  240. ENG|06011002    |    28|R |      [ <count spec> ]
  241. ENG|06011101    |     1|  |    <load oracledb statement>
  242. ENG|06011101    |     3|  |      {LOAD | FASTLOAD} ORACLEDB
  243. ENG|06011101    |     4|  |      <oracle exp file>
  244. ENG|06011101    |     7|  |    <oracle exp file>
  245. ENG|06011101    |     9|  |      INFILE <external file name>  [ <intpres spec> ]
  246. ENG|06011101    |    12|  |    <intpres spec>
  247. ENG|06011101    |    14|RI|      ##060117<file^format>
  248. ENG|06011102    |     1|  |    <load oracle table>
  249. ENG|06011102    |     3| I|      ##060103<load^statement>
  250. ENG|06011102    |     4|  |      <oracle exp file> ORACLE
  251. ENG|06011102    |     7|  |    <oracle exp file>
  252. ENG|06011102    |     9|  |      INFILE <external file name>  [ <intpres spec> ]
  253. ENG|06011102    |    12|  |    <intpres spec>
  254. ENG|06011102    |    14|RI|      ##060117<file^format>
  255. ENG|060113      |     1|  |    <other stmt>
  256. ENG|060113      |     3| M|      {   #01<change autocommit stmt>
  257. ENG|060113      |     4| M|        | #02<change user stmt>
  258. ENG|060113      |     5| M|        | #03<change sqlmode stmt>
  259. ENG|060113      |     6| M|        | #04<change termcharset stmt>  }
  260. ENG|060113      |     7|RM|        | #05<long message stmt>  }
  261. ENG|06011301    |     1|  |    <change autocommit stmt>
  262. ENG|06011301    |     3|R |      AUTOCOMMIT  { OFF | ON }
  263. ENG|06011302    |     1|  |    <change user stmt>
  264. ENG|06011302    |     3|  |      {   [ USE ] USER <user spec> [ NOLOG ]  [ SERVERDB <serverdb spec> ]
  265. ENG|06011302    |     4|  |        | USE USERKEY <xuserkey> }
  266. ENG|06011302    |     5|  |        | USE SERVERDB <serverdb spec>
  267. ENG|06011302    |     8|  |    <user spec>
  268. ENG|06011302    |    10|  |      { <username> <password> | &U  }
  269. ENG|06011302    |    13|  |    <serverdb spec>
  270. ENG|06011302    |    15|S |      <dbname> [ ON <node> ]
  271. ENG|06011302    |    19|  |    <username>, <password>
  272. ENG|06011302    |    21|  |      {   <simple identifier> | "<special identifier>"  }
  273. ENG|06011302    |    24|  |    <dbname>, <node>, <xuserkey>
  274. ENG|06011302    |    26|R |      <external identifier>
  275. ENG|06011303    |     1|  |    <change sqlmode stmt>
  276. ENG|06011303    |     3|RI|      SQLMODE ##06011705<sqlmode>
  277. ENG|06011304    |     1|  |    <change termcharset stmt>
  278. ENG|06011304    |     3|  |      {   USE TERMCHARSET <new termcharset name>
  279. ENG|06011304    |     4|  |        | IGNORE TERMCHARSET  }
  280. ENG|06011304    |     7|  |    <new termcharset name>
  281. ENG|06011304    |     9|  |      {   <simple identifier>
  282. ENG|06011304    |    10|R |        | "<special identifier>"  }
  283. ENG|06011305    |     1|  |    <long message stmt>
  284. ENG|06011305    |     3|R |      MESSAGE ON
  285. ENG|060114      |     1|  |    <control stmt>
  286. ENG|060114      |     3| M|      {   #01<if stmt>
  287. ENG|060114      |     4| M|        | #02<return stmt>
  288. ENG|060114      |     5| M|        | #02<stop stmt>
  289. ENG|060114      |     6| M|        | <set #03returncode stmt>
  290. ENG|060114      |     7| M|        | #04<include controlfile stmt>
  291. ENG|060114      |     8|RM|        | #05<say stmt>
  292. ENG|06011401    |     1|  |    <if stmt>
  293. ENG|06011401    |     3|  |      IF  {   TRUE
  294. ENG|06011401    |     4|  |            | FALSE
  295. ENG|06011401    |     5|  |            | $RC  [ ( <sql stmt> ) ]  <comp op> <integer>  }
  296. ENG|06011401    |     6|  |      THEN  <compound>
  297. ENG|06011401    |     7|  |      [ ELSE  <compound> ]
  298. ENG|06011401    |    10|  |    <comp op>
  299. ENG|06011401    |    12|  |      {  <  |  <=  |  =  |  >=  |  >  |  <>  }
  300. ENG|06011401    |    15|  |    <compound>
  301. ENG|06011401    |    17|S |      {   BEGIN <stmt list> END  | <single stmt>  }
  302. ENG|06011401    |    19|  |    <stmt list>
  303. ENG|06011401    |    21|  |      {   <single stmt> [ <single stmt> ]...   }
  304. ENG|06011401    |    24|  |    <single stmt>
  305. ENG|06011401    |    26|  |      <separator line>
  306. ENG|06011401    |    27| I|      {    ##060114<control^stmt>
  307. ENG|06011401    |    28|  |         | <load stmt>
  308. ENG|06011401    |    29|  |         | <sql stmt>  }
  309. ENG|06011401    |    30|R |      <separator line>
  310. ENG|06011402    |     1|  |    <return stmt>
  311. ENG|06011402    |     3|  |      RETURN
  312. ENG|06011402    |     6|  |    <stop stmt>
  313. ENG|06011402    |     8|R |      STOP  [ <integer> ]
  314. ENG|06011403    |     1|  |    <set returncode stmt>
  315. ENG|06011403    |     3|R |      RETURNCODE <unsigned integer>
  316. ENG|06011404    |     1|  |    <include controlfile stmt>
  317. ENG|06011404    |     3|RI|      INCLUDE <external file name> [ ##06011701<code^spec> ]  [ ##06011705<sqlmode> ]
  318. ENG|06011405    |     1|  |    <say stmt>
  319. ENG|06011405    |     3|R |      SAY <comment>
  320. ENG|06011501    |     1|  |    <end command>
  321. ENG|06011501    |     3|R |      END
  322. ENG|06011502    |     1|  |    <exit command>
  323. ENG|06011502    |     3|R |      EXIT
  324. ENG|06011503    |     1|  |    <run command>
  325. ENG|06011503    |     3|  |        <run control file command>
  326. ENG|06011503    |     4|S |      | <start statement command>
  327. ENG|06011503    |    19|  |    <run control file command>
  328. ENG|06011503    |    21|  |      RUN <external file name>
  329. ENG|06011503    |    22| I|      [ ##06011701<code^spec> ]
  330. ENG|06011503    |    23| I|      [ ##06011705<sqlmode> ]
  331. ENG|06011503    |    24|  |      [ PROMPT ]
  332. ENG|06011503    |    25|  |      [ -p <parameter list> ]
  333. ENG|06011503    |    28|  |    <parameter list>
  334. ENG|06011503    |    30|  |      <parameter> [ <blank> <parameter> ]...
  335. ENG|06011503    |    33|  |    <parameter>
  336. ENG|06011503    |    35|  |      {   <literal without blanks>
  337. ENG|06011503    |    36|S |        | '<literal containing blanks>' }
  338. ENG|06011503    |    37|  |    <start statement command>
  339. ENG|06011503    |    39|  |      RUN <line ranges>
  340. ENG|06011503    |    42|  |    <line ranges>
  341. ENG|06011503    |    44|  |      [ FROM <count> ]  [ FOR <lines> ]  [ STOP <count> ]
  342. ENG|06011503    |    47|  |    <count>
  343. ENG|06011503    |    49|  |      <unsigned integer>
  344. ENG|06011503    |    52|  |    <lines>
  345. ENG|06011503    |    54|R |      { <count> | * }
  346. ENG|06011504    |     1|  |    <next command>
  347. ENG|06011504    |     3|  |      {   <next prompt>
  348. ENG|06011504    |     4|  |        | <next noprompt> }
  349. ENG|06011504    |     7|  |    <next prompt>
  350. ENG|06011504    |     9|  |      NEXT  [ PROMPT ]
  351. ENG|06011504    |    12|  |    <next noprompt>
  352. ENG|06011504    |    14|R |      NEXT NOPROMPT
  353. ENG|06011505    |     1|  |    <skip command>
  354. ENG|06011505    |     3|  |      SKIP  { <number of statements> | <keyword> }
  355. ENG|06011505    |     6|  |    <number of statements>
  356. ENG|06011505    |     8|  |      {   [ 1 ]
  357. ENG|06011505    |     9|R |        | <unsigned integer> }
  358. ENG|06011506    |     1|  |    <scan command>
  359. ENG|06011506    |     3|R |      SCAN [ <literal> ]
  360. ENG|06011507    |     1|  |    <close controlfile command>
  361. ENG|06011507    |     3|R |      END RUN
  362. ENG|06011508    |     1|  |    <prot command>
  363. ENG|06011508    |     3|R |      PROT
  364. ENG|06011509    |     1|  |    <version command>
  365. ENG|06011509    |     3|R |      VERSION
  366. ENG|06011510    |     1|  |    <exec command>
  367. ENG|06011510    |     3|R |      EXEC  [ ASYNC ]  <operating system command>
  368. ENG|06011511    |     1|  |    <set command>
  369. ENG|06011511    |     3|R |      SET
  370. ENG|06011512    |     1|  |    <help command>
  371. ENG|06011512    |     3|  |      HELP  [ <helpid> ]
  372. ENG|06011512    |     6|  |    <helpid>
  373. ENG|06011512    |     8|  |      {   BATCH
  374. ENG|06011512    |     9|  |        | END
  375. ENG|06011512    |    10|  |        | END RUN
  376. ENG|06011512    |    11|  |        | EXEC
  377. ENG|06011512    |    12|  |        | EXIT
  378. ENG|06011512    |    13|  |        | HELP
  379. ENG|06011512    |    14|  |        | NEXT
  380. ENG|06011512    |    15|  |        | PROT
  381. ENG|06011512    |    16|  |        | RUN
  382. ENG|06011512    |    17|  |        | SCAN
  383. ENG|06011512    |    18|S |        | SET
  384. ENG|06011512    |    19|  |        | SKIP
  385. ENG|06011512    |    20|R |        | VERSION  }
  386. ENG|06011513    |     1|  |    <batch command>
  387. ENG|06011513    |     3|  |      BATCH <external file name>
  388. ENG|06011513    |     4| I|      [ ##06011701<code^spec> ]
  389. ENG|06011513    |     5| I|      [ ##06011705<sqlmode> ]
  390. ENG|06011513    |     6|  |      [ -p <parameter list> ]
  391. ENG|06011513    |     9|  |    <parameter list>
  392. ENG|06011513    |    11|  |      <parameter> [ <blank> <parameter> ]...
  393. ENG|06011513    |    14|  |    <parameter>
  394. ENG|06011513    |    16|  |      {   <literal without blanks>
  395. ENG|06011513    |    17|R |        | '<literal containing blanks>' }
  396. ENG|060117      |     1|  |    <file format>
  397. ENG|060117      |     3| M|      [ #01<code^spec> ]
  398. ENG|060117      |     4| M|      [ #02<intpres^spec> ]
  399. ENG|060117      |     5| M|      [ #03<compress^spec> ]
  400. ENG|060117      |     6| M|      [ #04<count^spec> ]
  401. ENG|060117      |     7| M|      [ #05<sqlmode> ]
  402. ENG|060117      |     8| M|      [ #06<number^layout^spec> ]
  403. ENG|060117      |     9| M|      [ #07<date^representation^spec> ]
  404. ENG|060117      |    10| M|      [ #08<time^representation^spec> ]
  405. ENG|060117      |    11| M|      [ #09<timestamp^representation^spec> ]
  406. ENG|060117      |    12| M|      [ #10<null^representation^spec> ]
  407. ENG|060117      |    13| M|      [ #11<bool^representation^spec> ]
  408. ENG|060117      |    14|RM|      [ #12<concatenate^spec> ]
  409. ENG|06011701    |     1|  |    <code spec>
  410. ENG|06011701    |     3|R |      { ASCII | EBCDIC }
  411. ENG|06011702    |     1|  |    <intpres spec>
  412. ENG|06011702    |     3|R |      INTEGER { HILO | LOHI }
  413. ENG|06011703    |     1|  |    <compress spec>
  414. ENG|06011703    |     3|  |      {   [ COMPRESS ] <any compress spec>  [ <any compress spec> ]
  415. ENG|06011703    |     4|  |        | <default compress spec> }
  416. ENG|06011703    |     7|  |    <any compress spec>
  417. ENG|06011703    |     9|  |      {   SEPARATOR <field separator>
  418. ENG|06011703    |    10|  |        | DELIMITER <string delimiter> }
  419. ENG|06011703    |    13|  |    <default compress spec>
  420. ENG|06011703    |    15|  |      {   COMPRESS
  421. ENG|06011703    |    16|S |        | SEPARATOR ',' DELIMITER '"' }
  422. ENG|06011703    |    19|  |    <field separator>
  423. ENG|06011703    |    21|  |      '<any character>'
  424. ENG|06011703    |    24|  |    <string delimiter>
  425. ENG|06011703    |    26|R |      { '<any character>' | '' }
  426. ENG|06011704    |     1|  |    <count spec>
  427. ENG|06011704    |     3|  |      COUNT <block count>
  428. ENG|06011704    |     6|  |    <block count>
  429. ENG|06011704    |     8|R |      <unsigned integer>
  430. ENG|06011705    |     1|  |    <sqlmode>
  431. ENG|06011705    |     3|  |      {   ADABAS
  432. ENG|06011705    |     4|  |        | ANSI
  433. ENG|06011705    |     5|  |        | DB2
  434. ENG|06011705    |     6|R |        | ORACLE  }
  435. ENG|06011706    |     1|  |    <number layout spec>
  436. ENG|06011706    |     3|  |      DEC '<number layout mask>'
  437. ENG|06011706    |     6|  |    <number layout mask>
  438. ENG|06011706    |     8|R |      /[<thousand char>]/<decimal point>/
  439. ENG|06011707    |     1|  |    <date representation>
  440. ENG|06011707    |     3|  |      DATE '<date mask>'
  441. ENG|06011707    |     6|  |    <date mask>
  442. ENG|06011707    |     8|  |      {   INTERNAL                       /* YYYYMMDD
  443. ENG|06011707    |     9|  |        | EUR                            /* DD.MM.YYYY
  444. ENG|06011707    |    10|  |        | ISO                            /* YYYY-MM-DD
  445. ENG|06011707    |    11|  |        | JIS                            /* YYYY-MM-DD
  446. ENG|06011707    |    12|  |        | USA                            /* MM/DD/YYYY
  447. ENG|06011707    |    13|  |        | <free format>  }
  448. ENG|06011707    |    16|  |    <free format>
  449. ENG|06011707    |    18|R |      { DD, TT, MM, MMM, JJ, JJJJ, YY, YYYY, <separator>, <blank> }
  450. ENG|06011708    |     1|  |    <time representation>
  451. ENG|06011708    |     3|  |      TIME '<time mask>'
  452. ENG|06011708    |     6|  |    <time mask>
  453. ENG|06011708    |     8|  |      {   INTERNAL                       /* HHHHMMSS
  454. ENG|06011708    |     9|  |        | EUR                            /* HH.MM.SS
  455. ENG|06011708    |    10|  |        | ISO                            /* HH.MM.SS
  456. ENG|06011708    |    11|  |        | JIS                            /* HH:MM:SS
  457. ENG|06011708    |    12|  |        | USA                            /* HH:MM AM
  458. ENG|06011708    |    13|  |        | <free format>  }
  459. ENG|06011708    |    16|  |    <free format>
  460. ENG|06011708    |    18|R |      { HH, MM, SS, AM, <separator>, <blank> }
  461. ENG|06011709    |     1|  |    <timestamp representation>
  462. ENG|06011709    |     3|  |      TIMESTAMP '<timestamp mask>'
  463. ENG|06011709    |     6|  |    <timestamp mask>
  464. ENG|06011709    |     8|  |      {   INTERNAL                      /* YYYYMMDDHHMMSSNNNNNN
  465. ENG|06011709    |     9|  |        | EUR                           /* = ISO
  466. ENG|06011709    |    10|  |        | ISO                           /* YYYY-MM-DD.HH.MM.SS.NNNNNN
  467. ENG|06011709    |    11|  |        | JIS                           /* = ISO
  468. ENG|06011709    |    12|  |        | USA                           /* = ISO
  469. ENG|06011709    |    13|S |        | <free format>  }
  470. ENG|06011709    |    19|  |    <free format>
  471. ENG|06011709    |    21|  |      { DD, TT, MM, MMM, JJ, JJJJ, YY, YYYY
  472. ENG|06011709    |    22|R |      , HH, MM, SS, AM, <separator>, <blank> }
  473. ENG|06011710    |     1|  |    <null representation>
  474. ENG|06011710    |     3|R |      NULL '<literal>'
  475. ENG|06011711    |     1|  |    <bool representation>
  476. ENG|06011711    |     3|  |      BOOLEAN '<true spec>/<false spec>'
  477. ENG|06011711    |     6|  |    <true spec>, <false spec>
  478. ENG|06011711    |     8|R |      <literal>
  479. ENG|06011712    |     1|  |    <concatenate spec>
  480. ENG|06011712    |     3|  |      { <unconditional concatenation> | <conditional concatenation> }
  481. ENG|06011712    |     6|  |    <unconditional concatenation>
  482. ENG|06011712    |     8|  |      CONCATENATE <number of lines>
  483. ENG|06011712    |    11|  |    <conditional concatenation>
  484. ENG|06011712    |    13|  |      CONTINUEIF
  485. ENG|06011712    |    14|  |      { <linepos> | LAST }
  486. ENG|06011712    |    15|  |      { = | <> }
  487. ENG|06011712    |    16|R |      { '<any character>' | X'<hex character>' }
  488. ENG|06011720    |     1|R |    <infile spec>, <outfile spec> und <longfile spec>
  489. ENG|06011721    |     1|  |    <infile spec>
  490. ENG|06011721    |     3|  |      INFILE <file name>
  491. ENG|06011721    |     4| I|      ##060117<file^format>
  492. ENG|06011721    |     7|  |    <file name>
  493. ENG|06011721    |     9|  |      { * | <external file name> }
  494. ENG|06011721    |    12|  |    <external file name>
  495. ENG|06011721    |    14|  |      {   CLIPBOARD
  496. ENG|06011721    |    15|  |        | <tape ident>
  497. ENG|06011721    |    16|R |        | <disk file name>  }
  498. ENG|06011722    |     1|  |    <outfile spec>
  499. ENG|06011722    |     3|  |      OUTFILE <file name>
  500. ENG|06011722    |     4| I|     ##060117<file^format>
  501. ENG|06011722    |     7|  |    <file name>
  502. ENG|06011722    |     9|  |      { * | <external file name> }
  503. ENG|06011722    |    12|  |    <external file name>
  504. ENG|06011722    |    14|  |      {   PRINTER
  505. ENG|06011722    |    15|  |        | CLIPBOARD
  506. ENG|06011722    |    16|  |        | <tape ident>
  507. ENG|06011722    |    17|R |        | <disk file name> [ APPEND ]   }
  508. ENG|06011723    |     1|  |    <longfile spec>
  509. ENG|06011723    |     3|  |     LONGFILE <column id> <longfile name>
  510. ENG|06011723    |     6|  |    <longfile name>
  511. ENG|06011723    |     8|  |      {   PRINTER
  512. ENG|06011723    |     9|  |        | <tape ident>
  513. ENG|06011723    |    10|  |        | <disk file name>
  514. ENG|06011723    |    11|  |        | <filename pattern>  }
  515. ENG|06011723    |    14|  |    <filename pattern>
  516. ENG|06011723    |    16|R |      <disk file name containing >=1 '#'>
  517. ENG|0602        |     1|  |                     LOAD Online
  518. ENG|0602        |     2|  |                     -----------
  519. ENG|0602        |     4| M|                     #01Layout^of^the^Screen
  520. ENG|0602        |     5| I|                     ##04Edit^Functions
  521. ENG|0602        |     6| M|                     #02Interactive^Testing
  522. ENG|0602        |     7| M|                     #03Commands^and^Function^Keys
  523. ENG|0602        |     8|RM|                     #04HELP^Features
  524. ENG|060201      |     1|  |    Layout of the Screen
  525. ENG|060201      |     3|  |    The  screen  consists  of  several  write  protected areas where status
  526. ENG|060201      |     4|  |    information, messages, the current key setting etc. is  displayed,  and
  527. ENG|060201      |     5|  |    of two input areas:
  528. ENG|060201      |     7|  |    the input form for LOAD and SQL statements and
  529. ENG|060201      |     9|  |    the command line.
  530. ENG|060201      |    11|  |    You  can  scroll  over the input form which has a total size of 24Kbyte
  531. ENG|060201      |    12|  |    and a maximum line length of 141 characters. From this input  form  the
  532. ENG|060201      |    13|  |    LOAD or SQL statements, e.g. DATALOAD and DELETE, are read.
  533. ENG|060201      |    15|R |    The command line (==>) serves to execute commands like RUN, PUT etc.
  534. ENG|060202      |     1|  |    Interactive Testing
  535. ENG|060202      |     3|  |    If  you  want to test a single statement you can type it into the input
  536. ENG|060202      |     4|  |    form, PUT it into a file, GET it from the file back onto the screen.
  537. ENG|060202      |     6|  |    A control file started  with  RUN  is  more  suitable  for  interactive
  538. ENG|060202      |     7|  |    testing  of more than one statement. LOAD offers several commands (like
  539. ENG|060202      |     8|  |    NEXT, SKIP, SCAN) to move within the control  file  and  takes  control
  540. ENG|060202      |     9|R |    statements and separator lines into account.
  541. ENG|060203      |     1|  |    Commands and Function Keys
  542. ENG|060203      |     3|  |    The  execution  of  LOAD  functions  is  controlled via a group of LOAD
  543. ENG|060203      |     4|  |    commands. To enter these commands please use the command line (==>)  in
  544. ENG|060203      |     5|  |    the lower part of the screen.
  545. ENG|060203      |     7|  |    LOAD  commands  consist  of  a  keyword,  followed  by  - in some cases
  546. ENG|060203      |     8|  |    optional - parameters. In general, lowercase  letters  in  the  command
  547. ENG|060203      |     9|  |    line  are  translated to uppercase. An exception is made for file names
  548. ENG|060203      |    10|  |    and parameters enclosed in single quotes.
  549. ENG|060203      |    12|  |    The most frequently used commands can be executed via function keys  as
  550. ENG|060203      |    13|  |    well.  The  current  function  key setting is displayed in the language
  551. ENG|060203      |    14|R |    chosen via SET.
  552. ENG|060204      |     1|  |    HELP Features
  553. ENG|060204      |     3|  |    HELP displays short descriptions of all statements  and  commands  that
  554. ENG|060204      |     4|  |    are  available  within  LOAD. Descriptions of SQL statements and editor
  555. ENG|060204      |     5|  |    features can be requested as well. The descriptions are arranged in  an
  556. ENG|060204      |     6|  |    hierarchical order.
  557. ENG|060204      |     8|  |    A  particular chapter can be selected by placing the cursor on a bright
  558. ENG|060204      |     9|  |    word (use the TAB key) and then pressing the HELP key. By pressing  the
  559. ENG|060204      |    10|  |    PREV  key  you  return to the previous chapter or menu. HLP-MENU brings
  560. ENG|060204      |    11|  |    you back to the top level. HELP-END leaves the HELP environment.
  561. ENG|060204      |    13|  |    The PICK key copies an example within a help chapter into the  editor's
  562. ENG|060204      |    14|  |    pick  buffer.  PUT transfers the pick buffer content to the input form.
  563. ENG|060204      |    15|  |    The MARK key marks the currently displayed help text page.  During  the
  564. ENG|060204      |    16|  |    next  call  of  the HELP function, the TO-MARK key switches directly to
  565. ENG|060204      |    17|  |    the marked page.
  566. ENG|060204      |    18|RI|                                                                     ##06011512Syntax
  567. ENG|0603        |     1|  |                   How to Fill Database Tables
  568. ENG|0603        |     2|  |                   ---------------------------
  569. ENG|0603        |     4| M|         #01The^Load^Statement^DATALOAD^TABLE
  570. ENG|0603        |     5| M|         #02Data^Types^of^File^Fields^(INTEGER,^REAL^etc.)
  571. ENG|0603        |     6| M|         #03Dimension^and^Precision^of^Numerical^Values
  572. ENG|0603        |     7| M|         #04Format^Specifications^Related^to^a^File^and^Other^File^Options
  573. ENG|0603        |     8| M|         #05Selecting^Records^from^a^Source^File
  574. ENG|0603        |     9| M|         #06Inserting^NULL^Values
  575. ENG|0603        |    10| M|         #07Loading^Constants
  576. ENG|0603        |    11| M|         #08Loading^Function^Values^(USER,^DATE,^SEQNO^etc.)
  577. ENG|0603        |    12| M|         #09Loading^Several^Tables^in^a^Single^Run
  578. ENG|0603        |    13| M|         #10Selection^with^OTHERWISE
  579. ENG|0603        |    14| M|         #11Input^of^Test^Data^on^the^Screen
  580. ENG|0603        |    15| M|         #12DATALOAD^with^Input^Made^in^Default^Format
  581. ENG|0603        |    17| M|         #13Loading^without^Logging^(FASTLOAD)
  582. ENG|0603        |    18|RM|         #14FASTLOAD^with^USAGE^Option
  583. ENG|060301      |     1|  |    The Load Statement DATALOAD TABLE
  584. ENG|060301      |     3|  |    A common load statement consists at least of the following  parts:  the
  585. ENG|060301      |     4|  |    keyword  DATALOAD  TABLE,  a load description, the keyword INFILE and a
  586. ENG|060301      |     5|  |    file name.
  587. ENG|060301      |     7|  |    The load description specifies the target  table  and  combines  column
  588. ENG|060301      |     8|  |    names  with  positions  in  the file line where the input data shall be
  589. ENG|060301      |     9|  |    read from. Default values are assigned to columns  not  listed  in  the
  590. ENG|060301      |    10|  |    load description.
  591. ENG|060301      |    12|  |    The  table  name  is  specified in accordance with the SQL conventions.
  592. ENG|060301      |    13|  |    Each column name  has  to  be  followed  by  a  position  specification
  593. ENG|060301      |    14|  |    refering  to  the  input  line.  The  value  found  at this position is
  594. ENG|060301      |    15|  |    inserted into  the  column.  Position  specifications  can  consist  of
  595. ENG|060301      |    16|  |    starting  and  ending  position with a hyphen in between or designate a
  596. ENG|060301      |    17|S |    single byte. Counting starts with 1.
  597. ENG|060301      |    19|  |    Into the table CUSTOMER data from the master file (cmaster.data)  shall
  598. ENG|060301      |    20|  |    be loaded. The file consists of formatted plaintext with an extra blank
  599. ENG|060301      |    21|  |    after every field.
  600. ENG|060301      |    22| E|
  601. ENG|060301      |    23| E|    DATALOAD TABLE customer
  602. ENG|060301      |    24| E|        cno         1-4
  603. ENG|060301      |    25| E|        lastname    6-15
  604. ENG|060301      |    26| E|        city       17-36
  605. ENG|060301      |    27| E|        fstate     37-38
  606. ENG|060301      |    28| E|        zip        39-43
  607. ENG|060301      |    29| E|    INFILE cmaster.data
  608. ENG|060301      |    30| E|
  609. ENG|060301      |    31|RI|                                                                     ##06010301Syntax
  610. ENG|060302      |     1|  |    Data Types of File Fields (INTEGER, REAL etc.)
  611. ENG|060302      |     3|  |    For  each  column  of  the  input file, defined by a position, the data
  612. ENG|060302      |     4|  |    format of the field values contained  therein  can  be  specified.  The
  613. ENG|060302      |     5|  |    declaration  is  only  needed  when  the field values are not stored in
  614. ENG|060302      |     6|  |    plaintext (CHAR).
  615. ENG|060302      |     8|  |    If values are to be entered into CHAR or BYTE columns, the input length
  616. ENG|060302      |     9|  |    must not exceed the  column  length.  Plaintext  values  for  numerical
  617. ENG|060302      |    10|  |    columns must be of the currently set number format.
  618. ENG|060302      |    12|  |    Data  of  the  numerical  formats  INTEGER,  REAL,  DECIMAL, and ZONED,
  619. ENG|060302      |    13|  |    generated by an application program, can only be inserted into FIXED or
  620. ENG|060302      |    14|  |    FLOAT columns.
  621. ENG|060302      |    16|  |    Regardless of the data format of a numerical value,  fractional  digits
  622. ENG|060302      |    17|  |    are  implicitly truncated when the precision of the column is less than
  623. ENG|060302      |    18|S |    that of the input value.
  624. ENG|060302      |    19|  |    Data from a binary file shall be loaded into the table ITEM:
  625. ENG|060302      |    20| E|
  626. ENG|060302      |    21| E|    DATALOAD TABLE item
  627. ENG|060302      |    22| E|        item_id      1-8
  628. ENG|060302      |    23| E|        descr        9-39
  629. ENG|060302      |    24| E|        stock       40-43 INTEGER
  630. ENG|060302      |    25| E|        min_stock   44-45 INTEGER
  631. ENG|060302      |    26| E|        orderdate   46-53 CHAR
  632. ENG|060302      |    27| E|        delivdate   54-61 CHAR
  633. ENG|060302      |    28| E|        price       62-69 DECIMAL (2)
  634. ENG|060302      |    29| E|        weight      70-77 REAL
  635. ENG|060302      |    30| E|    INFILE item.data
  636. ENG|060302      |    31| E|
  637. ENG|060302      |    32|RI|                                                                     ##06010306Syntax
  638. ENG|060303      |     1|  |    Dimension and Precision of Numerical Values
  639. ENG|060303      |     3|  |    Applying the functions SCALE, ROUND, and TRUNC edits  numerical  values
  640. ENG|060303      |     4|  |    before they are inserted into the database.
  641. ENG|060303      |     6|  |    If SCALE (n) is specified, the values of the input column are raised to
  642. ENG|060303      |     7|  |    the n-th decimal power.
  643. ENG|060303      |     9|  |    If  TRUNC (n) is specified, at most n fractional digits of a number are
  644. ENG|060303      |    10|  |    taken into account and the remaining digits are assigned 0.
  645. ENG|060303      |    12|  |    If ROUND (n) is specified, the  values  are  rounded  to  n  fractional
  646. ENG|060303      |    13|  |    digits.  If  a  rounded  fractional digit is 5 or higher, the preceding
  647. ENG|060303      |    14|  |    digit is incremented, otherwise it remains unchanged.
  648. ENG|060303      |    16|  |    Before applying TRUNC or ROUND  to  a  floating  point  number,  it  is
  649. ENG|060303      |    17|S |    converted into a fixed point representation.
  650. ENG|060303      |    19| E|
  651. ENG|060303      |    20| E|    DATALOAD TABLE number_table
  652. ENG|060303      |    21| E|        ins_date      8-17
  653. ENG|060303      |    22| E|        ins_time     22-29
  654. ENG|060303      |    23| E|        big_number   33-37 SCALE 7
  655. ENG|060303      |    24| E|        small_number 33-37 SCALE -3 ROUND 4
  656. ENG|060303      |    25| E|        integer      33-37 SCALE 1 TRUNC 0
  657. ENG|060303      |    26| E|    INFILE * DEC '/ /,/'
  658. ENG|060303      |    27| E|             DATE 'YYYY-MM-DD'
  659. ENG|060303      |    28| E|             TIME 'HH:MM AM'
  660. ENG|060303      |    29| E|             NULL '-?-'
  661. ENG|060303      |    30| E|    INPUT: 1992-08-10 at 07:30 AM : 67,76
  662. ENG|060303      |    31| E|
  663. ENG|060303      |    32|  |    The numbers inserted are 677 600 000; 0,0678; 677.
  664. ENG|060303      |    34|RI|                                                                     ##0601030601Syntax
  665. ENG|060304      |     1|  |    Format Specifications Related to a File and Other File Options
  666. ENG|060304      |     3|  |    File options can be used to override several default settings. They can
  667. ENG|060304      |     4|  |    indicate  the format of plaintext numbers (DEC), DATE, TIME, TIMESTAMP,
  668. ENG|060304      |     5|  |    BOOLEAN, and NULL values  used  in  the  file  in  hand.  Moreover  the
  669. ENG|060304      |     6|  |    conversion  between ASCII and EBCDIC or from one integer representation
  670. ENG|060304      |     7|  |    to another can be demanded, as may be required if the  data  stem  from
  671. ENG|060304      |     8|  |    another platform.
  672. ENG|060304      |    10|  |    The  default  setting  of  the file options DEC, DATE, TIME, TIMESTAMP,
  673. ENG|060304      |    11|  |    BOOLEAN, and NULL tallies with the respective SET  value.  The  default
  674. ENG|060304      |    12|  |    for  ASCII/EBCDIC  and  INTEGER  HILO/LOHI  is  taken  from  the  given
  675. ENG|060304      |    13|  |    hardware.
  676. ENG|060304      |    14| I|                                                                     ##060117Syntax
  677. ENG|060304      |    16|  |    The example on the next page  illustrates  the  use  of  concatenation,
  678. ENG|060304      |    17|  |    COMPRESS  mode, and overriding of SET values, based on the number_table
  679. ENG|060304      |    18|S |    of the SCALE, ROUND, and TRUNC chapter.
  680. ENG|060304      |    19| E|    DATALOAD TABLE number_table
  681. ENG|060304      |    20| E|        ins_date     1
  682. ENG|060304      |    21| E|        ins_time     2
  683. ENG|060304      |    22| E|        big_number   3 SCALE 7
  684. ENG|060304      |    23| E|        small_number 3 SCALE -3 ROUND 4
  685. ENG|060304      |    24| E|        integer      3 SCALE 1 TRUNC 0
  686. ENG|060304      |    25| E|    INFILE *
  687. ENG|060304      |    26| E|        COMPRESS
  688. ENG|060304      |    27| E|        CONTINUEIF LAST = '+'
  689. ENG|060304      |    28| E|        DATE 'YYYY-MM-DD'
  690. ENG|060304      |    29| E|        TIME 'HH:MM AM'
  691. ENG|060304      |    30| E|        DEC '//,/'
  692. ENG|060304      |    31| E|    "1992-08-10","07:30 +
  693. ENG|060304      |    32| E|    AM","67,76"
  694. ENG|060304      |    33| E|
  695. ENG|060304      |    34|  |    If COMPRESS is set, LOAD can process data that have been  generated  by
  696. ENG|060304      |    35|  |    PC   tools.  The  positions  in  the  load  description  designate  the
  697. ENG|060304      |    36|S |    consecutive numbers of the input fields, which are of  variable  length
  698. ENG|060304      |    37|  |    and  terminated  by a separator character. The individual values can be
  699. ENG|060304      |    38|  |    enclosed in delimiter characters that are not part of the value.
  700. ENG|060304      |    40|  |    COMPRESS is set by any of the following options:  COMPRESS,  SEPARATOR,
  701. ENG|060304      |    41|  |    DELIMITER.  COMPRESS  is equivalent to SEPARATOR ',' DELIMITER '"'. You
  702. ENG|060304      |    42|  |    can override these settings by explicitly specifying  SEPARATOR  and/or
  703. ENG|060304      |    43|  |    DELIMITER. DELIMITER '' indicates that strings are not delimited.
  704. ENG|060304      |    45|  |    The  options  CONCATENATE  and  CONTINUEIF  serve to unite several file
  705. ENG|060304      |    46|  |    records into one input line. The  positions  in  the  load  description
  706. ENG|060304      |    47|  |    refer to this compound input line.
  707. ENG|060304      |    49|  |    CONCATENATE  has  to be followed by a numeric constant (1 <= n <= 4096)
  708. ENG|060304      |    50|  |    indicating how many file records are  to  be  concatenated.  CONTINUEIF
  709. ENG|060304      |    51|  |    checks  the given condition and concatenates the next file record if it
  710. ENG|060304      |    52|  |    is fulfilled. LAST compares the last  character  of  the  current  file
  711. ENG|060304      |    53|  |    record, otherwise the character found at the given position is used for
  712. ENG|060304      |    54|R |    the comparison.
  713. ENG|060305      |     1|  |    Selecting Records from a Source File
  714. ENG|060305      |     3|  |    Records  of a source file can be loaded into a table according to their
  715. ENG|060305      |     4|  |    contents. The selection is done by evaluating a  (simple  or  compound)
  716. ENG|060305      |     5|  |    condition  that  compares  a section of the input line with a constant.
  717. ENG|060305      |     6|  |    Only those input lines are loaded that meet the condition.
  718. ENG|060305      |     8|  |    Let the data of the input file be mingled with comment  lines  starting
  719. ENG|060305      |     9|  |    with  +++.  A  selection  of those hotels with a room rate of more than
  720. ENG|060305      |    10|  |    $500 shall be made.
  721. ENG|060305      |    11| I|                                                                     ##06010301Syntax
  722. ENG|060305      |    12| E|    DATALOAD TABLE classy_hotels
  723. ENG|060305      |    13| E|        IF (POS 1-3 <> '+++') AND (POS 73-76 DECIMAL > 50000)
  724. ENG|060305      |    14| E|        hno           1-10
  725. ENG|060305      |    15| E|        name         14-33
  726. ENG|060305      |    16| E|        city         37-56
  727. ENG|060305      |    17| E|        price        73-76 DECIMAL (2)
  728. ENG|060305      |    18|RE|    INFILE hotel.all
  729. ENG|060306      |     1|  |    Inserting NULL Values
  730. ENG|060306      |     3|  |    A NULL condition can be specified  for  any  target  column  which  may
  731. ENG|060306      |     4|  |    contain NULL values. It describes the condition on which the NULL value
  732. ENG|060306      |     5|  |    will  be  loaded  as  a  column  value. If a column has a default value
  733. ENG|060306      |     6|  |    definition other than NULL LOAD inserts the explicit default  value  if
  734. ENG|060306      |     7|  |    the condition is met.
  735. ENG|060306      |     9|  |    The condition DEFAULT NULL is fulfilled if the input field contains the
  736. ENG|060306      |    10|  |    string given in the NULL option or via SET. The shorter value is padded
  737. ENG|060306      |    11|  |    with blanks.
  738. ENG|060306      |    13| I|                                                                     ##06010305Syntax
  739. ENG|060306      |    15|  |    The  example  on  the  following  page  illustrates  both forms of NULL
  740. ENG|060306      |    16|  |    conditions.  The  German  address  is  assigned  NULL  for  FSTATE  and
  741. ENG|060306      |    17|S |    TELEPHONE, the British adress has FSTATE and ZIP set to NULL.
  742. ENG|060306      |    19| E|
  743. ENG|060306      |    20| E|    DATALOAD TABLE addresses
  744. ENG|060306      |    21| E|        name          1-20
  745. ENG|060306      |    22| E|        street       21-40
  746. ENG|060306      |    23| E|        city         46-60
  747. ENG|060306      |    24| E|        fstate       79-80 NULL IF POS 68-70 <> 'USA'
  748. ENG|060306      |    25| E|        zip          41-45 NULL IF POS 68-69 = 'GB'
  749. ENG|060306      |    26| E|        country      61-63
  750. ENG|060306      |    27| E|        telephone    64-78 DEFAULT NULL
  751. ENG|060306      |    28| E|    INFILE *
  752. ENG|060306      |    29| E|        NULL '-/-'
  753. ENG|060306      |    30| E|        DEC '//./'
  754. ENG|060306      |    31| E|    Hugo Mende          Elisabethstr. 55    99096Erfurt         D  -/-
  755. ENG|060306      |    32| E|    Angus Mcpherson     Grinders Walk            Upper Chapel   GB 04711-118
  756. ENG|060306      |    33|RE|
  757. ENG|060307      |     1|  |    Loading Constants
  758. ENG|060307      |     3|  |    If  a column shall be assigned the same value in each line inserted, no
  759. ENG|060307      |     4|  |    space in the source file is required for it. Instead, the value can  be
  760. ENG|060307      |     5|  |    specified as a constant within the load description.
  761. ENG|060307      |     6| E|
  762. ENG|060307      |     7| E|    DATALOAD TABLE item IF POS 1-8 = 'H7511P5 '
  763. ENG|060307      |     8| E|        ino          1-8
  764. ENG|060307      |     9| E|        descr       'hammer'
  765. ENG|060307      |    10| E|        stock       40-43 INTEGER
  766. ENG|060307      |    11| E|        min_stock   '50'
  767. ENG|060307      |    12| E|        ordered     46-49 INTEGER
  768. ENG|060307      |    13| E|        delivery    50-57 CHAR
  769. ENG|060307      |    14| E|        price       58-65 DECIMAL (2)
  770. ENG|060307      |    15| E|    INFILE item.data
  771. ENG|060307      |    16| E|
  772. ENG|060307      |    17|RI|                                                                     ##0601030502Syntax
  773. ENG|060308      |     1|  |    Loading Function Values (USER, DATE, SEQNO etc.)
  774. ENG|060308      |     3|  |    During  the  load  run LOAD can generate certain values and insert them
  775. ENG|060308      |     4|  |    into a table along with values from the source file.
  776. ENG|060308      |     5| E|
  777. ENG|060308      |     6| E|    DATALOAD TABLE reservation
  778. ENG|060308      |     7| E|        serial         SEQNO 0 10
  779. ENG|060308      |     8| E|        dealt_with_by  USER
  780. ENG|060308      |     9| E|        travel_agency  USERGROUP
  781. ENG|060308      |    10| E|        entry_date     DATE
  782. ENG|060308      |    11| E|        entry_time     TIME
  783. ENG|060308      |    12| E|        customer_name  1-20
  784. ENG|060308      |    13| E|        hotel_name    21-40
  785. ENG|060308      |    14| E|        arrival_date  41-50
  786. ENG|060308      |    15| E|    INFILE * DATE 'USA'
  787. ENG|060308      |    16| E|    Morgan Freeman      Holiday Inn         01/11/1994
  788. ENG|060308      |    17| E|
  789. ENG|060308      |    18|RI|                                                                     ##0601030502Syntax
  790. ENG|060309      |     1|  |    Loading Several Tables in a Single Run
  791. ENG|060309      |     3|  |    Several tables can be loaded from one source file in a single  run.  In
  792. ENG|060309      |     4|  |    this   case  every  target  table  must  be  described  by  a  DATALOAD
  793. ENG|060309      |     5|  |    specification of its own. The source file records  can  be  distributed
  794. ENG|060309      |     6|  |    among  the  target  tables  by means of the selection criterion. If the
  795. ENG|060309      |     7|  |    criterion is missing for one of the target tables,  each  input  record
  796. ENG|060309      |     8|  |    will be selected for this table.
  797. ENG|060309      |    10| E|    DATALOAD TABLE addresses
  798. ENG|060309      |    11| E|        customer_name  1-20
  799. ENG|060309      |    12| E|    DATALOAD TABLE reservation
  800. ENG|060309      |    13| E|        customer_name  1-20
  801. ENG|060309      |    14| E|        hotel_name    21-30
  802. ENG|060309      |    15| E|        arrival       31-40
  803. ENG|060309      |    16| E|        departure     41-50
  804. ENG|060309      |    17| E|    INFILE customer.statements DATE 'USA'
  805. ENG|060309      |    18|RI|                                                                     ##06010301Syntax
  806. ENG|060310      |     1|  |    Selection with OTHERWISE
  807. ENG|060310      |     3|  |    If  each  input  row  is  to be loaded into one table exactly, then the
  808. ENG|060310      |     4|  |    specification of unambiguous selection conditions is required.
  809. ENG|060310      |     6|  |    Should there be a number of rows for which such a criterion  cannot  be
  810. ENG|060310      |     7|  |    specified,  OTHERWISE  can  be  indicated instead of a normal selection
  811. ENG|060310      |     8|  |    condition. The condition thus defined is satisfied if and only if a row
  812. ENG|060310      |     9|  |    was not loaded into any other table.
  813. ENG|060310      |    11| I|                                                                     ##06010301Syntax
  814. ENG|060310      |    13|  |    The example on the following page illustrates how the data of a file is
  815. ENG|060310      |    14|  |    distributed among three tables. An unambiguous criterion  can  only  be
  816. ENG|060310      |    15|  |    defined  for  the  first  two tables, all other data is loaded into the
  817. ENG|060310      |    16|S |    third table.
  818. ENG|060310      |    19| E|    DATALOAD TABLE  part1  IF POS 1 = 'a'
  819. ENG|060310      |    20| E|        part_no    02-10   CHAR
  820. ENG|060310      |    21| E|        identifier 11-30
  821. ENG|060310      |    22| E|    DATALOAD TABLE  part2  IF POS 1 = 'b'
  822. ENG|060310      |    23| E|        part_no    02-10   CHAR
  823. ENG|060310      |    24| E|        identifier 11-30
  824. ENG|060310      |    25| E|    DATALOAD TABLE  part3  OTHERWISE
  825. ENG|060310      |    26| E|        part_no    02-10   CHAR
  826. ENG|060310      |    27| E|        identifier 11-30
  827. ENG|060310      |    28|RE|    INFILE ...
  828. ENG|060311      |     1|  |    Input of Test Data on the Screen
  829. ENG|060311      |     3|  |    A DATALOAD statement can be entered and tested ad hoc  on  the  screen.
  830. ENG|060311      |     4|  |    The  data  belonging  to  it are read from the screen if * is stated as
  831. ENG|060311      |     5|  |    file name. The file name * means generally that the data are to be read
  832. ENG|060311      |     6|  |    from the same file that contained the statement. The options DEC,  NULL
  833. ENG|060311      |     7|  |    etc. can be used along with this as well as with any other file name to
  834. ENG|060311      |     8|  |    describe the data format.
  835. ENG|060311      |     9| I|                                                                     ##06011721Syntax
  836. ENG|060311      |    10| E|    DATALOAD TABLE customer
  837. ENG|060311      |    11| E|        cno            1-5
  838. ENG|060311      |    12| E|        first_name     7-14
  839. ENG|060311      |    13| E|        last_name     16-23
  840. ENG|060311      |    14| E|        city          25-34
  841. ENG|060311      |    15| E|    INFILE * DEC '/ /,/'
  842. ENG|060311      |    16| E|    1 001 JULIE    ANDREWS  SANTA CLARA
  843. ENG|060311      |    17| E|    1 002 WARREN   BEATTY   DALLAS
  844. ENG|060311      |    18|RE|    1 003 JEFF     BRIDGES  HOLLYWOOD
  845. ENG|060312      |     1|  |    DATALOAD with Input Made in Default Format
  846. ENG|060312      |     3|  |    A  DATALOAD  statement  without  column descriptions can be used in the
  847. ENG|060312      |     4|  |    case that the input file was created by  the  statement  DATAEXTRACT  *
  848. ENG|060312      |     5|  |    FROM one table.
  849. ENG|060312      |     7|  |    LOAD  generates  the  required column descriptions and expects data for
  850. ENG|060312      |     8|  |    all columns of the table.  The  positions  are  calculated  taking  the
  851. ENG|060312      |     9|  |    number representation and separator as defined via SET or a file option
  852. ENG|060312      |    10|  |    into account.
  853. ENG|060312      |    11| E|
  854. ENG|060312      |    12| E|    DATALOAD TABLE customer
  855. ENG|060312      |    13| E|    INFILE customer.extract
  856. ENG|060312      |    14| E|
  857. ENG|060312      |    15|RI|                                                                     ##06010302Syntax
  858. ENG|060313      |     1|  |    Loading without Logging (FASTLOAD)
  859. ENG|060313      |     3|  |    The  FASTLOAD  statement helps to achieve far faster loading times, but
  860. ENG|060313      |     4|  |    it is much more restrictive than the normal DATALOAD function.
  861. ENG|060313      |     6|  |    Every user can load his tables  independently  from  others  with  this
  862. ENG|060313      |     7|  |    statement  as  well,  but tables to be loaded with FASTLOAD may possess
  863. ENG|060313      |     8|  |    neither LONG columns nor an INDEX. If a table has a  user-defined  key,
  864. ENG|060313      |     9|  |    the  input  lines must be sorted in ascending key order, and the key of
  865. ENG|060313      |    10|  |    the first line must follow all rows that already exist in the table.
  866. ENG|060313      |    12|  |    A table loaded with FASTLOAD becomes read-only, nevertheless it can  be
  867. ENG|060313      |    13|  |    accessed by further FASTLOAD statements.
  868. ENG|060313      |    14| I|                                                                     ##06010303Syntax
  869. ENG|060313      |    15| E|    FASTLOAD TABLE parts
  870. ENG|060313      |    16| E|        part_no        2-10
  871. ENG|060313      |    17| E|        identifier    11-30
  872. ENG|060313      |    18|RE|    INFILE part
  873. ENG|060314      |     1|  |    FASTLOAD with USAGE Option
  874. ENG|060314      |     3|  |    The   USAGE  option  of  the  FASTLOAD  statement  permits  to  specify
  875. ENG|060314      |     4|  |    individually for this load action the degree to which  the  data  pages
  876. ENG|060314      |     5|  |    shall  be  filled.  Any  degree from 50 to 100 percent is possible, the
  877. ENG|060314      |     6|  |    default is 80 percent.
  878. ENG|060314      |     7| E|
  879. ENG|060314      |     8| E|    FASTLOAD WITH 100% USAGE TABLE parts
  880. ENG|060314      |     9| E|        part_no        2-10
  881. ENG|060314      |    10| E|        identifier    11-30
  882. ENG|060314      |    11| E|    INFILE part
  883. ENG|060314      |    12| E|
  884. ENG|060314      |    13|RI|                                                                     ##06010303Syntax
  885. ENG|0604        |     1|  |    Updating Table Columns (DATAUPDATE)
  886. ENG|0604        |     3|  |    If new columns are  defined  for  a  database  table,  they  are  first
  887. ENG|0604        |     4|  |    initialized  with  the default value (mostly NULL). Therefore they must
  888. ENG|0604        |     5|  |    as a rule be updated. In  other  cases  values  within  specific  table
  889. ENG|0604        |     6|  |    fields must be updated because of an activity file.
  890. ENG|0604        |     8|  |    The DATAUPDATE statement serves to make such updates in dependance from
  891. ENG|0604        |     9|  |    other  values.  These  qualifying  values  have to be part of the input
  892. ENG|0604        |    10|  |    lines that contain the new values.
  893. ENG|0604        |    11| E|
  894. ENG|0604        |    12| E|    DATAUPDATE TABLE customer
  895. ENG|0604        |    13| E|        KEY cno   1-4
  896. ENG|0604        |    14| E|        SET city  6-25
  897. ENG|0604        |    15| E|    INFILE move.act
  898. ENG|0604        |    16| E|
  899. ENG|0604        |    17|RI|                                                                     ##060104Syntax
  900. ENG|0605        |     1|  |    Merging a File into a Table
  901. ENG|0605        |     3|  |    Often it is the case that a table shall be refreshed by the contents of
  902. ENG|0605        |     4|  |    a file, whereby many rows do already exist and only a few are new.
  903. ENG|0605        |     6|  |    A normal DATALOAD statement would reject all rows having  a  key  value
  904. ENG|0605        |     7|  |    that  already  exists in the table. A normal DATAUPDATE statement would
  905. ENG|0605        |     8|  |    critizise the lack of that rows which are only available in the file.
  906. ENG|0605        |    10|  |    The refreshing of such a table  can  be  done  by  ignoring  the  error
  907. ENG|0605        |    11|  |    DUPLICATE   KEY   and  leaving  the  existing  rows  unchanged  (IGNORE
  908. ENG|0605        |    12|  |    DUPLICATES) or by updating those  rows  that  already  exist  with  the
  909. ENG|0605        |    13|  |    values found in the input file (UPDATE DUPLICATES).
  910. ENG|0605        |    15| I|                                                                     ##060105Syntax
  911. ENG|0605        |    17|  |    The  example  shows how customer data are loaded resp. updated by means
  912. ENG|0605        |    18|S |    of the UPDATE DUPLICATES clause in a DATALOAD statement.
  913. ENG|0605        |    19| E|
  914. ENG|0605        |    20| E|    DATALOAD TABLE customer
  915. ENG|0605        |    21| E|      UPDATE DUPLICATES
  916. ENG|0605        |    22| E|        KEY cno        1-4
  917. ENG|0605        |    23| E|        SET city       6-25
  918. ENG|0605        |    24| E|        SET street    27-46
  919. ENG|0605        |    25| E|        SET telephone 48-60
  920. ENG|0605        |    26| E|    INFILE address.list
  921. ENG|0605        |    27|RE|
  922. ENG|0606        |     1|  |         Creating Dataextracts (DATAEXTRACT)
  923. ENG|0606        |     2|  |         -----------------------------------
  924. ENG|0606        |     4| M|    #01The^DATAEXTRACT^Statement
  925. ENG|0606        |     5| M|    #02Format^Specifications^for^the^Output^File
  926. ENG|0606        |     6| M|    #03Structure^of^the^Target^File
  927. ENG|0606        |     7| M|    #04Data^Formats^in^the^Target^File
  928. ENG|0606        |     8| M|    #05Options^for^the^Output^of^Numerical^Columns
  929. ENG|0606        |     9| M|    #06Output^of^NULL^Values
  930. ENG|0606        |    10| M|    #07Text^Constants^in^the^Target^File
  931. ENG|0606        |    11| M|    #08Generating^Command^Files^with^DATAEXTRACT^FOR^DATALOAD/DATAUPDATE
  932. ENG|0606        |    12| M|    #09Generating^a^DATALOAD^Statement^for^the^Extracted^Data
  933. ENG|0606        |    13|RM|    #10Test^Output^on^Screen
  934. ENG|060601      |     1|  |    The DATAEXTRACT Statement
  935. ENG|060601      |     3|  |    The  DATAEXTRACT  statement  consists  of   a   database   query,   the
  936. ENG|060601      |     4| I|    specification   of   the   output  file  and,  if  necessary,  ##060703LONGFILE
  937. ENG|060601      |     5|  |    descriptions.
  938. ENG|060601      |     7|  |    The database query is formulated in the same way as a SELECT  statement
  939. ENG|060601      |     8|  |    in  SQL,  only  that the keyword DATAEXTRACT is used instead of SELECT.
  940. ENG|060601      |     9|  |    The query must produce an unnamed result table. The end  of  the  query
  941. ENG|060601      |    10|  |    must be indicated by a semi-colon (;).
  942. ENG|060601      |    11| E|
  943. ENG|060601      |    12| E|    DATAEXTRACT
  944. ENG|060601      |    13| E|        customer.cno, name, reservation.arrival, price
  945. ENG|060601      |    14| E|        FROM customer, reservation
  946. ENG|060601      |    15| E|        WHERE customer.cno = reservation.cno ;
  947. ENG|060601      |    16| E|    OUTFILE cres.join
  948. ENG|060601      |    17| E|
  949. ENG|060601      |    18|RI|                                                                     ##060106Syntax
  950. ENG|060602      |     1|  |    Format Specifications for the Output File
  951. ENG|060602      |     3|  |    All  the  file  options  permissible  for input files that override the
  952. ENG|060602      |     4|  |    representation of NULL values, plaintext numbers etc. defined  via  SET
  953. ENG|060602      |     5|  |    are permitted for output files as well.
  954. ENG|060602      |     6| E|
  955. ENG|060602      |     7| E|    DATAEXTRACT * FROM reservation ;
  956. ENG|060602      |     8| E|    OUTFILE reservation DEC '/ /./' COMPRESS
  957. ENG|060602      |     9| E|
  958. ENG|060602      |    10| I|                                                                     ##060117Syntax
  959. ENG|060602      |    12|  |    COMPRESS  is  set by any of the following options: COMPRESS, SEPARATOR,
  960. ENG|060602      |    13|  |    and DELIMITER. COMPRESS is equivalent to  SEPARATOR ','  DELIMITER '"'.
  961. ENG|060602      |    14|  |    You  can  override  these  settings  by explicitly specifying SEPARATOR
  962. ENG|060602      |    15|  |    and/or  DELIMITER.  DELIMITER ''  indicates  that   strings   are   not
  963. ENG|060602      |    16|  |    delimited.
  964. ENG|060602      |    18|S |    If  COMPRESS  is  set,  LOAD  generates  statements without unnecessary
  965. ENG|060602      |    19|  |    blanks. Data fields are written in their actual length and separated by
  966. ENG|060602      |    20|  |    the SEPARATOR  character.  If  not  chosen  otherwise,  CHAR  data  are
  967. ENG|060602      |    21|  |    enclosed in DELIMITER characters.
  968. ENG|060602      |    23|  |    The COUNT option defines how many records are to be written before LOAD
  969. ENG|060602      |    24|R |    requests the next tape.
  970. ENG|060603      |     1|  |    Structure of the Target File
  971. ENG|060603      |     3|  |    Each  result  row  produces  one  output record in the target file, the
  972. ENG|060603      |     4|  |    sequence is the same as in the result table.
  973. ENG|060603      |     6|  |    If no column descriptions are present, the column sequence as  well  is
  974. ENG|060603      |     7|  |    the  same as in the result table. In this case the starting position of
  975. ENG|060603      |     8|  |    the first column is 1. All columns are put  out  in  plaintext  in  the
  976. ENG|060603      |     9|  |    maximum  length  required  by  their  definition. The column values are
  977. ENG|060603      |    10|  |    separated from  each  other  by  a  character  string  (may  be  empty)
  978. ENG|060603      |    11|  |    currently set as separator via SET.
  979. ENG|060603      |    13|  |    Diverging  from  these  default  rules  you  can  specify exactly which
  980. ENG|060603      |    14|  |    columns are to be placed to which positions of the output  record  that
  981. ENG|060603      |    15|  |    is  initially  filled  with  blanks.  The instructions for the separate
  982. ENG|060603      |    16|  |    columns are  executed  in  the  order  in  which  they  appear  in  the
  983. ENG|060603      |    17|  |    statement.  In  this  case  columns that were selected but have no such
  984. ENG|060603      |    18|S |    instruction do not appear in the output file.
  985. ENG|060603      |    19|  |    If the field  length  specified  by  the  position  is  less  than  the
  986. ENG|060603      |    20|  |    definition  length  of  the  column, CHAR and BYTE column values may be
  987. ENG|060603      |    21|  |    truncated on the right. The output length of numerical columns  is  not
  988. ENG|060603      |    22|  |    allowed to be less than the maximum required.
  989. ENG|060603      |    23| E|
  990. ENG|060603      |    24| E|    DATAEXTRACT name, account, title FROM customer ;
  991. ENG|060603      |    25| E|        title        1-5
  992. ENG|060603      |    26| E|        name        10-19
  993. ENG|060603      |    27| E|        account     21-29
  994. ENG|060603      |    28| E|    OUTFILE customerextract
  995. ENG|060603      |    29|RE|
  996. ENG|060604      |     1|  |    Data Formats in the Target File
  997. ENG|060604      |     3|  |    You  can  define  a data format other than CHAR for every column of the
  998. ENG|060604      |     4|  |    output file determined by a position. LOAD  can  convert  FIXED  column
  999. ENG|060604      |     5|  |    values  into  the  numerical  formats INTEGER, REAL, DECIMAL, and ZONED
  1000. ENG|060604      |     6|  |    that are used in application programs. FLOAT database columns can  only
  1001. ENG|060604      |     7|  |    produce REAL output columns.
  1002. ENG|060604      |     8| E|
  1003. ENG|060604      |     9| E|    DATAEXTRACT * FROM item ;
  1004. ENG|060604      |    10| E|        item_no      1-8
  1005. ENG|060604      |    11| E|        descr        9-39
  1006. ENG|060604      |    12| E|        stock       40-43 INTEGER
  1007. ENG|060604      |    13| E|        min_stock   44-45 INTEGER
  1008. ENG|060604      |    14| E|        price       46-53 DECIMAL (2)
  1009. ENG|060604      |    15| E|        weight      54-61 REAL
  1010. ENG|060604      |    16| E|    OUTFILE item.data
  1011. ENG|060604      |    17| E|
  1012. ENG|060604      |    18|RI|                                                                     ##06010306Syntax
  1013. ENG|060605      |     1|  |    Options for the Output of Numerical Columns
  1014. ENG|060605      |     3|  |    All  numerical  columns  of the result table can be edited by using the
  1015. ENG|060605      |     4|  |    functions SCALE, ROUND, and TRUNC.
  1016. ENG|060605      |     6|  |    SCALE (n) has the effect that  the  values  of  the  table  column  are
  1017. ENG|060605      |     7|  |    multiplied with the nth decimal power.
  1018. ENG|060605      |     9|  |    TRUNC  (n)  causes the n+1st and all the following fractional digits of
  1019. ENG|060605      |    10|  |    each number to be set to 0, while the first n fractional digits  remain
  1020. ENG|060605      |    11|  |    unchanged.
  1021. ENG|060605      |    13|  |    ROUND  (n)  causes  the  column values to be rounded in such a way that
  1022. ENG|060605      |    14|  |    only n non-zero fractional digits remain.
  1023. ENG|060605      |    16|  |    Floating point numbers are converted  to  fixed  point  numbers  before
  1024. ENG|060605      |    17|S |    TRUNC or ROUND is applied.
  1025. ENG|060605      |    19|  |    The  following example selects kilometre values from the table DISTANCE
  1026. ENG|060605      |    20|  |    and writes meter values into the output file.
  1027. ENG|060605      |    21| E|
  1028. ENG|060605      |    22| E|    DATAEXTRACT * FROM distance ;
  1029. ENG|060605      |    23| E|        from_city        1-10
  1030. ENG|060605      |    24| E|        to_city         11-20
  1031. ENG|060605      |    25| E|        road_kilometres 21-30 SCALE (3)
  1032. ENG|060605      |    26| E|    OUTFILE map.raw_data
  1033. ENG|060605      |    27| E|
  1034. ENG|060605      |    28|RI|                                                                     ##0601030601Syntax
  1035. ENG|060606      |     1|  |    Output of NULL Values
  1036. ENG|060606      |     3|  |    For the representation of NULL values in the output  file  a  character
  1037. ENG|060606      |     4|  |    string  is  used  which  can be defined via the SET command or the file
  1038. ENG|060606      |     5|  |    option NULL.
  1039. ENG|060606      |     7|  |    Moreover you can define a constant value that  is  written  to  another
  1040. ENG|060606      |     8|  |    place  of  the output record or replaces the default string and will be
  1041. ENG|060606      |     9|  |    put out if the current field value is NULL.
  1042. ENG|060606      |    10| E|
  1043. ENG|060606      |    11| E|    DATAEXTRACT hno, arrival, departure FROM reservation ;
  1044. ENG|060606      |    12| E|        hno         1-5
  1045. ENG|060606      |    13| E|        arrival     7-14
  1046. ENG|060606      |    14| E|        departure  16-23 IF NULL SET POS 16-30 = 'long term guest'
  1047. ENG|060606      |    15| E|    OUTFILE *
  1048. ENG|060606      |    16| E|
  1049. ENG|060606      |    17|RI|                                                                     ##060106Syntax
  1050. ENG|060607      |     1|  |    Text Constants in the Target File
  1051. ENG|060607      |     3|  |    Additional fields with text constants can be  placed  into  the  target
  1052. ENG|060607      |     4|  |    file among those output fields that are filled from the result table. A
  1053. ENG|060607      |     5|  |    text  constant,  enclosed in single quotes, has to be specified instead
  1054. ENG|060607      |     6|  |    of a column name or column number.
  1055. ENG|060607      |     7| E|
  1056. ENG|060607      |     8| E|    DATAEXTRACT cno, first_name, name FROM customer ;
  1057. ENG|060607      |     9| E|        'Customer Number:'  1-16
  1058. ENG|060607      |    10| E|        'Name  :'          24-30
  1059. ENG|060607      |    11| E|        cno                18-22
  1060. ENG|060607      |    12| E|        first_name         32-41
  1061. ENG|060607      |    13| E|        name               43-62
  1062. ENG|060607      |    14| E|    OUTFILE customer.out
  1063. ENG|060607      |    15| E|
  1064. ENG|060607      |    16|RI|                                                                     ##060106Syntax
  1065. ENG|060608      |     1|  |    Generating Command Files with DATAEXTRACT FOR DATALOAD/DATAUPDATE
  1066. ENG|060608      |     3|  |    The statement DATAEXTRACT FOR DATALOAD generates a command  file  which
  1067. ENG|060608      |     4|  |    allows a table to be created and loaded again.
  1068. ENG|060608      |     6|  |    The statement DATAEXTRACT FOR DATAUPDATE generates a command file which
  1069. ENG|060608      |     7|  |    contains  a  DATAUPDATE  statement and the extracted data. This command
  1070. ENG|060608      |     8|  |    file can be used to undo changes made in a table with key columns.
  1071. ENG|060608      |    10|  |    In contrast to the simple DATAEXTRACT statement it is not allowed  with
  1072. ENG|060608      |    11|  |    these  backup  statements  to exclude rows or columns of the table by a
  1073. ENG|060608      |    12|  |    WHERE condition. ORDER BY, however, may be specified.
  1074. ENG|060608      |    14|  |    DATAEXTRACT FOR DATALOAD is meant for  the  backup  of  your  own  base
  1075. ENG|060608      |    15|  |    tables. Only in this case a CREATE TABLE statement is generated.
  1076. ENG|060608      |    17|  |    Regardless  of the table being a base table or a view, LOAD generates a
  1077. ENG|060608      |    18|S |    DATALOAD, FASTLOAD, or DATAUPDATE statement and extracts  the  complete
  1078. ENG|060608      |    19|  |    table contents.
  1079. ENG|060608      |    21|  |    If  two  OUTFILE  specifications are made, then the first file contains
  1080. ENG|060608      |    22|  |    the statements, the second  the  data.  This  enables  the  editing  of
  1081. ENG|060608      |    23|  |    statements  even in the case that the table contains BYTE columns or is
  1082. ENG|060608      |    24|  |    very large.
  1083. ENG|060608      |    26|  |    The COMPRESS option applied to the statement file has the  effect  that
  1084. ENG|060608      |    27|  |    names  are only output in their actual lengths. That is advantageous if
  1085. ENG|060608      |    28|  |    the table has very many columns.
  1086. ENG|060608      |    30|  |    All file options relate only to the file they are given  with.  Missing
  1087. ENG|060608      |    31|  |    options  (e.g. ASCII/EBCDIC, DATE format etc.) are set to defaults. The
  1088. ENG|060608      |    32|  |    generated OUTFILE description contains all file  options  in  order  to
  1089. ENG|060608      |    33|  |    make loading independent from the then valid default settings.
  1090. ENG|060608      |    35|  |    As  always  the same character string is used for the representation of
  1091. ENG|060608      |    36|S |    NULL values when extracting  data,  the  generated  DATALOAD  statement
  1092. ENG|060608      |    37|  |    contains  DEFAULT  NULL  conditions  for all optional columns. The used
  1093. ENG|060608      |    38|  |    NULL representation is recorded as file option NULL '<string>'.
  1094. ENG|060608      |    40|  |    The example generates two files, one containing the  statements  CREATE
  1095. ENG|060608      |    41|  |    TABLE  customer, DATALOAD TABLE customer etc., the other containing the
  1096. ENG|060608      |    42|  |    customer data.
  1097. ENG|060608      |    43| E|
  1098. ENG|060608      |    44| E|    DATAEXTRACT FOR DATALOAD TABLE customer
  1099. ENG|060608      |    45| E|    OUTFILE customer.define ; OUTFILE customer.data
  1100. ENG|060608      |    46| E|
  1101. ENG|060608      |    47|RI|                                                                     ##06010608Syntax
  1102. ENG|060609      |     1|  |    Generating a DATALOAD Statement for the Extracted Data
  1103. ENG|060609      |     3|  |    If you  specify  two  OUTFILE  descriptions  in  a  normal  DATAEXTRACT
  1104. ENG|060609      |     4|  |    statement,  a  DATALOAD  statement  is written into the first file that
  1105. ENG|060609      |     5|  |    allows you to load the extracted data if they stem from one  table  and
  1106. ENG|060609      |     6|  |    include all mandatory columns.
  1107. ENG|060609      |     7| E|
  1108. ENG|060609      |     8| E|    DATAEXTRACT cno, name, account, title FROM customer ;
  1109. ENG|060609      |     9| E|        title        1-5
  1110. ENG|060609      |    10| E|        name        10-19
  1111. ENG|060609      |    11| E|        account     21-29
  1112. ENG|060609      |    12| E|        cno         31-35
  1113. ENG|060609      |    13| E|    OUTFILE extract.dataload
  1114. ENG|060609      |    14| E|    OUTFILE customer_extract
  1115. ENG|060609      |    15| E|
  1116. ENG|060609      |    16|RI|                                                                     ##060106Syntax
  1117. ENG|060610      |     1|  |    Test Output on Screen
  1118. ENG|060610      |     3|  |    Entering  OUTFILE  *  as  part  of  a  DATAEXTRACT statement displays a
  1119. ENG|060610      |     4|  |    section of the result table on the screen. At most 18 lines are  shown.
  1120. ENG|060610      |     5|  |    Explicit  column descriptions must be formulated in such a way that the
  1121. ENG|060610      |     6|  |    output rows fit the screen. Normally the upper left part of  the  table
  1122. ENG|060610      |     7|  |    is displayed. A different area can be chosen via RUN with FROM option.
  1123. ENG|060610      |     8| E|
  1124. ENG|060610      |     9| E|    DATAEXTRACT cno, first_name, name FROM customer ;
  1125. ENG|060610      |    10| E|        'Customer Number:'  1-16
  1126. ENG|060610      |    11| E|        cno                18-22
  1127. ENG|060610      |    12| E|        'Name  :'          24-30
  1128. ENG|060610      |    13| E|        first_name         32-41
  1129. ENG|060610      |    14| E|        name               43-62
  1130. ENG|060610      |    15| E|    OUTFILE *
  1131. ENG|060610      |    16| E|
  1132. ENG|060610      |    17|RI|                                                                     ##06011722Syntax
  1133. ENG|0607        |     1|  |             Loading and Extracting LONG Columns
  1134. ENG|0607        |     2|  |             -----------------------------------
  1135. ENG|0607        |     4| M|           #01Loading LONG Columns with DATALOAD
  1136. ENG|0607        |     5| M|           #02Updating LONG Columns with DATAUPDATE
  1137. ENG|0607        |     6| M|           #03Extracting LONG Columns with DATAEXTRACT
  1138. ENG|0607        |     7|RM|           #04Migration of a Table with LONG Columns
  1139. ENG|060701      |     1|  |    Loading LONG Columns with DATALOAD
  1140. ENG|060701      |     3|  |    LONG  column values can be loaded along with other column values in one
  1141. ENG|060701      |     4|  |    DATALOAD run. A long value is read from a separate file.  The  position
  1142. ENG|060701      |     5|  |    specification  of  a LONG column denotes the position in the input line
  1143. ENG|060701      |     6|  |    at which the name of that file can be found.
  1144. ENG|060701      |     8|  |    The following statement inserts the content of the  files  '*.longtext'
  1145. ENG|060701      |     9|  |    into  the  LONG  column  TEXT of the table COMMENT and at the same time
  1146. ENG|060701      |    10|  |    assigns values to the KEY column SERIAL and the index field REFERENCE.
  1147. ENG|060701      |    11| I|                                                                     ##06010301Syntax
  1148. ENG|060701      |    12| E|    DATALOAD TABLE comment
  1149. ENG|060701      |    13| E|    serial     1-5
  1150. ENG|060701      |    14| E|    reference  9-26
  1151. ENG|060701      |    15| E|    text      30-43
  1152. ENG|060701      |    16| E|    INFILE *
  1153. ENG|060701      |    17| E|        1 | customer           | customer.longtext
  1154. ENG|060701      |    18|RE|        2 | hotel              | hotel.longtext
  1155. ENG|060702      |     1|  |    Updating LONG Columns with DATAUPDATE
  1156. ENG|060702      |     3|  |    LONG column values can be updated by means of  a  DATAUPDATE  statement
  1157. ENG|060702      |     4|  |    just  as  other  column  values. The new values of the LONG columns are
  1158. ENG|060702      |     5|  |    taken from extra files. The names of these files form part of the input
  1159. ENG|060702      |     6|  |    lines containing the other data.
  1160. ENG|060702      |     8|  |    The following statement replaces values of the LONG column CREDIT_STATE
  1161. ENG|060702      |     9|  |    of the table CUSTOMER with contents of customer  specific  files  named
  1162. ENG|060702      |    10|  |    '*.credit_state'.
  1163. ENG|060702      |    11| I|                                                                     ##060104Syntax
  1164. ENG|060702      |    12| E|    DATAUPDATE TABLE customer
  1165. ENG|060702      |    13| E|    KEY cno          1
  1166. ENG|060702      |    14| E|    SET credit_state 2
  1167. ENG|060702      |    15| E|    INFILE *
  1168. ENG|060702      |    16| E|    COMPRESS
  1169. ENG|060702      |    17| E|    3000,"Porter.credit_state"
  1170. ENG|060702      |    18|RE|    3200,"Datasoft.credit_state"
  1171. ENG|060703      |     1|  |    Extracting LONG Columns with DATAEXTRACT
  1172. ENG|060703      |     3|  |    If  a  result  table created via DATAEXTRACT contains LONG columns, the
  1173. ENG|060703      |     4|  |    LONG field values are written to one  or  more  independent  files  the
  1174. ENG|060703      |     5|  |    names of which are stated in the normal data lines. One file is created
  1175. ENG|060703      |     6|  |    for every row of every LONG column where the value is not NULL.
  1176. ENG|060703      |     8|  |    The  names  of  these files are generated based upon a pattern given in
  1177. ENG|060703      |     9|  |    the LONGFILE description that is mandatory  for  each  LONG  column.  A
  1178. ENG|060703      |    10|  |    LONGFILE description consists of the column identifier (name or number)
  1179. ENG|060703      |    11|  |    and  a  file name pattern with at least one trailing hashmark ('#'). In
  1180. ENG|060703      |    12|  |    the actual file name the hashmarks are  replaced  by  the  row  number,
  1181. ENG|060703      |    13|  |    padded with leading zeros.
  1182. ENG|060703      |    15|  |    The  following  statement selects four columns of the table COMMENT and
  1183. ENG|060703      |    16|  |    creates  the  files   'comment.main',   'text0000001',   'addition001',
  1184. ENG|060703      |    17|S |    'text0000002', 'addition002', etc.
  1185. ENG|060703      |    19| E|
  1186. ENG|060703      |    20| E|    DATAEXTRACT serial, reference, text, addition FROM comment;
  1187. ENG|060703      |    21| E|    serial     1-5
  1188. ENG|060703      |    22| E|    reference  9-26
  1189. ENG|060703      |    23| E|    text      30-40
  1190. ENG|060703      |    24| E|    addition  44-54
  1191. ENG|060703      |    25| E|    OUTFILE comment.main
  1192. ENG|060703      |    26| E|    LONGFILE 3 text#######
  1193. ENG|060703      |    27| E|    LONGFILE 4 addition###
  1194. ENG|060703      |    28| E|
  1195. ENG|060703      |    29|  |    If  the  row number becomes greater than the available digits in any of
  1196. ENG|060703      |    30|  |    the file names, the run is aborted inspite  of  existing  result  table
  1197. ENG|060703      |    31|  |    rows.  Note that this example statement would not create more than 1999
  1198. ENG|060703      |    32|  |    (1 + 2 * 999) files.
  1199. ENG|060703      |    34|RI|                                                                     ##060106Syntax
  1200. ENG|060704      |     1|  |    Migration of a Table with LONG Columns
  1201. ENG|060704      |     3|  |    If you do not want to edit the LONG column contents, you can specify  a
  1202. ENG|060704      |     4|  |    LONGFILE name without hashmarks. This drastically reduces the number of
  1203. ENG|060704      |     5|  |    created files.
  1204. ENG|060704      |     7|  |    All  values of the corresponding LONG column are, one behind the other,
  1205. ENG|060704      |     8|  |    written into that file. The same file name is consequently written into
  1206. ENG|060704      |     9|  |    every long description field of the main data file, but it is  followed
  1207. ENG|060704      |    10|  |    by a position specifying the range of bytes that belong to this field.
  1208. ENG|060704      |    12|  |    During  a load run LOAD expects the positions to be in ascending order,
  1209. ENG|060704      |    13|  |    but not necessarily without gaps.
  1210. ENG|060704      |    15|  |    The following statement selects four columns of the table  COMMENT  and
  1211. ENG|060704      |    16|S |    creates the files 'comment.main', 'text.all' and 'addition.all'.
  1212. ENG|060704      |    19| E|
  1213. ENG|060704      |    20| E|    DATAEXTRACT serial, reference, text, addition FROM comment;
  1214. ENG|060704      |    21| E|    serial     1-5
  1215. ENG|060704      |    22| E|    reference  9-26
  1216. ENG|060704      |    23| E|    text      30-40
  1217. ENG|060704      |    24| E|    addition  44-54
  1218. ENG|060704      |    25| E|    OUTFILE comment.main
  1219. ENG|060704      |    26| E|    LONGFILE text text.all
  1220. ENG|060704      |    27| E|    LONGFILE addition addition.all
  1221. ENG|060704      |    28| E|
  1222. ENG|060704      |    29|RI|                                                                     ##060106Syntax
  1223. ENG|0608        |     1|  |                 Migration of the Database Catalog
  1224. ENG|0608        |     2|  |                 ---------------------------------
  1225. ENG|0608        |     4| M|                    #01CATALOGEXTRACT^TABLE
  1226. ENG|0608        |     5| M|                    #02CATALOGEXTRACT^USER
  1227. ENG|0608        |     6| M|                    #03CATALOGEXTRACT^ALL
  1228. ENG|0608        |     8| M|                    #04CATALOGLOAD^TABLE
  1229. ENG|0608        |     9| M|                    #05CATALOGLOAD^USER
  1230. ENG|0608        |    10|RM|                    #06CATALOGLOAD^ALL
  1231. ENG|060801      |     1|  |    CATALOGEXTRACT TABLE
  1232. ENG|060801      |     3|  |    Every  user  can apply the CATALOGEXTRACT TABLE statement to generate a
  1233. ENG|060801      |     4|  |    command  file  which,  in  combination  with  DATAEXTRACT/DATALOAD   or
  1234. ENG|060801      |     5|  |    TABLEEXTRACT/TABLELOAD,  allows  the  same  table  to  be  installed in
  1235. ENG|060801      |     6|  |    another database.
  1236. ENG|060801      |     8|  |    Not only the table definition, but also INDEX, VIEW,  and  FOREIGN  KEY
  1237. ENG|060801      |     9|  |    definitions  that  go  with it are saved. If you defined privileges for
  1238. ENG|060801      |    10|  |    the table, corresponding GRANT statements are written into the file.
  1239. ENG|060801      |    11| E|
  1240. ENG|060801      |    12| E|    CATALOGEXTRACT TABLE customer ; OUTFILE customer.cat
  1241. ENG|060801      |    13| E|
  1242. ENG|060801      |    14|RI|                                                                     ##06010801Syntax
  1243. ENG|060802      |     1|  |    CATALOGEXTRACT USER
  1244. ENG|060802      |     3|  |    Every user can apply the CATALOGEXTRACT USER statement  to  generate  a
  1245. ENG|060802      |     4|  |    command   file  which,  in  combination  with  DATAEXTRACT/DATALOAD  or
  1246. ENG|060802      |     5|  |    TABLEEXTRACT/TABLELOAD,  allows  his  complete  database  area  to   be
  1247. ENG|060802      |     6|  |    installed in another database.
  1248. ENG|060802      |     8|  |    All tables and the dependent objects are saved (see also CATALOGEXTRACT
  1249. ENG|060802      |     9|  |    TABLE).
  1250. ENG|060802      |    10| E|
  1251. ENG|060802      |    11| E|    CATALOGEXTRACT USER ; OUTFILE sqltravel00.cat
  1252. ENG|060802      |    12| E|
  1253. ENG|060802      |    13|RI|                                                                     ##06010801Syntax
  1254. ENG|060803      |     1|  |    CATALOGEXTRACT ALL
  1255. ENG|060803      |     3|  |    The  SYSDBA of a location can apply the CATALOGEXTRACT ALL statement to
  1256. ENG|060803      |     4|  |    generate a command file which creates the entire  database  catalog  of
  1257. ENG|060803      |     5|  |    this  location,  thus restoring all local users with all their objects.
  1258. ENG|060803      |     6|  |    The restoration has to be  done  with  CATALOAGLOAD  ALL  on  an  empty
  1259. ENG|060803      |     7|  |    database.
  1260. ENG|060803      |     8| E|
  1261. ENG|060803      |     9| E|    CATALOGEXTRACT ALL ; OUTFILE node02.cat
  1262. ENG|060803      |    10| E|
  1263. ENG|060803      |    11|RI|                                                                     ##06010801Syntax
  1264. ENG|060804      |     1|  |    CATALOGLOAD TABLE
  1265. ENG|060804      |     3|  |    Every  user  can  apply  the  CATALOGLOAD  TABLE statement to execute a
  1266. ENG|060804      |     4|  |    command file that has been generated by himself or by another  user  of
  1267. ENG|060804      |     5|  |    the same group.
  1268. ENG|060804      |     6| E|
  1269. ENG|060804      |     7| E|    CATALOGLOAD TABLE customer ; INFILE customer.cat
  1270. ENG|060804      |     8| E|
  1271. ENG|060804      |     9|RI|                                                                     ##06010802Syntax
  1272. ENG|060805      |     1|  |    CATALOGLOAD USER
  1273. ENG|060805      |     3|  |    Every  user  can  apply  the  CATALOGLOAD  USER  statement to execute a
  1274. ENG|060805      |     4|  |    command file that has been generated by himself or by another  user  of
  1275. ENG|060805      |     5|  |    the same group.
  1276. ENG|060805      |     6| E|
  1277. ENG|060805      |     7| E|    CATALOGLOAD USER ; INFILE sqlreisen00.cat
  1278. ENG|060805      |     8| E|
  1279. ENG|060805      |     9|RI|                                                                     ##06010802Syntax
  1280. ENG|060806      |     1|  |    CATALOGLOAD ALL
  1281. ENG|060806      |     3|  |    LOAD  checks  whether the executing user is the SYSDBA of this database
  1282. ENG|060806      |     4|  |    location. If this is the case, the specified file is  run  through  and
  1283. ENG|060806      |     5|  |    the SQL statements included there are executed. Encrypted passwords and
  1284. ENG|060806      |     6|  |    OWNER statements are converted into an executable form.
  1285. ENG|060806      |     7| E|
  1286. ENG|060806      |     8| E|    CATALOGLOAD ALL ; INFILE node02.cat
  1287. ENG|060806      |     9| E|
  1288. ENG|060806      |    10|RI|                                                                     ##06010802Syntax
  1289. ENG|0609        |     1|  |              Migration of the Database Contents
  1290. ENG|0609        |     2|  |              ----------------------------------
  1291. ENG|0609        |     4| M|                    #01TABLEEXTRACT^TABLE
  1292. ENG|0609        |     5| M|                    #02TABLEEXTRACT^USER
  1293. ENG|0609        |     6| M|                    #03TABLEEXTRACT^ALL
  1294. ENG|0609        |     8| M|                    #04TABLEUNLOAD
  1295. ENG|0609        |    10| M|                    #05TABLELOAD^TABLE
  1296. ENG|0609        |    11| M|                    #06TABLELOAD^USER
  1297. ENG|0609        |    12|RM|                    #07TABLELOAD^ALL
  1298. ENG|060901      |     1|  |    TABLEEXTRACT TABLE
  1299. ENG|060901      |     3|  |    Every  user  can  apply  the TABLEEXTRACT TABLE statement to generate a
  1300. ENG|060901      |     4|  |    data file which, in  combination  with  CATALOGEXTRACT/CATALOGLOAD  and
  1301. ENG|060901      |     5|  |    TABLELOAD  TABLE,  allows  the  same  table  to be installed in another
  1302. ENG|060901      |     6|  |    database.
  1303. ENG|060901      |     7| E|
  1304. ENG|060901      |     8| E|    TABLEEXTRACT TABLE customer ; OUTFILE customer.data
  1305. ENG|060901      |     9| E|
  1306. ENG|060901      |    10|RI|                                                                     ##06010901Syntax
  1307. ENG|060902      |     1|  |    TABLEEXTRACT USER
  1308. ENG|060902      |     3|  |    Every user can apply the TABLEEXTRACT USER statement to generate a data
  1309. ENG|060902      |     4|  |    file  which,  in  combination   with   CATALOGEXTRACT/CATALOGLOAD   and
  1310. ENG|060902      |     5|  |    TABLELOAD  USER,  allows  his complete database area to be installed in
  1311. ENG|060902      |     6|  |    another database.
  1312. ENG|060902      |     7| E|
  1313. ENG|060902      |     8| E|    TABLEEXTRACT USER ; OUTFILE sqltravel00.data
  1314. ENG|060902      |     9| E|
  1315. ENG|060902      |    10|RI|                                                                     ##06010901Syntax
  1316. ENG|060903      |     1|  |    TABLEEXTRACT ALL
  1317. ENG|060903      |     3|  |    The SYSDBA of a location can apply the TABLEEXTRACT  ALL  statement  to
  1318. ENG|060903      |     4|  |    generate  a  data  file  which saves a given database state if combined
  1319. ENG|060903      |     5|  |    with CATALOGEXTRACT ALL. In particular this data file can  be  used  to
  1320. ENG|060903      |     6|  |    migrate to another platform.
  1321. ENG|060903      |     7| E|
  1322. ENG|060903      |     8| E|    TABLEEXTRACT ALL ; OUTFILE node02.data
  1323. ENG|060903      |     9| E|
  1324. ENG|060903      |    10|RI|                                                                     ##06010901Syntax
  1325. ENG|060904      |     1|  |    TABLEUNLOAD
  1326. ENG|060904      |     3|  |    TABLEUNLOAD differs from TABLEEXTRACT only in so far as the data of all
  1327. ENG|060904      |     4|  |    tables  concerned  are  deleted  from  the database. No operations upon
  1328. ENG|060904      |     5|  |    these tables are possible until their contents have been restored  with
  1329. ENG|060904      |     6|  |    TABLELOAD.
  1330. ENG|060904      |     7| E|
  1331. ENG|060904      |     8| E|    TABLEUNLOAD customer
  1332. ENG|060904      |     9| E|    OUTFILE customer.data
  1333. ENG|060904      |    10| E|
  1334. ENG|060904      |    11|RI|                                                                     ##06010902Syntax
  1335. ENG|060905      |     1|  |    TABLELOAD TABLE
  1336. ENG|060905      |     3|  |    Every  user  can use a file generated by a TABLEEXTRACT TABLE statement
  1337. ENG|060905      |     4|  |    to load a matching table which has not to be identical with the one the
  1338. ENG|060905      |     5|  |    data were taken from. If the target table can be loaded, it's  contents
  1339. ENG|060905      |     6|  |    is deleted beforehand.
  1340. ENG|060905      |     7| E|
  1341. ENG|060905      |     8| E|    TABLELOAD TABLE customer ; INFILE customer.cat
  1342. ENG|060905      |     9| E|
  1343. ENG|060905      |    10|RI|                                                                     ##06010903Syntax
  1344. ENG|060906      |     1|  |    TABLELOAD USER
  1345. ENG|060906      |     3|  |    Every  user can load his tables using a file that has been generated by
  1346. ENG|060906      |     4|  |    a TABLEEXTRACT USER statement executed by himself  or  someone  of  his
  1347. ENG|060906      |     5|  |    user  group.  To  define  the  tables  beforehand,  you  can  e.g.  use
  1348. ENG|060906      |     6|  |    CATALOGLOAD USER.
  1349. ENG|060906      |     8|  |    If some part of the data cannot be  loaded  because  the  corresponding
  1350. ENG|060906      |     9|  |    table  does  not  exist  or  has  no  suitable  structure,  the records
  1351. ENG|060906      |    10|  |    concerned are written into the error file. The error file  is  a  valid
  1352. ENG|060906      |    11|  |    input file for another TABLELOAD statement.
  1353. ENG|060906      |    12| E|
  1354. ENG|060906      |    13| E|    TABLELOAD USER ; INFILE sqltravel00.data ; OUTFILE error.data
  1355. ENG|060906      |    14| E|
  1356. ENG|060906      |    15|RI|                                                                     ##06010903Syntax
  1357. ENG|060907      |     1|  |    TABLELOAD ALL
  1358. ENG|060907      |     3|  |    This  statement  is reserved for the SYSDBA and should be combined with
  1359. ENG|060907      |     4|  |    CATALOGLOAD ALL.
  1360. ENG|060907      |     6|  |    The data file contains the full names (username and tablename)  of  the
  1361. ENG|060907      |     7|  |    tables contained in the file. Users owning such tables should therefore
  1362. ENG|060907      |     8|  |    exist  in  the  database.  If  some  part  of the data cannot be loaded
  1363. ENG|060907      |     9|  |    because the corresponding table does  not  exist  or  has  no  suitable
  1364. ENG|060907      |    10|  |    structure,  the  records concerned are written into the error file. The
  1365. ENG|060907      |    11|  |    error file is a valid input file for another TABLELOAD statement.
  1366. ENG|060907      |    12| E|
  1367. ENG|060907      |    13| E|    TABLELOAD ALL ; INFILE node02.data ; OUTFILE error.data
  1368. ENG|060907      |    14| E|
  1369. ENG|060907      |    15|RI|                                                                     ##06010903Syntax
  1370. ENG|0610        |     1|  |              Porting Catalog and Contents of a Database
  1371. ENG|0610        |     2|  |              ------------------------------------------
  1372. ENG|0610        |     4| M|                            #01DBEXTRACT
  1373. ENG|0610        |     5|RM|                            #02DBLOAD
  1374. ENG|061001      |     1|  |    DBEXTRACT
  1375. ENG|061001      |     3|  |    DBEXTRACT is  a  shortened  form  of  CATALOGEXTRACT  ALL  followed  by
  1376. ENG|061001      |     4|  |    TABLEEXTRACT ALL.
  1377. ENG|061001      |     5| E|
  1378. ENG|061001      |     6| E|    DBEXTRACT ; OUTFILE node02.cat ; OUTFILE node02.data
  1379. ENG|061001      |     7| E|
  1380. ENG|061001      |     8|RI|                                                                     ##06011001Syntax
  1381. ENG|061002      |     1|  |    DBLOAD
  1382. ENG|061002      |     3|  |    DBLOAD  is  a  shortened  form of CATALOGLOAD ALL followed by TABLELOAD
  1383. ENG|061002      |     4|  |    ALL.
  1384. ENG|061002      |     5| E|
  1385. ENG|061002      |     6| E|    DBLOAD ; INFILE node02.cat ; INFILE node02.data ; OUTFILE error.data
  1386. ENG|061002      |     7| E|
  1387. ENG|061002      |     8|RI|                                                                     ##06011002Syntax
  1388. ENG|0611        |     1|  |                   The ORACLE Crossloader
  1389. ENG|0611        |     2|  |                   ----------------------
  1390. ENG|0611        |     4| M|              #01Loading^an^ORACLE^Database
  1391. ENG|0611        |     5|RM|              #02Loading^the^Contents^of^an^ORACLE^Table
  1392. ENG|061101      |     1|  |    Loading an ORACLE Database
  1393. ENG|061101      |     3|  |    A file generated with the ORACLE function EXP containing any section of
  1394. ENG|061101      |     4|  |    an ORACLE database can be loaded into  an  ADABAS  database  with  LOAD
  1395. ENG|061101      |     5|  |    ORACLEDB.
  1396. ENG|061101      |     7|  |    LOAD  executes the DDL statements of the file. Instead of GRANT CONNECT
  1397. ENG|061101      |     8|  |    a CREATE USER statement is executed where the password is the  same  as
  1398. ENG|061101      |     9|  |    the  username.  CONNECT is transformed into a statement that makes this
  1399. ENG|061101      |    10|  |    user the active user. All  statements  starting  with  ALTER,  COMMENT,
  1400. ENG|061101      |    11|  |    CREATE or GRANT are executed with SQLMODE ORACLE set.
  1401. ENG|061101      |    13|  |    INSERT  statements are transformed into DATALOAD or FASTLOAD statements
  1402. ENG|061101      |    14|  |    and, like the DDL statements, executed immediately  so  that  the  data
  1403. ENG|061101      |    15|  |    from the following records of the export file can be processed.
  1404. ENG|061101      |    17|SE|    LOAD ORACLEDB INFILE expdat.dmp
  1405. ENG|061101      |    19|  |    If  the export file contains only tables of a single user this user can
  1406. ENG|061101      |    20|  |    import the file with LOAD ORACLEDB. As soon as LOAD finds  a  statement
  1407. ENG|061101      |    21|  |    that  concerns another user's database objects the load run is aborted.
  1408. ENG|061101      |    22|  |    Only the SYSDBA can load a FULL export.
  1409. ENG|061101      |    24|RI|                                                                     ##06011101Syntax
  1410. ENG|061102      |     1|  |    Loading the Contents of an ORACLE Table
  1411. ENG|061102      |     3|  |    A DATALOAD/FASTLOAD statement specifying the file option  ORACLE  loads
  1412. ENG|061102      |     4|  |    an ORACLE export file that contains a single table.
  1413. ENG|061102      |     6|  |    The  load  description  can contain explicit column descriptions if the
  1414. ENG|061102      |     7|  |    file content shall not be loaded as it is. In this  case  the  position
  1415. ENG|061102      |     8|  |    specifications  must be the same as with the COMPRESS option, i.e. they
  1416. ENG|061102      |     9|  |    must denote the serial numbers of the data fields in the input  record.
  1417. ENG|061102      |    10|  |    The default format without column descriptions is allowed as well.
  1418. ENG|061102      |    12|  |    DDL statements in the input file are ignored.
  1419. ENG|061102      |    13| E|
  1420. ENG|061102      |    14| E|    DATALOAD TABLE customer INFILE expdat.dmp ORACLE
  1421. ENG|061102      |    15| E|
  1422. ENG|061102      |    16|RI|                                                                     ##06011102Syntax
  1423. ENG|0613        |     1|  |                       Other LOAD Statements
  1424. ENG|0613        |     2|  |                       ---------------------
  1425. ENG|0613        |     4| M|              #01Turn^AUTOCOMMIT^off/on            (AUTOCOMMIT)
  1426. ENG|0613        |     5| M|              #02Switch^to^Another^Database^User   (USER/USE)
  1427. ENG|0613        |     6| M|              #03Change^the^SQL^Mode               (SQLMODE)
  1428. ENG|0613        |     7| M|              #04Select^the^Terminal^Character^Set (TERMCHARSET)
  1429. ENG|0613        |     8|RM|              #05Get^Detailed^Messages             (MESSAGE ON)
  1430. ENG|061301      |     1|  |    Turn AUTOCOMMIT off/on
  1431. ENG|061301      |     3|  |    LOAD  usually works in AUTOCOMMIT mode, i.e. each SQL statement entered
  1432. ENG|061301      |     4|  |    by the user will be concluded with COMMIT. INSERT  statements  executed
  1433. ENG|061301      |     5|  |    internally  by  a  DATALOAD  statement  are  committed  every  time the
  1434. ENG|061301      |     6|  |    transaction size number is reached.
  1435. ENG|061301      |     8|  |    The status message displayed after  the  execution  of  SQL  statements
  1436. ENG|061301      |     9|  |    includes the information wether AUTOCOMMIT is turned on or off.
  1437. ENG|061301      |    10| E|
  1438. ENG|061301      |    11| E|    AUTOCOMMIT OFF
  1439. ENG|061301      |    12| E|
  1440. ENG|061301      |    13|  |    causes  a  transaction  to  last  until  you explicitly issue COMMIT or
  1441. ENG|061301      |    14|  |    ROLLBACK (or until a timeout occurs). With
  1442. ENG|061301      |    15| E|
  1443. ENG|061301      |    16| E|    AUTOCOMMIT ON
  1444. ENG|061301      |    17| E|
  1445. ENG|061301      |    18|R |    the original condition is restored.
  1446. ENG|061302      |     1|  |    Switch to Another Database User
  1447. ENG|061302      |     3|  |    By applying the different USE statements you can terminate the  current
  1448. ENG|061302      |     4|  |    database  session  and  start a new one with other parameters while you
  1449. ENG|061302      |     5|  |    are executing a command file.
  1450. ENG|061302      |     7| I|                                                                     ##06011302Syntax
  1451. ENG|061302      |     9|  |    USE SERVERDB changes only the SERVERDB, a user with the same  name  and
  1452. ENG|061302      |    10|  |    password must exist in that database.
  1453. ENG|061302      |    12|  |    USE USER changes the user and optionally also the SERVERDB. USE USER &U
  1454. ENG|061302      |    13|  |    establishes  a  session  with  those  parameters (user and database) in
  1455. ENG|061302      |    14|  |    force when LOAD was first called.  If  NOLOG  is  specified  after  the
  1456. ENG|061302      |    15|  |    connect parameters, a NOLOG session is started.
  1457. ENG|061302      |    17|  |    USE  USERKEY  uses  a USERKEY of the XUSER file to provide all required
  1458. ENG|061302      |    18|S |    information about the new user.
  1459. ENG|061302      |    19|  |    The external names for SERVERDB, SERVERNODE, and USERKEY are adopted as
  1460. ENG|061302      |    20|  |    given in the  statement  whereas  the  database  objects  USERNAME  and
  1461. ENG|061302      |    21|  |    PASSWORD  have  to  be  enclosed  in double quotes if they shall not be
  1462. ENG|061302      |    22|  |    converted to uppercase letters.
  1463. ENG|061302      |    24|  |    The example statement looks for the entry DEFAULT  in  the  XUSER  file
  1464. ENG|061302      |    25|  |    which shall provide the parameters for the new session:
  1465. ENG|061302      |    26| E|
  1466. ENG|061302      |    27| E|    use userkey DEFAULT
  1467. ENG|061302      |    28|RE|
  1468. ENG|061303      |     1|  |    Change the SQL Mode
  1469. ENG|061303      |     3|  |    The  SQLMODE  statement  tells the database system which SQL dialect is
  1470. ENG|061303      |     4|  |    used in the following SQL statements. The mode that has been  specified
  1471. ENG|061303      |     5|  |    when  calling  LOAD  or via XUSER ceases to be in force. If none of the
  1472. ENG|061303      |     6|  |    valid SQLMODE keywords has been specified, the mode is set  to  ADABAS.
  1473. ENG|061303      |     7|  |    The  status  message  displayed  after  the execution of SQL statements
  1474. ENG|061303      |     8|  |    includes the information which SQLMODE was used.
  1475. ENG|061303      |    10|  |    The following statement introduces the ANSI  compatibility  test  of  a
  1476. ENG|061303      |    11|  |    command file:
  1477. ENG|061303      |    12| E|
  1478. ENG|061303      |    13| E|    SQLMODE ANSI
  1479. ENG|061303      |    14| E|
  1480. ENG|061303      |    15|RI|                                                                     ##06011303Syntax
  1481. ENG|061304      |     1|  |    Select the Terminal Character Set
  1482. ENG|061304      |     3|  |    Via  CONTROL several transformation tables can be defined and activated
  1483. ENG|061304      |     4|  |    that define the casting from characters entered on the user side to ISO
  1484. ENG|061304      |     5|  |    ASCII resp. EBCDIC in the database.
  1485. ENG|061304      |     7|  |    If you want to change temporarily to another transformation  script  or
  1486. ENG|061304      |     8|  |    even  to  insert e.g. BYTE values without any changes you can apply the
  1487. ENG|061304      |     9|  |    TERMCHARSET statements.
  1488. ENG|061304      |    10| E|
  1489. ENG|061304      |    11| E|    USE TERMCHARSET "french"
  1490. ENG|061304      |    12| E|
  1491. ENG|061304      |    13|  |    The name of the transformation table is a database object like  column,
  1492. ENG|061304      |    14|  |    table, and user name. Therefore it must be enclosed in double quotes if
  1493. ENG|061304      |    15|  |    case sensitivity is required.
  1494. ENG|061304      |    17|RI|                                                                     ##06011304Syntax
  1495. ENG|061305      |     1|  |    Get Detailed Messages
  1496. ENG|061305      |     3|  |    LOAD  uses a default message if the first attempt failed to read a text
  1497. ENG|061305      |     4|  |    from the message table. The statement
  1498. ENG|061305      |     5| E|
  1499. ENG|061305      |     6| E|    MESSAGE ON
  1500. ENG|061305      |     7| E|
  1501. ENG|061305      |     8|  |    tells LOAD during the  session  that  the  detailed  messages  are  now
  1502. ENG|061305      |     9|  |    available  and  there  is  no need any more to make do with the default
  1503. ENG|061305      |    10|  |    message.
  1504. ENG|061305      |    12|RI|                                                                     ##06011305Syntax
  1505. ENG|0614        |     1|  |               Control Statements in a Command File
  1506. ENG|0614        |     2|  |               ------------------------------------
  1507. ENG|0614        |     4| M|            #01Structure^of^a^Command^File
  1508. ENG|0614        |     5| M|            #02Input^Data^in^the^Command^File
  1509. ENG|0614        |     7| M|            #03Branching^in^the^Control^Flow  (IF-THEN-ELSE)
  1510. ENG|0614        |     8| M|            #04Leaving^the^Control^File       (RETURN/STOP)
  1511. ENG|0614        |     9| M|            #05Setting^a^Return^Code          (RETURNCODE)
  1512. ENG|0614        |    10| M|            #06Building^Logical^Units         (INCLUDE)
  1513. ENG|0614        |    11| M|            #07Signals^During^Batch^Execution (SAY)
  1514. ENG|0614        |    13|RM|            #08Replacement^of^Parameters
  1515. ENG|061401      |     1|  |    Structure of a Command File
  1516. ENG|061401      |     3|  |    LOAD can start runs which  process  a  series  of  statements  from  an
  1517. ENG|061401      |     4|  |    external  file.  A  command file can contain SQL and LOAD statements as
  1518. ENG|061401      |     5|  |    well as input data. The  control  flow  can  be  regulated  by  special
  1519. ENG|061401      |     6|  |    control statements.
  1520. ENG|061401      |     8|  |    Statements  must be isolated by separator lines. Separator lines have a
  1521. ENG|061401      |     9|  |    '/' or '*' at the first position. The rest of the line  is  treated  as
  1522. ENG|061401      |    10|  |    comment, i.e. it is not interpreted by LOAD.
  1523. ENG|061401      |    12|  |    Comments  within  a statement are only possible if one of the SQL modes
  1524. ENG|061401      |    13|  |    ORACLE and ANSI is set. The end of a statement is then marked by ';' or
  1525. ENG|061401      |    14|  |    an empty line. In  ORACLE  mode,  comments  start  with  '/*'  and  are
  1526. ENG|061401      |    15|  |    finished  only  if  a '*/' occurs, regardless of the number of lines in
  1527. ENG|061401      |    16|  |    between. In ANSI mode, the rest of a line is treated as comment if  the
  1528. ENG|061401      |    17|R |    combination '--' occured.
  1529. ENG|061402      |     1|  |    Input Data in the Command File
  1530. ENG|061402      |     3|  |    If  a  load statement in a command file specifies INFILE *, the data is
  1531. ENG|061402      |     4|  |    read from the command file as well. This data can be put directly after
  1532. ENG|061402      |     5|  |    the load statement or be separated from it by a separator line.  Use  a
  1533. ENG|061402      |     6|  |    separator line to indicate the end of data.
  1534. ENG|061402      |     8|  |    Data  that is not separated will be copied to the screen along with the
  1535. ENG|061402      |     9|  |    statement. On the one hand, thus the statement  can  be  executed  more
  1536. ENG|061402      |    10|  |    than  once,  on  the other hand the size of the edit form might prove a
  1537. ENG|061402      |    11|  |    restriction, and data formats other than CHAR  cannot  be  loaded  like
  1538. ENG|061402      |    12|R |    this.
  1539. ENG|061403      |     1|  |    Branching in the Control Flow
  1540. ENG|061403      |     3|  |    In  addition  to  the  execution of LOAD and SQL statements the control
  1541. ENG|061403      |     4|  |    file can test the return code of a formerly executed statement  in  the
  1542. ENG|061403      |     5|  |    IF  part  of a condition and branch accordingly to a THEN or ELSE part.
  1543. ENG|061403      |     6|  |    The return code of a SQL statement is  it's  error  code,  whereas  the
  1544. ENG|061403      |     7|  |    return  code  of  a  DATALOAD  or DATAUPDATE statement is the number of
  1545. ENG|061403      |     8|  |    rejected lines.
  1546. ENG|061403      |    10|  |    In addition to conditions  of  the  form  "IF  $RC  <=  -900"  constant
  1547. ENG|061403      |    11|  |    branching  via  "IF TRUE" resp. "IF FALSE" is possible. Such conditions
  1548. ENG|061403      |    12|  |    offer an easy way to include and exclude statements.
  1549. ENG|061403      |    14|  |    A variant of the first condition form prevents a load  run  from  being
  1550. ENG|061403      |    15|  |    interrupted  because  a  SQL statement produced a negative return code.
  1551. ENG|061403      |    16|  |    The statement to be executed is specified after  $RC  and  enclosed  in
  1552. ENG|061403      |    17|  |    parentheses,  then  follow the comparison operator and operand. In this
  1553. ENG|061403      |    18|S |    case $RC is a function; the condition evaluates the return code of  the
  1554. ENG|061403      |    19|  |    SQL statement in brackets.
  1555. ENG|061403      |    21|  |    THEN  and  ELSE  can  be  followed  by single or compound statements. A
  1556. ENG|061403      |    22|  |    single statement can itself be an IF-THEN-ELSE structure.  A  block  of
  1557. ENG|061403      |    23|  |    statements must be enclosed in BEGIN and END.
  1558. ENG|061403      |    25|  |    The ELSE part is always optional.
  1559. ENG|061403      |    27|RI|                                                                     ##06011401Syntax
  1560. ENG|061404      |     1|  |    Leaving the Control File
  1561. ENG|061404      |     3|  |    If  the RETURN statement is executed anywhere in the control file, this
  1562. ENG|061404      |     4|  |    file is immediately closed. In case of it being an  INCLUDE  file,  the
  1563. ENG|061404      |     5|  |    run  is continued with the next statement of the master file. RETURN in
  1564. ENG|061404      |     6|  |    the command file is equivalent to the online command ==> END RUN.
  1565. ENG|061404      |     8|  |    STOP in the command file is equivalent to the online command ==>  EXIT.
  1566. ENG|061404      |     9|  |    The  STOP  statement can have a numeric parameter varying from 0 to 127
  1567. ENG|061404      |    10|  |    that will be given as return code of  the  LOAD  program.  The  default
  1568. ENG|061404      |    11|  |    value  of this program return code is the result of error codes, return
  1569. ENG|061404      |    12|  |    codes and the number of rejected lines as shown below
  1570. ENG|061404      |    13|  |       7, if a SQL error occured,
  1571. ENG|061404      |    14|  |       8, if a LOAD error occured,
  1572. ENG|061404      |    15|  |       9, if input lines where rejected
  1573. ENG|061404      |    16|  |      10, if a file error occured.
  1574. ENG|061404      |    17|  |    set in this order of priority.
  1575. ENG|061404      |    18|RI|                                                                     ##06011402Syntax
  1576. ENG|061405      |     1|  |    Setting a Return Code
  1577. ENG|061405      |     3|  |    The RETURNCODE statement explicitly assigns a new value to the variable
  1578. ENG|061405      |     4|  |    $RC that is tested in an IF-THEN-ELSE structure. Thus the  return  code
  1579. ENG|061405      |     5|  |    of the former statement can be overridden.
  1580. ENG|061405      |     7|RI|                                                                     ##06011403Syntax
  1581. ENG|061406      |     1|  |    Building Logical Units
  1582. ENG|061406      |     3|  |    The  INCLUDE statement can be used to clearly structure a command file.
  1583. ENG|061406      |     4|  |    If smaller logical units are kept  in  separate  control  files,  these
  1584. ENG|061406      |     5|  |    files  can  be  executed  as  if their statements were part of the main
  1585. ENG|061406      |     6|  |    control file by specifying an INCLUDE statement for each of them in the
  1586. ENG|061406      |     7|  |    main file.
  1587. ENG|061406      |     9|  |    In THEN or ELSE parts the INCLUDE statement must be enclosed  by  BEGIN
  1588. ENG|061406      |    10|  |    and  END  as  the  included  file will usually consist of more than one
  1589. ENG|061406      |    11|  |    statement.
  1590. ENG|061406      |    12| E|
  1591. ENG|061406      |    13| E|    INCLUDE QUERY.ins
  1592. ENG|061406      |    14| E|
  1593. ENG|061406      |    16|RI|                                                                     ##06011404Syntax
  1594. ENG|061407      |     1|  |    Signals During Batch Execution
  1595. ENG|061407      |     3|  |    SAY displays the text following it. The statement has been designed for
  1596. ENG|061407      |     4|  |    BATCH runs but can be applied online as well. The text will then appear
  1597. ENG|061407      |     5|  |    in one of the message lines below the edit form.
  1598. ENG|061407      |     7|  |    The text can contain parameters named &1 through &9, &U and $RC.  These
  1599. ENG|061407      |     8|  |    are  replaced  by  proper  values,  if  possible. &1 to &9 refer to the
  1600. ENG|061407      |     9|  |    parameters given when calling LOAD. &U is replaced by the current  user
  1601. ENG|061407      |    10|  |    name,  $RC  by  the  return  code  of  the last statement that has been
  1602. ENG|061407      |    11|  |    executed.
  1603. ENG|061407      |    12| E|
  1604. ENG|061407      |    13| E|    SAY Hello, &U, the return code of the last statement was $RC
  1605. ENG|061407      |    14| E|
  1606. ENG|061407      |    16|RI|                                                                     ##06011405Syntax
  1607. ENG|061408      |     1|  |    Replacement of Parameters
  1608. ENG|061408      |     3|  |    The formal parameters &1 to  &9  contained  in  control  files  can  be
  1609. ENG|061408      |     4|  |    replaced  by  arbitrary  strings if these have been specified as actual
  1610. ENG|061408      |     5|  |    parameters when calling LOAD with RUN or BATCH.
  1611. ENG|061408      |     7|  |    The individual parameters are separated from each other by blanks. If a
  1612. ENG|061408      |     8|  |    character string consisting of several words shall be inserted for  &n,
  1613. ENG|061408      |     9|  |    then  the  n-th parameter must be enclosed in single quotes. Quotes are
  1614. ENG|061408      |    10|  |    also required to preserve mixed case.
  1615. ENG|061408      |    12|  |    If a  statement  contains  a  formal  parameter  &n  and  less  than  n
  1616. ENG|061408      |    13|  |    parameters were specified with the call, then &n will be replaced by an
  1617. ENG|061408      |    14|  |    empty  string.  However, if no actual parameters at all have been given
  1618. ENG|061408      |    15|R |    an error is reported.
  1619. ENG|0615        |     1|  |                            LOAD Commands
  1620. ENG|0615        |     2|  |                            -------------
  1621. ENG|0615        |     3| M|                #01Leaving^LOAD^with^Query (END)
  1622. ENG|0615        |     4| M|                #02Leaving^LOAD^without^Query (EXIT)
  1623. ENG|0615        |     5| M|                #03Starting^a^Statement^or^a^Command^File (RUN)
  1624. ENG|0615        |     6| M|                #04Fetching^the^Logically^Next^Statement (NEXT)
  1625. ENG|0615        |     7| M|                #05Skipping^the^Logically^Next^Statement (SKIP)
  1626. ENG|0615        |     8| M|                #06Fetching^the^Physically^Next^Statement (SCAN)
  1627. ENG|0615        |     9| M|                #07Explicitly^Closing^a^Command^File (END RUN)
  1628. ENG|0615        |    10| M|                #08Displaying^the^Online^Protocol (PROT)
  1629. ENG|0615        |    11| M|                #09Displaying^the^LOAD^Version (VERSION)
  1630. ENG|0615        |    12| M|                #10Branching^to^the^Operating^System (EXEC)
  1631. ENG|0615        |    13| M|                #11Setting^Your^Environment (SET)
  1632. ENG|0615        |    14|RM|                #13Calling^LOAD^in^BATCH^Mode (BATCH)
  1633. ENG|061501      |     1|  |    Leaving LOAD with Query
  1634. ENG|061501      |     3|  |    ==> END terminates  the  current  session  if  the  user  confirms  the
  1635. ENG|061501      |     4|  |    corresponding  query  by  another  END  command. The query protects you
  1636. ENG|061501      |     5|  |    against an unwanted session end due to an inadvertent use of the F3  or
  1637. ENG|061501      |     6|  |    END key.
  1638. ENG|061501      |     8|  |    The  END  key  serves  moreover  to  leave display modes like PROTOCOL,
  1639. ENG|061501      |     9|  |    OUTPUT, BREAK.
  1640. ENG|061501      |    11|RI|                                                                     ##06011501Syntax
  1641. ENG|061502      |     1|  |    Leaving LOAD without Query
  1642. ENG|061502      |     3|  |    ==> EXIT terminates the LOAD session  at  once.  In  some  environments
  1643. ENG|061502      |     4|  |    there is additionally an EXIT key.
  1644. ENG|061502      |     6|RI|                                                                     ##06011502Syntax
  1645. ENG|061503      |     1|  |    Starting a Statement or a Command File
  1646. ENG|061503      |     3|  |    ==> RUN without parameters starts the statement found in the edit form.
  1647. ENG|061503      |     5|  |    RUN  with  range  option  serves  to load a specific range of the input
  1648. ENG|061503      |     6|  |    file. The FROM part determines the starting  line,  the  FOR  part  the
  1649. ENG|061503      |     7|  |    number of lines that shall be loaded. Default values are FROM 1 and FOR
  1650. ENG|061503      |     8|  |    * (* = all input lines from the starting line).
  1651. ENG|061503      |    10|  |    If  you  specify RUN FROM 0 or RUN FOR 0 LOAD only checks the syntax of
  1652. ENG|061503      |    11|  |    the statement.
  1653. ENG|061503      |    13|  |    The STOP option of the RUN command offers the opportunity to  interrupt
  1654. ENG|061503      |    14|  |    a  load  run  when  a certain amount of lines has been rejected. If you
  1655. ENG|061503      |    15|  |    omit it, the run is interrupted  when  the  number  of  rejected  lines
  1656. ENG|061503      |    16|  |    equals the currently set transaction size.
  1657. ENG|061503      |    18|S |    During the interruption you can do any of the following
  1658. ENG|061503      |    19|  |    a) inquire  in the online protocol of rejected lines why the lines have
  1659. ENG|061503      |    20|  |       not been inserted (PROT)
  1660. ENG|061503      |    21|  |    b) cancel the run (QUIT)
  1661. ENG|061503      |    22|  |    c) resume the run under the same conditions, i.e.  let  it  stop  again
  1662. ENG|061503      |    23|  |       when the next n rejected lines have piled up (TEST)
  1663. ENG|061503      |    24|S |    d) continue the run without further interrupts (GO ON)
  1664. ENG|061503      |    37|  |    RUN  followed  by  a  file  name  starts  the  execution of a series of
  1665. ENG|061503      |    38|  |    statements contained in this file. The  file  name  can  optionally  be
  1666. ENG|061503      |    39|  |    enclosed by single quotes. It is in neither case converted to uppercase
  1667. ENG|061503      |    40|  |    letters if this is not common practice of the operating system.
  1668. ENG|061503      |    42|  |    If  the option PROMPT is not specified, a statement is displayed on the
  1669. ENG|061503      |    43|  |    screen and executed immediately, then the next statement  is  displayed
  1670. ENG|061503      |    44|  |    and executed and so on until the end of the file is reached or until an
  1671. ENG|061503      |    45|  |    error occurs. In the latter case LOAD enters INPUT mode again. The next
  1672. ENG|061503      |    46| I|    statement can then be brought to the screen applying ##061504NEXT or SCAN.
  1673. ENG|061503      |    48|  |    If  the  option  PROMPT is specified, the first statement is brought to
  1674. ENG|061503      |    49| I|    the screen with ##061506SCAN.
  1675. ENG|061503      |    51|RI|                                                                     ##06011503Syntax
  1676. ENG|061504      |     1|  |    Fetching the Logically Next Statement
  1677. ENG|061504      |     3|  |    ==> NEXT goes through the currently accessed command file, the name  of
  1678. ENG|061504      |     4|  |    which  is  displayed  above the input area of the screen, and looks for
  1679. ENG|061504      |     5|  |    the next statement to be executed  taking  the  flow  of  control  into
  1680. ENG|061504      |     6|  |    account. This statement is copied into the edit form and can be started
  1681. ENG|061504      |     7|  |    with RUN.
  1682. ENG|061504      |     9|  |    SQL statements that are part of IF conditions are not displayed by NEXT
  1683. ENG|061504      |    10|  |    and will be executed to determine the control flow.
  1684. ENG|061504      |    12|  |    NEXT  NOPROMPT  switches  to  NOPROMPT mode where the statements in the
  1685. ENG|061504      |    13|  |    file are executed without user interaction. If an  error  occurs,  LOAD
  1686. ENG|061504      |    14|  |    returns to PROMPT mode.
  1687. ENG|061504      |    16|RI|                                                                     ##06011504Syntax
  1688. ENG|061505      |     1|  |    Skipping the Logically Next Statement
  1689. ENG|061505      |     3|  |    ==>  SKIP goes through the currently accessed command file, the name of
  1690. ENG|061505      |     4|  |    which is displayed above the input area of the screen, and skips one or
  1691. ENG|061505      |     5|  |    more statements that would be executed taking the flow of control  into
  1692. ENG|061505      |     6|  |    account.  The  following statement is copied into the edit form and can
  1693. ENG|061505      |     7|  |    be started with RUN.
  1694. ENG|061505      |     9|  |    SQL statements that are part of  IF  conditions  are  not  skipped  but
  1695. ENG|061505      |    10|  |    executed to determine the control flow.
  1696. ENG|061505      |    12|  |    SKIP skips one, SKIP 5 skips five statements. SKIP infile looks for the
  1697. ENG|061505      |    13|  |    next  statement  that  contains  a string starting with INFILE (case is
  1698. ENG|061505      |    14|  |    ignored).
  1699. ENG|061505      |    16|RI|                                                                     ##06011505Syntax
  1700. ENG|061506      |     1|  |    Fetching the Physically Next Statement
  1701. ENG|061506      |     3|  |    ==> SCAN displays the next statement without executing it. In  contrast
  1702. ENG|061506      |     4|  |    to NEXT control statements are not evaluated but displayed as well. The
  1703. ENG|061506      |     5|  |    shown  statement consequently consists of all lines of the command file
  1704. ENG|061506      |     6|  |    up to the next separator line.
  1705. ENG|061506      |     8|  |    SCAN followed by a string looks for a word starting  with  this  string
  1706. ENG|061506      |     9|  |    regardless of it's meaning. SCAN stop would display e.g.
  1707. ENG|061506      |    11|  |        STOP 100
  1708. ENG|061506      |    13|RI|                                                                     ##06011506Syntax
  1709. ENG|061507      |     1|  |    Explicitly Closing a Command File
  1710. ENG|061507      |     3|  |    ==>  END  RUN  closes  the current command file before it has been gone
  1711. ENG|061507      |     4|  |    through completely. In an  INCLUDE  cascade  the  file  containing  the
  1712. ENG|061507      |     5|  |    INCLUDE  becomes the current command file, it's name is displayed above
  1713. ENG|061507      |     6|  |    the input area instead of that of the former file.
  1714. ENG|061507      |     8|  |    END RUN is the command equivalent of the control statement RETURN.
  1715. ENG|061507      |    10|RI|                                                                     ##06011507Syntax
  1716. ENG|061508      |     1|  |    Displaying the Online Protocol
  1717. ENG|061508      |     3|  |    ==> PROT displays a protocol of the lines rejected during the last load
  1718. ENG|061508      |     4|  |    run.
  1719. ENG|061508      |     6|  |    Not more than 18 lines of the protocol  are  displayed.  If  truncation
  1720. ENG|061508      |     7|  |    proves necessary, the left part of the last lines is shown.
  1721. ENG|061508      |     9|RI|                                                                     ##06011508Syntax
  1722. ENG|061509      |     1|  |    Displaying the LOAD Version
  1723. ENG|061509      |     3|  |    ==> VERSION displays a message containing the version number and date.
  1724. ENG|061509      |     5|RI|                                                                     ##06011509Syntax
  1725. ENG|061510      |     1|  |    Branching to the Operating System
  1726. ENG|061510      |     3|  |    ==> EXEC executes the operating system command given as parameter.
  1727. ENG|061510      |     5|RI|                                                                     ##06011510Syntax
  1728. ENG|061511      |     1|  |    Setting Your Environment
  1729. ENG|061511      |     3|  |    With  ==> SET every user can alter certain control parameters according
  1730. ENG|061511      |     4|  |    to his own requirements. Apart from the general parameters
  1731. ENG|061511      |     5|  |    - language (of the messages)
  1732. ENG|061511      |     6|  |    - representation of NULL values (used e.g. by DATAEXTRACT)
  1733. ENG|061511      |     7|  |    - plaintext number format (/<thousands>/<decimal>/)
  1734. ENG|061511      |     8|  |    - date format (INTERNAL, EUR, ISO, USA, JIS, free format)
  1735. ENG|061511      |     9|  |    - time format (   "    ,  " ,  " ,  " ,  " ,      "     )
  1736. ENG|061511      |    10|  |    - timestamp format ("  ,  " ,  " ,  " ,  " ,      "     )
  1737. ENG|061511      |    11|  |    - Boolean ('<TRUE>/<FALSE>')
  1738. ENG|061511      |    12|  |    - separator (used as default by DATAEXTRACT)
  1739. ENG|061511      |    13|  |    - printer format (see below)
  1740. ENG|061511      |    14|  |    - number of copies printed
  1741. ENG|061511      |    15|  |    - system editor (enter the command SYSED to use it)
  1742. ENG|061511      |    16|  |    there are a few parameters specific for LOAD, namely
  1743. ENG|061511      |    17|  |    - LOAD presentation (see below)
  1744. ENG|061511      |    18|S |    - LOAD protocol file name (LOAD does not work without it)
  1745. ENG|061511      |    19|  |    - transaction size (number of INSERTs between COMMITs)
  1746. ENG|061511      |    21|  |    Presentation and printer setting can be altered via separate  sub-menus
  1747. ENG|061511      |    22|  |    of SET. The print format menu offers parameters that determine the page
  1748. ENG|061511      |    23|  |    layout  and  the  name of the printer to be used. The presentation menu
  1749. ENG|061511      |    24|  |    displays colours and attributes of the different screen areas.
  1750. ENG|061511      |    26|  |    There is a default setting for every SET parameter. Individual  changes
  1751. ENG|061511      |    27|  |    remain valid beyond a session's end.
  1752. ENG|061511      |    29|RI|                                                                     ##06011511Syntax
  1753. ENG|061513      |     1|  |    Calling LOAD in BATCH Mode
  1754. ENG|061513      |     3|  |    When  calling  LOAD,  you can specify that the run shall be made batch-
  1755. ENG|061513      |     4|  |    like, i.e. without user interaction.  To  achieve  this,  you  have  to
  1756. ENG|061513      |     5|  |    specify a BATCH command that starts a command file.
  1757. ENG|061513      |     7|  |    A  BATCH run is only aborted if a severe error occured that would bring
  1758. ENG|061513      |     8|  |    about the session's end in interactive  mode  as  well.  Otherwise  the
  1759. ENG|061513      |     9|  |    faulty  statement  is  skipped.  All  statements  are  recorded  in the
  1760. ENG|061513      |    10|  |    protocol file along with their results resp. error messages.
  1761. ENG|061513      |    12|  |    If any other LOAD command than BATCH is  specified  when  calling  LOAD
  1762. ENG|061513      |    13|  |    this command will be executed as if it had been entered via the command
  1763. ENG|061513      |    14|  |    line (==>).
  1764. ENG|061513      |    15|RI|                                                                     ##06011513Syntax
  1765. ENG|0699        |     1|  |    The Error Message 12308
  1766. ENG|0699        |     3|  |    12308 File content does not match table definition, reason code &1
  1767. ENG|0699        |     5|  |    Explanations:
  1768. ENG|0699        |     7|  |    The following reasons can lead to an abortion of a TABLELOAD run
  1769. ENG|0699        |     9|  |    1. The  header  block  expected in a TABLELOAD file (byte 6 = 0) is not
  1770. ENG|0699        |    10|  |       available.
  1771. ENG|0699        |    12|  |    2. The integer swap form (1 for normal, 2  for  full  swapping,  3  for
  1772. ENG|0699        |    13|  |       partial swapping) in byte 8 of the header block was not found.
  1773. ENG|0699        |    15|  |    3. The  description  of  the  table  stored  in the file has an invalid
  1774. ENG|0699        |    16|  |       length (e.g. too many rows with byte 6 = 1).
  1775. ENG|0699        |    18|S |    4. The description of the table stored in the file is not complete.
  1776. ENG|0699        |    19|  |    5. The file contains less CONSTRAINT lines then  expected  due  to  the
  1777. ENG|0699        |    20|  |       table description.
  1778. ENG|0699        |    22|  |    6. The  table description says that DEFAULTS are defined for the source
  1779. ENG|0699        |    23|  |       table, these lines are not present in the file.
  1780. ENG|0699        |    24|  |    7. There are no data records for the table stored in the file.
  1781. ENG|0699        |    25|  |    8. The columns of the source table and of the target  table  differ  in
  1782. ENG|0699        |    26|  |       their definitions to such an extent that the file cannot be used for
  1783. ENG|0699        |    27|  |       the loading of the target table.
  1784. ENG|0699        |    28|  |    9. The  source  table  and  the  target table have different numbers of
  1785. ENG|0699        |    29|R |       columns.
  1786.