DataTutorial.xml 48 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
  4. <book lang="en_US" xml:base="../">
  5. <title>HPCC Data Tutorial</title>
  6. <bookinfo>
  7. <title>HPCC Data Tutorial</title>
  8. <mediaobject>
  9. <imageobject>
  10. <imagedata fileref="images/redswooshWithLogo3.jpg" />
  11. </imageobject>
  12. </mediaobject>
  13. <author>
  14. <surname>Boca Raton Documentation Team</surname>
  15. </author>
  16. <legalnotice>
  17. <para>We welcome your comments and feedback about this document via
  18. email to <email>docfeedback@hpccsystems.com</email></para>
  19. <para>Please include <emphasis role="bold">Documentation
  20. Feedback</emphasis> in the subject line and reference the document name,
  21. page numbers, and current Version Number in the text of the
  22. message.</para>
  23. <para>LexisNexis and the Knowledge Burst logo are registered trademarks
  24. of Reed Elsevier Properties Inc., used under license.</para>
  25. <para>HPCC Systems<superscript>®</superscript> is a registered trademark
  26. of LexisNexis Risk Data Management Inc.</para>
  27. <para>Other products and services may be trademarks or registered
  28. trademarks of their respective companies.</para>
  29. <para>All names and example data used in this manual are fictitious. Any
  30. similarity to actual persons, living or dead, is purely
  31. coincidental.</para>
  32. <para></para>
  33. </legalnotice>
  34. <xi:include href="common/Version.xml" xpointer="FooterInfo"
  35. xmlns:xi="http://www.w3.org/2001/XInclude" />
  36. <!--Release Info makes a running page footer: now an include! -->
  37. <!--The following include statement pulls in the date_ver from version.xml-->
  38. <xi:include href="common/Version.xml" xpointer="DateVer"
  39. xmlns:xi="http://www.w3.org/2001/XInclude" />
  40. <corpname>HPCC Systems<superscript>®</superscript></corpname>
  41. <!--corpname never prints-->
  42. <xi:include href="common/Version.xml" xpointer="Copyright"
  43. xmlns:xi="http://www.w3.org/2001/XInclude" />
  44. <!--Copyright tag inserts the symbol automatically: Now an Include!-->
  45. <mediaobject role="logo">
  46. <imageobject>
  47. <imagedata fileref="images/LN_Rightjustified.jpg" />
  48. </imageobject>
  49. </mediaobject>
  50. </bookinfo>
  51. <chapter>
  52. <title>Introduction</title>
  53. <sect1 id="Introduction_Case-Study-and-Tutorial" role="nobrk">
  54. <title>The ECL Development Process</title>
  55. <para>This tutorial provides a walk-through of the development process,
  56. from beginning to end, and is designed to be an introduction to working
  57. with data on any HPCCSystems HPCC<footnote>
  58. <para><emphasis role="bold">H</emphasis>igh <emphasis
  59. role="bold">P</emphasis>erformance <emphasis
  60. role="bold">C</emphasis>omputing <emphasis
  61. role="bold">C</emphasis>luster (HPCC) is a massively parallel
  62. processing computing platform that solves Big Data problems. See
  63. http://www.hpccsystems.com/Why-HPCC/How-it-works for more
  64. details.</para>
  65. </footnote>. We will write code in ECL<footnote>
  66. <para><emphasis role="bold">E</emphasis>nterprise <emphasis
  67. role="bold">C</emphasis>ontrol <emphasis
  68. role="bold">L</emphasis>anguage (ECL) is a declarative, data centric
  69. programming language used to manage all aspects of the massive data
  70. joins, sorts, and builds that truly differentiate HPCC (High
  71. Performance Computing Cluster) from other technologies in its
  72. ability to provide flexible data analysis on a massive scale.</para>
  73. </footnote>to process our data and query it.</para>
  74. <para>This tutorial assumes:</para>
  75. <itemizedlist>
  76. <listitem>
  77. <para>You have a running HPCC. This can be a VM Edition or a single
  78. or multinode HPCC platform</para>
  79. </listitem>
  80. </itemizedlist>
  81. <para>• You have the ECL IDE<footnote>
  82. <para>The ECL IDE (Integrated Development Environment) is the tool
  83. used to create queries into your data and ECL files with which to
  84. build your queries.</para>
  85. </footnote> installed and configured</para>
  86. <para>In this tutorial, we will:</para>
  87. <itemizedlist mark="bullet">
  88. <listitem>
  89. <para>Download a raw data file</para>
  90. <para>There are links to data file available at <ulink
  91. url="http://hpccsystems.com/community/docs/data-tutorial-guide">http://hpccsystems.com/community/docs/data-tutorial-guide</ulink></para>
  92. <para>The download is approximately 30 MB (compressed) and is
  93. available in either ZIP or .tar.gz format. Choose the appropriate
  94. link.</para>
  95. </listitem>
  96. <listitem>
  97. <para>Spray the file to a Data Refinery cluster HPCC clusters
  98. "spray" data into file parts on each node.</para>
  99. <para>A <emphasis>spray</emphasis> or <emphasis>import</emphasis> is
  100. the relocation of a data file from one location to an HPCC cluster.
  101. The term spray was adopted due to the nature of the file movement –
  102. the file is partitioned across all nodes within a cluster.</para>
  103. </listitem>
  104. <listitem>
  105. <para>Examine the data and determine the pre-processing we need to
  106. perform</para>
  107. </listitem>
  108. <listitem>
  109. <para>Pre-process the data to produce a new data file</para>
  110. </listitem>
  111. <listitem>
  112. <para>Determine the types of queries we want</para>
  113. </listitem>
  114. <listitem>
  115. <para>Create the queries</para>
  116. </listitem>
  117. <listitem>
  118. <para>Test the queries</para>
  119. </listitem>
  120. <listitem>
  121. <para>Deploy them to a Rapid Data Delivery Engine (RDDE) cluster,
  122. also know as a Roxie cluster.</para>
  123. </listitem>
  124. </itemizedlist>
  125. </sect1>
  126. </chapter>
  127. <chapter id="Working_with_Data">
  128. <title>Working with Data</title>
  129. <sect1 id="The_Original_Data" role="nobrk">
  130. <title>The Original Data</title>
  131. <para>In this scenario, we receive a structured data file containing
  132. records with people's names and addresses. The HPCC also supports
  133. unstructured data, but this example is simpler. This file is documented
  134. in the following table:</para>
  135. <para></para>
  136. <para><informaltable colsep="1" frame="all" rowsep="1">
  137. <tgroup cols="3">
  138. <colspec colwidth="147.60pt" />
  139. <colspec colwidth="147.60pt" />
  140. <colspec colwidth="147.60pt" />
  141. <thead>
  142. <row>
  143. <entry align="left">Field Name</entry>
  144. <entry align="left">Type</entry>
  145. <entry align="left">Description</entry>
  146. </row>
  147. </thead>
  148. <tbody>
  149. <row>
  150. <entry>FirstName</entry>
  151. <entry>15 Character String</entry>
  152. <entry>First Name</entry>
  153. </row>
  154. <row>
  155. <entry>LastName</entry>
  156. <entry>25 Character String</entry>
  157. <entry>Last name</entry>
  158. </row>
  159. <row>
  160. <entry>MiddleName</entry>
  161. <entry>15 Character String</entry>
  162. <entry>Middle Name</entry>
  163. </row>
  164. <row>
  165. <entry>Zip</entry>
  166. <entry>5 Character String</entry>
  167. <entry>ZIP Code</entry>
  168. </row>
  169. <row>
  170. <entry>Street</entry>
  171. <entry>42 Character String</entry>
  172. <entry>Street Address</entry>
  173. </row>
  174. <row>
  175. <entry>City</entry>
  176. <entry>20 Character String</entry>
  177. <entry>City</entry>
  178. </row>
  179. <row>
  180. <entry>State</entry>
  181. <entry>2 Character String</entry>
  182. <entry>State</entry>
  183. </row>
  184. </tbody>
  185. </tgroup>
  186. </informaltable></para>
  187. <para>This gives us a record length of 124 (the total of all field
  188. lengths). You will need to know this length for the <emphasis
  189. role="bold">File Spray</emphasis> process.</para>
  190. <para></para>
  191. <sect2 id="Uploading_a_file">
  192. <title>Load the Incoming Data File to your Landing Zone</title>
  193. <para>A Landing Zone (or Drop Zone) is a physical storage location
  194. defined in your HPCC's environment. A daemon (DaFileSrv) must be
  195. running on that server to enable file sprays and desprays.</para>
  196. <para>For smaller data files, you can use the upload/download file
  197. utility in ECL Watch (a Web-based interface to your HPCC platform).
  198. The sample data file is ~100 mb.</para>
  199. <orderedlist>
  200. <listitem>
  201. <para>Download the sample data file from the HPCC
  202. Systems<superscript>®</superscript> portal.</para>
  203. <para>The data file is available from links found on <ulink
  204. url="http://hpccsystems.com/community/docs/data-tutorial-guide">http://hpccsystems.com/community/docs/data-tutorial-guide</ulink>.
  205. The download is approximately 30 MB (compressed) and is available
  206. in either ZIP or tar.gz format (<emphasis
  207. role="bold">OriginalPerson.tar.gz</emphasis> or <emphasis
  208. role="bold">OriginalPerson.zip</emphasis>)</para>
  209. </listitem>
  210. <listitem>
  211. <para>Extract it to a folder on your local machine.</para>
  212. </listitem>
  213. <listitem>
  214. <para>In your browser, go to the <emphasis role="bold">ECL
  215. Watch</emphasis> URL. For example, http://nnn.nnn.nnn.nnn:8010,
  216. where nnn.nnn.nnn.nnn is your ESP<footnote>
  217. <para>The ESP (Enterprise Services Platform) Server is the
  218. communication layer server in you HPCC environment.</para>
  219. </footnote> Server's IP address.</para>
  220. <para><informaltable colsep="1" frame="all" rowsep="1">
  221. <?dbfo keep-together="always"?>
  222. <tgroup cols="2">
  223. <colspec colwidth="49.50pt" />
  224. <colspec />
  225. <tbody>
  226. <row>
  227. <entry><inlinegraphic
  228. fileref="images/caution.png" /></entry>
  229. <entry>Your IP address could be different from the ones
  230. provided in the example images. Please use the IP
  231. address provided by <emphasis
  232. role="bold">your</emphasis> installation.</entry>
  233. </row>
  234. </tbody>
  235. </tgroup>
  236. </informaltable></para>
  237. </listitem>
  238. <listitem>
  239. <?dbfo keep-together="always"?>
  240. <para>From the ECL Watch home page, click on the <emphasis
  241. role="bold">Files</emphasis> icon, then click the <emphasis
  242. role="bold">Landing Zones</emphasis> link from the navigation
  243. sub-menu.</para>
  244. <para>Press on the <emphasis role="bold">Upload </emphasis>action
  245. button on the Landing Zones tab.</para>
  246. <para><figure>
  247. <title>Upload/download</title>
  248. <mediaobject>
  249. <imageobject>
  250. <imagedata fileref="images/LZimg03-1.jpg"
  251. vendor="eclwatchSS" />
  252. </imageobject>
  253. </mediaobject>
  254. </figure></para>
  255. <para>Once you press the Upload button, a dialog opens where you
  256. can choose a file to upload.</para>
  257. </listitem>
  258. <listitem>
  259. <para>Browse the files on your local machine, select the file to
  260. upload, and then press the <emphasis role="bold">Open</emphasis>
  261. button.</para>
  262. <para>The file you selected displays in the <emphasis
  263. role="bold">File Uploader</emphasis> dialog.</para>
  264. <para><figure>
  265. <title>File Uploader</title>
  266. <mediaobject>
  267. <imageobject>
  268. <imagedata fileref="images/LZimg04.jpg"
  269. vendor="eclwatchSS" />
  270. </imageobject>
  271. </mediaobject>
  272. </figure></para>
  273. </listitem>
  274. <listitem>
  275. <para>Press the <emphasis role="bold">Start</emphasis> button to
  276. complete the file upload.<figure>
  277. <title>Upload Progress</title>
  278. <mediaobject>
  279. <imageobject>
  280. <imagedata fileref="images/LZimg06.jpg"
  281. vendor="eclwatchSS" />
  282. </imageobject>
  283. </mediaobject>
  284. </figure></para>
  285. </listitem>
  286. </orderedlist>
  287. </sect2>
  288. <sect2 id="Spray_the_Data_File_to_your_DR-THOR_Cluster">
  289. <title>Spray the Data File to your Thor Cluster</title>
  290. <para>To use the data file in our HPCC cluster, we must first “spray”
  291. it to a Thor cluster. A <emphasis>spray</emphasis> or
  292. <emphasis>import</emphasis> is the relocation of a data file from one
  293. location to a Thor cluster. The term spray was adopted due to the
  294. nature of the file movement – the file is partitioned across all nodes
  295. within a cluster.</para>
  296. <para>In this example, the file is on your Landing Zone and is named
  297. <emphasis role="bold">OriginalPerson.</emphasis></para>
  298. <para>We are going to spray it to our Thor cluster and give it a
  299. logical name of <emphasis role="bold">tutorial::</emphasis><emphasis
  300. role="bold">YN</emphasis><emphasis
  301. role="bold">::OriginalPerson</emphasis><emphasis role="bold">
  302. </emphasis>where <emphasis role="bold">YN</emphasis> are your
  303. initials. The Distributed File Utility maintains a list of logical
  304. files and their corresponding physical file locations.</para>
  305. <orderedlist>
  306. <listitem>
  307. <para>Open ECL Watch in your browser using the following
  308. URL:</para>
  309. <para><emphasis role="bold">http://nnn.nnn.nnn.nnn:pppp
  310. </emphasis><emphasis role="bold">(where nnn.nnn.nnn.nnn is your
  311. ESP Server’s IP Address and pppp is the port. The default port is
  312. 8010)</emphasis></para>
  313. </listitem>
  314. <listitem>
  315. <?dbfo keep-together="always"?>
  316. <para>From the ECL Watch home page, click on the <emphasis
  317. role="bold">Files</emphasis> icon, then click the <emphasis
  318. role="bold">Landing Zones</emphasis> link from the navigation
  319. sub-menu.</para>
  320. <para>On the Landing Zones tab, click on the arrow next to your
  321. mydropzone container to expand the list of uploaded files. <figure>
  322. <title>mydropzone</title>
  323. <mediaobject>
  324. <imageobject>
  325. <imagedata fileref="images/LZimg000.jpg"
  326. vendor="eclwatchSS" />
  327. </imageobject>
  328. </mediaobject>
  329. </figure></para>
  330. <para>Find the file you want to spray in the list
  331. (OriginalPerson), check the box next to that file name to select
  332. that file.</para>
  333. <para>Once you select the file from the list, the <emphasis
  334. role="bold">Spray</emphasis> action buttons become enabled.</para>
  335. </listitem>
  336. <listitem>
  337. <para>Press the <emphasis role="bold">Fixed</emphasis> action
  338. button. This indicates that you are spraying a fixed width file.
  339. <figure>
  340. <title>Spray: Fixed action button</title>
  341. <mediaobject>
  342. <imageobject>
  343. <imagedata fileref="images/LZimg001.jpg"
  344. vendor="eclwatchSS" />
  345. </imageobject>
  346. </mediaobject>
  347. </figure></para>
  348. <para>The <emphasis role="bold">Spray Fixed</emphasis> dialog
  349. displays.</para>
  350. </listitem>
  351. <listitem>
  352. <para>The Target name field is automatically filled in with the
  353. selected file. <figure>
  354. <title>Spray Fixed dialog</title>
  355. <mediaobject>
  356. <imageobject>
  357. <imagedata fileref="images/LZimg002.jpg"
  358. vendor="eclwatchSS" />
  359. </imageobject>
  360. </mediaobject>
  361. </figure></para>
  362. </listitem>
  363. <listitem>
  364. <para>Choose the mythor cluster from the <emphasis
  365. role="bold">Group</emphasis> drop list.</para>
  366. </listitem>
  367. <listitem>
  368. <para>Fill in the <emphasis role="bold">Record Length</emphasis>
  369. (124).</para>
  370. </listitem>
  371. <listitem>
  372. <para>Fill in the <emphasis role="bold">Target Scope</emphasis>
  373. using the naming convention described earlier: <emphasis
  374. role="bold">tutorial::</emphasis><emphasis
  375. role="bold">YN</emphasis> (remember, <emphasis
  376. role="bold">YN</emphasis> are your initials).</para>
  377. </listitem>
  378. <listitem>
  379. <?dbfo keep-together="always"?>
  380. <para>Make sure the <emphasis
  381. role="bold">Replicate</emphasis><emphasis role="bold">
  382. </emphasis>box is checked.</para>
  383. <para><emphasis role="bold">Note:</emphasis> This option is only
  384. available on systems where replication has been enabled.</para>
  385. </listitem>
  386. <listitem>
  387. <para>Press the <emphasis role="bold">Spray<emphasis role="bold">
  388. </emphasis></emphasis>button.</para>
  389. </listitem>
  390. <listitem>
  391. <?dbfo keep-together="always"?>
  392. <para>The workunit details page displays. You can view the
  393. progress of the spray.</para>
  394. <para><figure>
  395. <title>View Progress</title>
  396. <mediaobject>
  397. <imageobject>
  398. <imagedata fileref="images/DTimg02.jpg"
  399. vendor="eclwatchSS" />
  400. </imageobject>
  401. </mediaobject>
  402. </figure></para>
  403. <para>Once the spray is complete, we can proceed.</para>
  404. </listitem>
  405. </orderedlist>
  406. </sect2>
  407. </sect1>
  408. <sect1 id="Begin_Coding">
  409. <title>Begin Coding</title>
  410. <para>In this portion of the tutorial, we will write ECL code to define
  411. the data file and execute simple queries on it so we can evaluate it and
  412. determine any necessary pre-processing.</para>
  413. <orderedlist>
  414. <listitem>
  415. <para>Start the ECL IDE (Start &gt;&gt; All Programs &gt;&gt; HPCC
  416. Systems &gt;&gt; ECL IDE )</para>
  417. </listitem>
  418. <listitem>
  419. <para>Log in to your environment</para>
  420. </listitem>
  421. <listitem>
  422. <?dbfo keep-together="always"?>
  423. <para>Right-click on the <emphasis role="bold">My Files</emphasis>
  424. folder in the Repository window, and select <emphasis
  425. role="bold">Insert Folder</emphasis> from the pop-up menu.</para>
  426. <para><figure>
  427. <title>Insert Folder</title>
  428. <mediaobject>
  429. <imageobject>
  430. <imagedata fileref="images/DTimg04.jpg" />
  431. </imageobject>
  432. </mediaobject>
  433. </figure></para>
  434. <para>For purposes of this tutorial, let’s create a folder called
  435. <emphasis role="bold">Tutorial</emphasis><emphasis
  436. role="bold">YourName</emphasis><emphasis> </emphasis>(where
  437. <emphasis>YourName</emphasis> is your name).</para>
  438. </listitem>
  439. <listitem>
  440. <?dbfo keep-together="always"?>
  441. <para>Enter <emphasis role="bold">Tutorial</emphasis><emphasis
  442. role="bold">YourName</emphasis>(where <emphasis>YourName</emphasis>
  443. is your name)<emphasis> </emphasis>for the label, then press the OK
  444. button.</para>
  445. <para><figure>
  446. <title>Enter Folder Label</title>
  447. <mediaobject>
  448. <imageobject>
  449. <imagedata fileref="images/DTimg05.jpg" />
  450. </imageobject>
  451. </mediaobject>
  452. </figure></para>
  453. </listitem>
  454. <listitem>
  455. <para>Right-click on the <emphasis
  456. role="bold">Tutorial</emphasis><emphasis
  457. role="bold">YourName</emphasis>Folder, and select <emphasis
  458. role="bold">Insert File</emphasis> from the pop-up menu.</para>
  459. </listitem>
  460. <listitem>
  461. <?dbfo keep-together="always"?>
  462. <para>Enter <emphasis role="bold">Layout_People</emphasis> for the
  463. label, then press the OK button.</para>
  464. <para><figure>
  465. <title>Insert File</title>
  466. <mediaobject>
  467. <imageobject>
  468. <imagedata fileref="images/DTimg06.jpg" />
  469. </imageobject>
  470. </mediaobject>
  471. </figure></para>
  472. <para>A Builder Window opens.</para>
  473. <para><figure>
  474. <title>Layout People in Builder</title>
  475. <mediaobject>
  476. <imageobject>
  477. <imagedata fileref="images/DTimg07.jpg" />
  478. </imageobject>
  479. </mediaobject>
  480. </figure></para>
  481. <para>Notice that some text has been written for you in the window.
  482. This helps you to remember that the name of the file (Layout_People)
  483. <emphasis>must always exactly match</emphasis> the name of the
  484. single EXPORT definition (Layout_People) contained in that file.
  485. This is a requirement -- one EXPORT definition per file, and its
  486. name must match the filename.</para>
  487. </listitem>
  488. <listitem>
  489. <?dbfo keep-together="always"?>
  490. <para>Write the following code in the Builder workspace:</para>
  491. <para><programlisting>EXPORT Layout_People := RECORD
  492. STRING15 FirstName;
  493. STRING25 LastName;
  494. STRING15 MiddleName;
  495. STRING5 Zip;
  496. STRING42 Street;
  497. STRING20 City;
  498. STRING2 State;
  499. END; </programlisting> <figure>
  500. <title>Code in Builder Window</title>
  501. <mediaobject>
  502. <imageobject>
  503. <imagedata fileref="images/DTimg08.jpg" />
  504. </imageobject>
  505. </mediaobject>
  506. </figure></para>
  507. </listitem>
  508. <listitem>
  509. <para>Press the syntax check button on the main toolbar (or press
  510. F7).</para>
  511. <para>It is always a good idea to check syntax before
  512. submitting.</para>
  513. <para><figure>
  514. <title>Check Syntax</title>
  515. <mediaobject>
  516. <imageobject>
  517. <imagedata fileref="images/DTimg23.jpg" />
  518. </imageobject>
  519. </mediaobject>
  520. </figure></para>
  521. <para>This file defines the record structure for the data file.
  522. Next, we will examine the data.</para>
  523. </listitem>
  524. </orderedlist>
  525. <sect2 id="Examine_the_Data" role="brk">
  526. <title>Examine the Data</title>
  527. <para>In this section, we will look at the data and determine if there
  528. is any pre-processing we want to perform on the data. This is the step
  529. in the development process where we convert the raw data into a form
  530. we can use.</para>
  531. <orderedlist>
  532. <listitem>
  533. <para>Right-click on the <emphasis
  534. role="bold">Tutorial</emphasis><emphasis role="bold">YourName
  535. </emphasis>Folder, and select <emphasis role="bold">Insert
  536. File</emphasis> from the pop-up menu.</para>
  537. </listitem>
  538. <listitem>
  539. <para>Enter <emphasis role="bold">File_OriginalPerson</emphasis>
  540. for the label, then press the OK button.</para>
  541. <para><figure>
  542. <title>Insert File</title>
  543. <mediaobject>
  544. <imageobject>
  545. <imagedata fileref="images/DTimg09.jpg" />
  546. </imageobject>
  547. </mediaobject>
  548. </figure>A Builder Window opens.</para>
  549. </listitem>
  550. <listitem>
  551. <para>Write the following code (remember to replace
  552. <emphasis>YN</emphasis> with your initials):</para>
  553. <para><programlisting>IMPORT TutorialYourName;
  554. EXPORT File_OriginalPerson :=
  555. DATASET('~tutorial::YN::OriginalPerson',TutorialYourName.Layout_People,THOR);
  556. </programlisting></para>
  557. <para><figure>
  558. <title>File_OriginalPerson.ecl</title>
  559. <mediaobject>
  560. <imageobject>
  561. <imagedata fileref="images/DTimg10.jpg" />
  562. </imageobject>
  563. </mediaobject>
  564. </figure></para>
  565. </listitem>
  566. <listitem>
  567. <para>Press the syntax check button on the main toolbar (or press
  568. F7) to check the syntax.</para>
  569. <para>This defines the Dataset. Next, we will examine the
  570. data.</para>
  571. </listitem>
  572. <listitem>
  573. <para>Open a new Builder Window (CTRL+N) and write the following
  574. code (remember to replace <emphasis>YourName </emphasis>with your
  575. name):</para>
  576. <programlisting>IMPORT TutorialYourName;
  577. COUNT(TutorialYourName.File_OriginalPerson);
  578. </programlisting>
  579. </listitem>
  580. <listitem>
  581. <para>Press the syntax check button on the main toolbar (or press
  582. F7) to check the syntax.</para>
  583. </listitem>
  584. <listitem>
  585. <?dbfo keep-together="always"?>
  586. <para>Make sure the selected cluster is your Thor cluster, then
  587. press the <emphasis role="bold">Submit</emphasis> button. Note
  588. that your target cluster might have a different name.</para>
  589. <para><figure>
  590. <title>Target Thor</title>
  591. <mediaobject>
  592. <imageobject>
  593. <imagedata fileref="images/DTimg11.jpg" />
  594. </imageobject>
  595. </mediaobject>
  596. </figure></para>
  597. </listitem>
  598. <listitem>
  599. <para>When the Workunit completes, it displays a green checkmark
  600. <inlinegraphic fileref="images/DT173-15.jpg" />.</para>
  601. </listitem>
  602. <listitem>
  603. <para>Select the Workunit tab (the one with the number next to the
  604. checkmark) and select the <emphasis role="bold">Result
  605. 1</emphasis> tab (it may already be selected).</para>
  606. <para><figure>
  607. <title>Result tab</title>
  608. <mediaobject>
  609. <imageobject>
  610. <imagedata fileref="images/DT173-16.png" />
  611. </imageobject>
  612. </mediaobject>
  613. </figure>This shows us that there are 841,400 records in the
  614. data file.</para>
  615. </listitem>
  616. <listitem>
  617. <para>Select the Builder tab and change COUNT to OUTPUT, as shown
  618. below:</para>
  619. <para><programlisting>IMPORT TutorialYourName;
  620. <emphasis role="bold">OUTPUT</emphasis>(TutorialYourName.File_OriginalPerson);</programlisting></para>
  621. <para><emphasis role="bold">Note: </emphasis>The modified portion
  622. is shown in <emphasis role="bold">bold</emphasis>.</para>
  623. <para></para>
  624. </listitem>
  625. <listitem>
  626. <para>Check the syntax, if no errors, press the <emphasis
  627. role="bold">Submit</emphasis> button.</para>
  628. </listitem>
  629. <listitem>
  630. <?dbfo keep-together="always"?>
  631. <para>When it completes, select the Workunit tab, then select the
  632. <emphasis role="bold">Result 1</emphasis> tab.</para>
  633. <para><figure>
  634. <title>Output Results</title>
  635. <mediaobject>
  636. <imageobject>
  637. <imagedata fileref="images/DT173-17.png" />
  638. </imageobject>
  639. </mediaobject>
  640. </figure></para>
  641. <para>Notice the names are in mixed case.</para>
  642. <para>For our purposes, it will be easier to have all the names in
  643. all uppercase. This demonstrates one of the steps in the basic
  644. process of preparing data (Extract, Transform, and Load—ETL) using
  645. ECL.</para>
  646. </listitem>
  647. <listitem>
  648. <para>Close the Builder Window.</para>
  649. </listitem>
  650. </orderedlist>
  651. </sect2>
  652. <sect2 id="Process_the_Data" role="brk">
  653. <title>Process the Data</title>
  654. <para>In this section, we will write code to convert the original data
  655. so that all names are in uppercase. We will then write this new file
  656. to our Thor cluster.</para>
  657. <orderedlist>
  658. <listitem>
  659. <para>Right-click on the <emphasis
  660. role="bold">Tutorial</emphasis><emphasis role="bold">YourName
  661. </emphasis>Folder, and select Insert File from the pop-up
  662. menu.</para>
  663. </listitem>
  664. <listitem>
  665. <para>Name this one <emphasis
  666. role="bold">BWR_ProcessRawData</emphasis> and write the following
  667. code (changing YN and YourName as before):</para>
  668. <para><programlisting>IMPORT TutorialYourName, Std;
  669. TutorialYourName.Layout_People toUpperPlease(TutorialYourName.Layout_People pInput)
  670. := TRANSFORM
  671. SELF.FirstName := Std.Str.ToUpperCase(pInput.FirstName);
  672. SELF.LastName := Std.Str.ToUpperCase(pInput.LastName);
  673. SELF.MiddleName := Std.Str.ToUpperCase(pInput.MiddleName);
  674. SELF.Zip := pInput.Zip;
  675. SELF.Street := pInput.Street;
  676. SELF.City := pInput.City;
  677. SELF.State := pInput.State;
  678. END ;
  679. OrigDataset := TutorialYourName.File_OriginalPerson;
  680. UpperedDataset := PROJECT(OrigDataset,toUpperPlease(LEFT));
  681. OUTPUT(UpperedDataset,,'~tutorial::YN::TutorialPerson',OVERWRITE);
  682. </programlisting></para>
  683. </listitem>
  684. <listitem>
  685. <para>Check the syntax, if no errors press the <emphasis
  686. role="bold">Submit</emphasis> button.</para>
  687. </listitem>
  688. <listitem>
  689. <para>When it completes, select the Workunit tab, then select the
  690. Result 1 tab.</para>
  691. <para><figure>
  692. <title>Process Result</title>
  693. <mediaobject>
  694. <imageobject>
  695. <imagedata fileref="images/DT173-18.jpg" />
  696. </imageobject>
  697. </mediaobject>
  698. </figure></para>
  699. <para>The results show that the process has successfully converted
  700. the name fields to uppercase.</para>
  701. </listitem>
  702. <listitem>
  703. <para>After you examine the results, close the Builder
  704. window.</para>
  705. </listitem>
  706. </orderedlist>
  707. </sect2>
  708. <sect2 id="Using_our_Data">
  709. <title>Using our New Data</title>
  710. <para></para>
  711. <para>Now that we have our data in a useful format and the file is in
  712. place, we can write more code to use the new data file. We will
  713. determine the indexes we will need and create them. For this tutorial,
  714. let’s assume the field we need to index is the Zip code field.</para>
  715. <para></para>
  716. <para>In the DATASET definition, we will add a virtual field to the
  717. RECORD structure for the fileposition. This is required for
  718. indexes.</para>
  719. <para></para>
  720. <orderedlist>
  721. <listitem>
  722. <para>Insert a File into the <emphasis
  723. role="bold">Tutorial</emphasis><emphasis
  724. role="bold">YourName</emphasis><emphasis role="bold">
  725. </emphasis>Folder. Name it <emphasis role="bold">
  726. File_TutorialPerson </emphasis>and write this code (changing
  727. <emphasis>YN </emphasis>to your initials):</para>
  728. <para></para>
  729. <para><programlisting>IMPORT TutorialYourName;
  730. EXPORT File_TutorialPerson :=
  731. DATASET('~tutorial::YN::TutorialPerson',
  732. {TutorialYourName.Layout_People,
  733. UNSIGNED8 fpos {virtual(fileposition)}},THOR);
  734. </programlisting></para>
  735. </listitem>
  736. <listitem>
  737. <para>Check the syntax, if no errors press the <emphasis
  738. role="bold">Submit</emphasis> button.</para>
  739. </listitem>
  740. <listitem>
  741. <para>When it completes, it displays a green checkmark
  742. <inlinegraphic fileref="images/DT173-15.jpg" />.</para>
  743. </listitem>
  744. </orderedlist>
  745. </sect2>
  746. <sect2 id="Index_the_Data">
  747. <title>Index the Data</title>
  748. <para>Next, we will define the INDEX.</para>
  749. <orderedlist>
  750. <listitem>
  751. <para>Insert a File into your Tutorial Folder. Name it <emphasis
  752. role="bold">IDX_PeopleByZip</emphasis><emphasis role="bold">
  753. </emphasis>and write this code (changing <emphasis>YN</emphasis>
  754. and <emphasis>YourName</emphasis> as before):</para>
  755. <para><programlisting>IMPORT TutorialYourName;
  756. EXPORT IDX_PeopleByZIP :=
  757. INDEX(TutorialYourName.File_TutorialPerson,{zip,fpos},'~tutorial::YN::PeopleByZipINDEX');
  758. </programlisting></para>
  759. </listitem>
  760. <listitem>
  761. <para>Check the syntax.</para>
  762. <para>Next, we will build the index file.</para>
  763. </listitem>
  764. <listitem>
  765. <para>Insert a File into the <emphasis
  766. role="bold">Tutorial</emphasis><emphasis
  767. role="bold">YourName</emphasis><emphasis role="bold">
  768. </emphasis>Folder and name it <emphasis
  769. role="bold">BWR_BuildPeopleByZip </emphasis>and write this code
  770. (replacing <emphasis>YourName</emphasis> with your name):</para>
  771. <para><programlisting>IMPORT TutorialYourName;
  772. BUILDINDEX(TutorialYourName.IDX_PeopleByZIP,OVERWRITE);
  773. </programlisting></para>
  774. </listitem>
  775. <listitem>
  776. <para>Check the syntax and if there are no errors, press the
  777. <emphasis role="bold">Submit</emphasis> button.</para>
  778. </listitem>
  779. <listitem>
  780. <para>Wait for the Workunit to complete, then close the Builder
  781. Window.</para>
  782. </listitem>
  783. </orderedlist>
  784. </sect2>
  785. <sect2 id="Query_the_Data">
  786. <title>Build a Query</title>
  787. <para>Now that we have an index file, we will write a query that uses
  788. it.</para>
  789. <orderedlist>
  790. <listitem>
  791. <para>Insert a File into your Tutorial Folder. Name it <emphasis
  792. role="bold">BWR_FetchPeopleByZip </emphasis>and write this code
  793. (changing <emphasis>YourName</emphasis> as before):</para>
  794. <para><programlisting>IMPORT TutorialYourName;
  795. ZipFilter :='33024';
  796. FetchPeopleByZip :=
  797. FETCH(TutorialYourName.File_TutorialPerson,
  798. TutorialYourName.IDX_PeopleByZIP(zip=ZipFilter),
  799. RIGHT.fpos);
  800. OUTPUT(FetchPeopleByZip);
  801. </programlisting></para>
  802. </listitem>
  803. <listitem>
  804. <para>Check the syntax and if there are no errors, press the
  805. <emphasis role="bold">Submit</emphasis> button.</para>
  806. </listitem>
  807. <listitem>
  808. <para>When it completes, select the Workunit<emphasis role="bold">
  809. </emphasis>tab, then select the <emphasis
  810. role="bold">Result</emphasis> tab.</para>
  811. </listitem>
  812. <listitem>
  813. <para>Examine the result, then close the Builder window and
  814. resubmit the code.</para>
  815. <para><emphasis role="bold">Note</emphasis>: You can change the
  816. value of the <emphasis role="bold">ZipValue</emphasis> field to
  817. get results from different Zip codes.</para>
  818. </listitem>
  819. </orderedlist>
  820. </sect2>
  821. </sect1>
  822. <sect1 id="Publishing_your_Query">
  823. <title>Publishing your Thor Query</title>
  824. <para>Now that we have created an indexed query, the next step is to
  825. enable access to it through a Web interface.</para>
  826. <para>Our STORED variables provide a means to pass values as query
  827. parameters. In this example, the user can supply the ZIP code so the
  828. results are people from that ZIP code.</para>
  829. <orderedlist>
  830. <listitem>
  831. <para>Insert a File into the <emphasis role="bold">TutorialYourName
  832. </emphasis>Folder and name it <emphasis
  833. role="bold">FetchPeopleByZipService</emphasis></para>
  834. </listitem>
  835. <listitem>
  836. <para>Write this code (changing <emphasis>YourName</emphasis> as
  837. before):</para>
  838. <para><programlisting>IMPORT TutorialYourName;
  839. STRING10 ZipFilter := '' :STORED('ZIPValue');
  840. resultSet :=
  841. FETCH(TutorialYourName.File_TutorialPerson,
  842. TutorialYourName.IDX_PeopleByZIP(zip=ZipFilter),
  843. RIGHT.fpos);
  844. OUTPUT(resultset);
  845. </programlisting></para>
  846. </listitem>
  847. <listitem>
  848. <para>Check the syntax, and save the file.</para>
  849. </listitem>
  850. <listitem>
  851. <para>Press the <emphasis role="bold">Submit</emphasis><emphasis
  852. role="bold"> </emphasis>button.</para>
  853. </listitem>
  854. <listitem>
  855. <para>When the workunit completes, select the Workunit<emphasis
  856. role="bold"> </emphasis>tab, then select the ECL Watch tab.</para>
  857. </listitem>
  858. <listitem>
  859. <para>Press the <emphasis role="bold">Publish</emphasis> button, on
  860. the ECL Watch tab.</para>
  861. <para><figure>
  862. <title>Publish Workunit</title>
  863. <mediaobject>
  864. <imageobject>
  865. <imagedata fileref="images/DTimg12.jpg" />
  866. </imageobject>
  867. </mediaobject>
  868. </figure></para>
  869. <para>The Publish dialog displays, with the Job Name field
  870. automatically filled in. You can add a comment in the Comment field
  871. if you wish, then press Submit. <figure>
  872. <title>Publish Dialog</title>
  873. <mediaobject>
  874. <imageobject>
  875. <imagedata fileref="images/DTimg12b.jpg" />
  876. </imageobject>
  877. </mediaobject>
  878. </figure></para>
  879. </listitem>
  880. <listitem>
  881. <para>If there are no error messages, the workunit is published.
  882. Leave the builder window open, you will need it again later.</para>
  883. </listitem>
  884. </orderedlist>
  885. <sect2 id="Execute-using-the-Data-Delivery-Engine">
  886. <title>Execute using WsECL</title>
  887. <para>Now that the query is published, we can run it using the WsECL
  888. Web service. WsECL provides a Web-based interface to your published
  889. query. It also automatically creates an entry form to execute the
  890. query.</para>
  891. <para>Using the following URL:</para>
  892. <para><emphasis role="bold">http://nnn.nnn.nnn.nnn:pppp (where
  893. nnn.nnn.nnn.nnn is your ESP Server’s IP address and pppp is the port.
  894. Default port is 8002)</emphasis></para>
  895. <para><figure>
  896. <title>WsECL</title>
  897. <mediaobject>
  898. <imageobject>
  899. <imagedata fileref="images/DTimg13.jpg" />
  900. </imageobject>
  901. </mediaobject>
  902. </figure></para>
  903. <para></para>
  904. <orderedlist>
  905. <listitem>
  906. <para>Click on the + sign next to <emphasis
  907. role="bold">thor</emphasis> to expand the tree.</para>
  908. </listitem>
  909. <listitem>
  910. <?dbfo keep-together="always"?>
  911. <para>Click on the <emphasis
  912. role="bold">fetchpeoplebyzipservice</emphasis> hyperlink.</para>
  913. <para>The form for the service displays.</para>
  914. <para><figure>
  915. <title>Service Form</title>
  916. <mediaobject>
  917. <imageobject>
  918. <imagedata fileref="images/DTimg14a.jpg" />
  919. </imageobject>
  920. </mediaobject>
  921. </figure></para>
  922. </listitem>
  923. <listitem>
  924. <para>Provide a zip code (e.g., 33024) in the <emphasis
  925. role="bold">zipvalue</emphasis> field. Select <emphasis
  926. role="bold">Output Tables</emphasis> from the drop list, then
  927. press the <emphasis role="bold">Submit</emphasis> button.</para>
  928. <para>The results display.</para>
  929. <para><figure>
  930. <title>Results</title>
  931. <mediaobject>
  932. <imageobject>
  933. <imagedata fileref="images/DTimg15a.jpg" />
  934. </imageobject>
  935. </mediaobject>
  936. </figure></para>
  937. </listitem>
  938. </orderedlist>
  939. </sect2>
  940. </sect1>
  941. <sect1 id="Deploy_the_Roxie_Query">
  942. <title>Compile and Publish the Roxie Query</title>
  943. <para>The final step in this process is to publish the indexed query to
  944. a Rapid Data Delivery Engine (Roxie) Cluster.</para>
  945. <para>We will recompile the code with Roxie as the target cluster, then
  946. publish it to a Roxie cluster. <orderedlist>
  947. <listitem>
  948. <para>In the ECL IDE, select the Builder tab on the
  949. FetchPeopleByZipService file builder window.</para>
  950. </listitem>
  951. <listitem>
  952. <para>Using the <emphasis role="bold">Target</emphasis> drop list,
  953. select Roxie as the Target cluster.</para>
  954. <para><figure>
  955. <title>Target Roxie</title>
  956. <mediaobject>
  957. <imageobject>
  958. <imagedata fileref="images/DTimg16.jpg" />
  959. </imageobject>
  960. </mediaobject>
  961. </figure></para>
  962. </listitem>
  963. <listitem>
  964. <para>In the Builder window, in the upper left corner the
  965. <emphasis role="bold">Submit</emphasis> button has a drop down
  966. arrow next to it. Select the arrow to expose the <emphasis
  967. role="bold">Compile</emphasis> option.</para>
  968. <figure>
  969. <title>Compile</title>
  970. <mediaobject>
  971. <imageobject>
  972. <imagedata fileref="images/DTimg17.jpg" />
  973. </imageobject>
  974. </mediaobject>
  975. </figure>
  976. </listitem>
  977. <listitem>
  978. <para>Select <emphasis role="bold">Compile</emphasis></para>
  979. </listitem>
  980. <listitem>
  981. <?dbfo keep-together="always"?>
  982. <para>When the workunit finishes, it will display a green circle
  983. indicating it has compiled.</para>
  984. <para><figure>
  985. <title>Compiled</title>
  986. <mediaobject>
  987. <imageobject>
  988. <imagedata fileref="images/DTimg18.jpg" />
  989. </imageobject>
  990. </mediaobject>
  991. </figure></para>
  992. </listitem>
  993. </orderedlist></para>
  994. <sect2 id="Deploy_the_Query_to_Roxie">
  995. <title>Publish the Roxie query</title>
  996. <para>Next we will publish the query to a Roxie Cluster.</para>
  997. <orderedlist>
  998. <listitem>
  999. <para>Select the workunit tab for the FetchPeopleByZipService that
  1000. you just compiled.</para>
  1001. <para>This opens the workunit in an ECL Watch tab.</para>
  1002. </listitem>
  1003. <listitem>
  1004. <?dbfo keep-together="always"?>
  1005. <para>Press the <emphasis role="bold">Publish</emphasis> action
  1006. button, then verify the information in the dialog and press
  1007. <emphasis role="bold">Submit</emphasis>.</para>
  1008. <para><figure>
  1009. <title>Publish Query</title>
  1010. <mediaobject>
  1011. <imageobject>
  1012. <imagedata fileref="images/DTimg19.jpg" />
  1013. </imageobject>
  1014. </mediaobject>
  1015. </figure>This publishes the query.</para>
  1016. </listitem>
  1017. </orderedlist>
  1018. </sect2>
  1019. <sect2 id="Run_the_Roxie_Query" role="brk">
  1020. <title>Run the Roxie Query in WsECL</title>
  1021. <para>Now that the query is deployed to a Roxie cluster, we can run it
  1022. using the WS-ECL service Using the following URL:</para>
  1023. <para><emphasis role="bold">http://nnn.nnn.nnn.nnn:pppp (where
  1024. nnn.nnn.nnn.nnn is your ESP Server’s IP address and pppp is the port.
  1025. The default port is 8002)</emphasis></para>
  1026. <orderedlist>
  1027. <listitem>
  1028. <para>Click on the + sign next to <emphasis
  1029. role="bold">myroxie</emphasis> to expand the tree.</para>
  1030. </listitem>
  1031. <listitem>
  1032. <?dbfo keep-together="always"?>
  1033. <para>Click on the <emphasis
  1034. role="bold">fetchpeoplebyzipservice</emphasis> hyperlink.</para>
  1035. <para>The form for the service displays.</para>
  1036. <para><figure>
  1037. <title>RoxieECL</title>
  1038. <mediaobject>
  1039. <imageobject>
  1040. <imagedata fileref="images/DTimg21.jpg" />
  1041. </imageobject>
  1042. </mediaobject>
  1043. </figure></para>
  1044. </listitem>
  1045. <listitem>
  1046. <?dbfo keep-together="always"?>
  1047. <para>Provide a zip code (e.g., 33024), select <emphasis
  1048. role="bold">Output Tables</emphasis> from the drop list, and press
  1049. the Submit button.</para>
  1050. <para>The results display.</para>
  1051. <para><figure>
  1052. <title>RoxieResults</title>
  1053. <mediaobject>
  1054. <imageobject>
  1055. <imagedata fileref="images/DTimg22.jpg" />
  1056. </imageobject>
  1057. </mediaobject>
  1058. </figure></para>
  1059. </listitem>
  1060. </orderedlist>
  1061. </sect2>
  1062. </sect1>
  1063. </chapter>
  1064. <chapter id="Summary">
  1065. <title>Summary</title>
  1066. <para>Now that you have successfully processed raw data, sprayed it onto a
  1067. cluster, and deployed it to a RDDE cluster, what’s next?</para>
  1068. <!-- -->
  1069. <para>Here is a short list of suggestions on the path you might take from
  1070. here:</para>
  1071. <itemizedlist mark="bullet">
  1072. <listitem>
  1073. <para>Create indexes on other fields and create queries using
  1074. them.</para>
  1075. </listitem>
  1076. </itemizedlist>
  1077. <itemizedlist mark="bullet">
  1078. <listitem>
  1079. <para>Write client applications to access your queries using JSON or
  1080. SOAP interfaces.</para>
  1081. </listitem>
  1082. </itemizedlist>
  1083. <itemizedlist mark="bullet">
  1084. <listitem>
  1085. <para>Looks at the resources available on the Links tab</para>
  1086. <para><figure>
  1087. <title>Links</title>
  1088. <mediaobject>
  1089. <imageobject>
  1090. <imagedata fileref="images/DTimg24.jpg" />
  1091. </imageobject>
  1092. </mediaobject>
  1093. </figure>The Links tab provides easy access to a form, a Sample
  1094. Request, a Sample Response, the WSDL, the XML Schema (XSD) and
  1095. more...</para>
  1096. </listitem>
  1097. </itemizedlist>
  1098. <itemizedlist mark="bullet">
  1099. <listitem>
  1100. <para>Follow the procedures in this tutorial using your own
  1101. data!</para>
  1102. </listitem>
  1103. </itemizedlist>
  1104. </chapter>
  1105. </book>