home *** CD-ROM | disk | FTP | other *** search
/ ftp.robelle3000.ai 2014 / 2014.06.ftp.robelle3000.ai.tar / ftp.robelle3000.ai / newsletter / 2000 / w2000-02.txt < prev    next >
Text File  |  2000-04-23  |  28KB  |  715 lines

  1. What's Up, DOCumentation?
  2.  
  3.  
  4.  
  5.        Robelle Consulting Ltd.
  6.        Unit 201, 15399-102A Ave.
  7.        Surrey, B.C.  Canada  V3R 7K1
  8.        Toll-free:    1-888-ROBELLE
  9.                     (1-888-762-3553)
  10.        Phone:       (604) 582-1700
  11.        Fax:         (604) 582-1799
  12.        E-mail: support@robelle.com
  13.        Web: www.robelle.com
  14.  
  15. Date:  April 2000
  16.  
  17. From:  Robert M. Green, CEO
  18.        David J. Greer, President
  19.        Jennifer Franklin, Editor pro tem
  20.  
  21. To:    Users of Robelle Software
  22.  
  23. Re:    News of the HP 3000 and of HP-UX, 2000 #2
  24.  
  25.     What You Will Find in This News Memo:
  26.  
  27.        New Technology Empowers Qedit for Windows Users
  28.        Introducing Suprtool 4.3
  29.        Calculating the Difference Between Any Two Dates
  30.        Robelle's Web-Enabling Think Tank
  31.        The HP e3000 Is Reality, Not Hype
  32.        Tired of the Command Interpreter? Drop It!
  33.        Upcoming Events In 2000
  34.        Inventory Reduction Sale
  35.        New Web Site for Robelle Distributor in Australia
  36.        Speed Demon Saves Hours in Only Fifteen Minutes
  37.        Adding A Sequential Number to A Data File
  38.        Using Regular Expression to Create HTML Headings
  39.        Whose Line Is It Anyway?
  40.        This Newsletter Available by E-mail
  41.  
  42. New Technology Empowers Qedit for Windows Users
  43. ===============================================
  44.  
  45. System Commands and the Qedit Scripting Language Provides Users with a
  46. Highly Integrated and Customizable Solution
  47.  
  48. The ability to execute HP host system commands from within the Qedit for
  49. Windows client has been the most popular customer request, echoing a
  50. longtime favorite of Qedit for HP e3000 and HP-UX users. This powerful
  51. functionality provides a Windows development environment that is
  52. strongly integrated with users' HP systems. For example, host commands
  53. such as Listf or Showjob can be executed and controlled directly from
  54. the Qedit client, with results appearing in the host command dialog box.
  55. There is no need to switch back and forth from the editor to the MPE or
  56. HP-UX session. Similarly, developers can write or modify source code and
  57. then compile their programs directly from the Qedit client. Compile
  58. error messages will appear in the dialog box for convenient fixing.
  59.  
  60. Not to be overshadowed by host commands, the Qedit Scripting Language
  61. (QSL) will also be released in Qedit for Windows Version 4.9. QSL allows
  62. users to control the powerful underlying Qedit file objects and file
  63. operations. This means that any repetitive task that has an editing or
  64. program development component can be automated with a Qedit script.
  65. Users can create their own scripts for custom editing needs or simply
  66. invoke scripts that have been set up for them to facilitate
  67. organizational procedures. What's more, scripts can be invoked in
  68. real-time or scheduled for batch execution. Says David Greer, president
  69. of Robelle and lead software architect, "This innovative new technology
  70. offers a level of customization and process automation above and beyond
  71. anything found in other Windows editors."
  72.  
  73. Used in concert, these huge advancements in Qedit for Windows equal a
  74. sum greater than their parts in allowing users to invoke host commands
  75. through scripting. For example, contributed Qedit scripts such as "COBOL
  76. Compile" or "C Compile" invoke the HP compiler on the e3000 or HP-UX and
  77. return the results to the host commands dialog box for further
  78. processing.
  79.  
  80. To help you get started with QSL, a library of contributed scripts will
  81. be included with the new release. Also, a collection of scripts will be
  82. available on the Robelle website at
  83.  
  84.     http://www.robelle.com/support/qwin/scripts/
  85.  
  86. In addition to the regular Qedit for Windows user manual, an additional
  87. QSL user manual will be distributed with the new version. Finally,
  88. Robelle Technical Support is available to help users get started with
  89. scripting. Please do not hesitate to contact Tech Support at
  90. 1-888-ROBELLE.
  91.  
  92. How Do I Get the Latest Version?
  93.  
  94. Supported customers will need versions 4.9 of the Qedit Server Module
  95. and the Qedit client. Please contact Robelle to request this latest
  96. upgrade. If you are not already licensed for Qedit for Windows and would
  97. like to try it, free thirty-day demos are available at
  98.  
  99.     http://www.robelle.com/products/qwin/info.html
  100.  
  101. [Nicky Gunther]
  102.  
  103.  
  104. Introducing Suprtool 4.3
  105. ========================
  106.  
  107. Highlights Include Variable Substitution and Support for Large Files in
  108. MPE 6.5
  109.  
  110. Suprtool 4.3 will hit the desks of supported North American customers at
  111. the beginning of May (overseas customers can expect their update about a
  112. month later). With the release of MPE 6.5, HP e3000 customers will enjoy
  113. a huge increase in the filesize capacity of the e3000. Robelle's
  114. technical team has been working closely with Hewlett-Packard and the
  115. AMISYS healthcare application vendor, HBOC Payor Solutions Group, to
  116. make Suprtool compatible with much bigger files. Specifically, the
  117. capabilities of Suprtool have been increased from the old limit of 4 GB
  118. to the greatly expanded limit of 128 GB - an order of 32 times.
  119. Similarly, on HP-UX, the new Suprtool release offers support for bigger
  120. filesizes for all three modules of Suprtool/UX: Suprtool, Suprlink, and
  121. STExport. Each of these modules can now support files that contain up to
  122. 2.1 billion records.
  123.  
  124. Many Suprtool users will be happy to hear that the second major
  125. enhancement in Suprtool 4.3 is "variable substitution" thus closing one
  126. of the most popular enhancement requests ever submitted for Suprtool.
  127. Variable substitution allows the use of CI variables directly inside
  128. Suprtool, Suprlink, and STExport, eliminating the need to define
  129. temporary use files to handle these tasks.
  130.  
  131. Additionally, this year's release incorporates more arithmetic functions
  132. on numeric data types. For example, Suprtool now allows you to truncate
  133. numbers instead of rounding. Suprtool will also compute the absolute
  134. value of a number.
  135.  
  136. To finalize Suprtool's date functionality, PHDate and Julian Day Number
  137. have been added to the list of supported date types. With Julian Day
  138. support and the $DAYS command, Suprtool can now compute the number of
  139. days between any two dates.
  140.  
  141. [Nicky Gunther]
  142.  
  143.  
  144. Calculating the Difference Between Any Two Dates
  145. ================================================
  146.  
  147. Suprtool now has the ability to select records based on the difference
  148. between two dates. The $DAYS function, available in Suprtool 4.3's IF
  149. and EXTRACT commands, converts a date to a number. By converting two
  150. dates to numbers, then subtracting one number from the other, you can
  151. get the number of days difference between the two dates.
  152.  
  153. Example: find the orders that shipped more than a week after ordering,
  154. and extract the order number and number of days it took to ship
  155.  
  156.     get      order-header
  157.     item     order-date,date,yyyymmdd
  158.     item     ship-date,date,yyyymmdd
  159.     if       $days(ship-date) - $days(order-date) > 7
  160.     extract  order-number
  161.     define   number-of-days,1,2,integer
  162.     extract  number-of-days = &
  163.              $days(ship-date) - $days(order-date)
  164.     ...
  165.  
  166. $DAYS converts any valid date to a Julian day number (the number of days
  167. since 4713 BC). If a date is not valid, $DAYS returns a zero instead of
  168. a Julian day number. Therefore it is important to be sure that the dates
  169. are valid, or your results may not be predictable. For example, in the
  170. example above, if an order has not yet been shipped, the SHIP-DATE field
  171. will probably be blank, zero, or some other special value. In that case
  172. the calculation will probably return a negative number. This may or may
  173. not deliver the desired result, depending on what you are trying to
  174. accomplish. To be sure of getting the right results, you need to ensure
  175. that the date fields have valid dates. The $INVALID function of the IF
  176. command can do this for you.
  177.  
  178. For example:
  179.  
  180.     if       not $invalid(ship-date) and &
  181.              not $invalid(order-date) and &
  182.              $days(ship-date) - $days(order-date) > 7
  183.  
  184. For more information, see the documentation that accompanies the
  185. Suprtool 4.3 update, or call us if you have any questions.
  186.  
  187. [Mike Shumko]
  188.  
  189.  
  190. Robelle's Web-Enabling Think Tank
  191. =================================
  192.  
  193. Traditionally, Robelle is known as a product or tools company. In fact,
  194. many customers use the word "Robelle" interchangeably with our product
  195. names, e.g. "We're installing Robelle tomorrow" versus "We're installing
  196. Qedit and Suprtool tomorrow."
  197.  
  198. In 2000, we're aiming to change this product- or tool-focused perception
  199. of Robelle to a whole solutions focus. We're working harder and digging
  200. deeper to uncover customer problems and striving to recommend the
  201. smartest solutions. Our solutions may be built on a variety of different
  202. hardware and software technologies, whatever combination makes the most
  203. sense in accomplishing a customer's unique objective. One of our
  204. strengths is knowing how to piece together - and, indeed, where to find
  205. - all the technology components and people resources required to solve a
  206. given IT problem. We are turning these skills toward the e-business
  207. arena with our new "Web-Enabling Think Tank", a free service to our
  208. customers until October 31st, 2000.
  209.  
  210. Our new Think Tank offer gives you access to Robelle's complete team of
  211. technical experts who will study the e-business challenges facing your
  212. company. Whatever your particular challenge may be, we promise to
  213. deliver to you three pieces of advice that will, in turn, help you
  214. deliver a smart solution to your company. Our aim is to give you
  215. down-to-earth trustworthy advice and use our think tank synergies to
  216. give you a head start. If you would like to submit a problem or
  217. challenge to the Robelle Think Tank, please visit
  218.  
  219.     http://www.robelle.com/couponbook/
  220.  
  221. For those of you who have already converted existing applications (or
  222. document publishing or report generation or...) to the
  223. Internet/Intranet, we'd love to hear your story and (with your
  224. permission) share it with other customers in upcoming issues of What's
  225. Up, DOCumentation? You can e-mail your story to us at
  226.  
  227.     solutions@robelle.com
  228.  
  229. [Nicky Gunther]
  230.  
  231.  
  232. The HP e3000 Is Reality, Not Hype
  233. =================================
  234.  
  235. By now you have heard that Hewlett-Packard has renamed the HP 3000 to
  236. the HP e3000. Some vendors make a habit of announcing new products long
  237. before they will be delivered (if ever). In this case, however, HP is
  238. just catching up with the 3000 customers and the enthusiastic 3000
  239. programmers.
  240.  
  241. Starting way back in 1995 (ancient history in Internet time), Mark
  242. Bixby, Mark Klein, Mike Yawn, Lars Appel, and many others ported the
  243. essential Internet and Web infrastructure to MPE/iX: GNU C++, DNS, Bind,
  244. Sendmail, Java, Perl, Apache, Java servlets, and Python.
  245.  
  246. HP 3000 customers were not slow in taking advantage of these tools.
  247.  
  248. For example, e3000 site PayMaxx offers web-based payroll services at
  249. www.paymaxx.com. Bigwords, another e3000 site, buys and sells textbooks
  250. at www.bigwords.com, and e3000 site Sunrider sells health products at
  251. www.sunrider.com. According to The 3000 News Wire, "Wired magazine
  252. recently named Wake Forest University as the most wired campus in the
  253. US, and SRN's Web-based 3000 solution is at the heart of the Wake Forest
  254. operations." And Information Week reports that eCandy.com plans to use
  255. the e3000 and the MACS order processing system (and our Suprtool)
  256. confident they can process up to 300,000 transactions a day.
  257.  
  258. With RSA working on SSL security for Apache/iX and with MPE/iX 6.5
  259. upgrading to Java 2 (actually version 1.2.2) plus JDBC and LDAP client
  260. capability, the e3000 is a platform you can apply in a number of
  261. interesting ways.
  262.  
  263. If you are just starting out with web-enabling, activate the Apache web
  264. server on your MPE/iX system and write some code to enable
  265. bi-directional browser access to all your internal users. Everything you
  266. need to know to get started is on HP's "Jazz" web site. As your
  267. experience and needs grow, add a standalone NT, HP-UX or LINUX web
  268. server and give your external customers, suppliers and colleagues access
  269. to your MPE/iX databases through ODBC.
  270.  
  271. Using Qedit for Windows as a development front-end, you can even use the
  272. Internet to easily maintain your e3000 web site from halfway across the
  273. globe. At Robelle we use web pages and Qedit to do project management
  274. for all our current projects. And with the powerful new scripting
  275. language and host-command feature to automate Internet tasks, perhaps we
  276. should rename it the "eQedit"?
  277.  
  278. Links:
  279.  
  280. 3000 News Wire on e3000:
  281.     http://www.3000newswire.com/subscribers/e-3000announce-0002.html
  282.  
  283. Information Week on e3000:
  284.     http://www.informationweek.com/773/hp.htm
  285.  
  286. Jazz, the Latest Internet Technology for e3000:
  287.     http://jazz.external.hp.com/
  288.  
  289. About PayMaxx:
  290.     http://www.businessservers.hp.com/solutions/internet/CSY000FP6.html
  291.  
  292. [Bob Green]
  293.  
  294.  
  295. Tired of the Command Interpreter? Drop It!
  296. ==========================================
  297.  
  298. In the last issue, Neil Armstrong introduced MPE/iX 6.5. This is the
  299. first in a series of articles describing some of the new features in
  300. MPE/iX 6.5. [Ed.]
  301.  
  302. The first new feature that I find interesting is the NEWCI command,
  303. which is known as CI elimination. The NEWCI command is similar to the
  304. Run command in that it executes a program as a child process. However
  305. after launching the program, the NEWCI command will eliminate the CI
  306. process for that session.
  307.  
  308. This will help reduce the number of processes on heavily loaded high-end
  309. systems. This new feature allows for users to only have their main
  310. application running, without having a CI running.
  311.  
  312. From your logon UDC for an individual who runs a customer application,
  313. you could start the applications with the NEWCI command, and when they
  314. leave the application they are logged off automatically.
  315.  
  316.     Dologon
  317.     option logon nobreak
  318.     file custdb=custdb.db.data
  319.     newci customer.pub.xeq
  320.     ******
  321.  
  322. Naturally, I was curious to see if I could use Qedit in this manner.
  323. Because I live in Qedit all day, I rarely, if ever, require command
  324. prompt access.
  325.  
  326.     :newci qedit.pub.robelle
  327.     Qedit/iX. Copyright Robelle Consulting Ltd. 1977-1999.
  328.     (Version 4.8)
  329.     /showtime
  330.     FRI, JAN 28, 2000, 11:31 AM
  331.     /exit
  332.     CPU=5. Connect=1. FRI, JAN 28, 2000, 11:31 AM.
  333.  
  334. As you can see, once you exit the program that was executed with the
  335. NEWCI command, you are logged off automatically.
  336.  
  337. Overall the NEWCI command seems like a good solution for eliminating a
  338. large number of processes for those users who only need application
  339. access.
  340.  
  341. [Neil Armstrong]
  342.  
  343.  
  344. Upcoming Events In 2000
  345. =======================
  346.  
  347. What:   McKessonHBOC Meeting
  348. When:   May 2-5
  349. Where:  Las Vegas, Nevada
  350. Who:    Nicky Gunther, Neil Armstrong
  351.  
  352. What:   Summit Information Systems Client Group Conference
  353. When:   May 21-22
  354. Where:  Maui, Hawaii
  355. Who:    Mike Shumko
  356.  
  357. What:   Smith Gardner World Conference & Expo
  358. When:   June 4-7
  359. Where:  Aventura, Florida
  360. Who:    David Greer, Marie Reimer, Mike Shumko
  361.  
  362. What:   HP World 2000 Conference & Expo
  363. When:   September 9-14
  364. Where:  Philadelphia, Pennsylvania
  365. Who:    Bob Green, David Greer, Francois Desrochers, Nicky Gunther,
  366.         Hans Hendriks, Marie Reimer, Tammy Roscoe
  367.  
  368.  
  369. Inventory Reduction Sale
  370. ========================
  371.  
  372. We're in the process of releasing Suprtool 4.3, and we have some excess
  373. inventory of Suprtool 4.2 user manuals. These are the same high-quality
  374. manuals you always receive from us, just without the newest features.
  375. Suprtool is backward compatible, so the old manuals are still quite
  376. usable. If you would like to distribute manuals to more people around
  377. your company, we are clearing out the old stock at US $10 each (or if
  378. you prefer manuals of the new release, they are $20 each). To order,
  379. call Eunice Sheehan at 1-888-ROBELLE or email Eunice at
  380.  
  381.     eunice.sheehan@robelle.com
  382.  
  383.  
  384. New Web Site for Robelle Distributor in Australia
  385. =================================================
  386.  
  387. Robelle's Australian Distributor, Michael Redmond of MRFM, is pleased to
  388. announce his new website:
  389.  
  390.     http://www.mrfm.com.au/
  391.  
  392. Michael has worked closely with Robelle for many years. You may remember
  393. reading his article in the September 1999 What's Up, DOCumentation?
  394. called "An Australian Revisits Robelle". Michael was one of the
  395. privileged visitors to the Robelle office when it was "on the farm" with
  396. dogs, cats, horses, and not much space! Go check out the MRFM website
  397. for more information on its products and services.
  398.  
  399.  
  400. Speed Demon Saves Hours in Only Fifteen Minutes
  401. ===============================================
  402.  
  403. If you could double the speed of some of your COBOL programs in only a
  404. few minutes, wouldn't you do it?
  405.  
  406. Speed Demon is a little-known part of Suprtool that has been around for
  407. years, but hasn't received the attention it deserves. If you have
  408. Suprtool, then you have Speed Demon - it's one of the standard
  409. components of Suprtool that everybody gets at no extra charge.
  410.  
  411. Speed Demon is a replacement routine for DBGET Mode 2. If you have a
  412. program that reads an IMAGE dataset serially, chances are that you can
  413. speed it up substantially using Speed Demon. The program logic remains
  414. the same; you just change the DBGET call to a Speed Demon call. That
  415. might sound like a bit of an oversimplification, but there's really not
  416. much more to it than that.
  417.  
  418. In general your existing program will look something like this:
  419.  
  420.     DBOPEN
  421.     while not end-of-file do
  422.        DBGET(base,dataset,mode-2,status,itemlist,buffer,dummy)
  423.        do something with the record
  424.     endwhile
  425.     produce the report, etc.
  426.     DBCLOSE
  427.  
  428. After you've converted it to use Speed Demon, it will look like this:
  429.  
  430.     DBOPEN
  431.     SPDEDBINIT(base,dataset,mode-1,status,control,itemlist)
  432.     while not end-of-file do
  433.        SPDEDBSCAN(base,status,buffer,dummy)
  434.        do something with the record
  435.     endwhile
  436.     SPDEDBSHUT(base,dataset,mode,status,dummy)
  437.     produce the report, etc.
  438.     DBCLOSE
  439.  
  440. Your program logic and structure remains the same. The serial DBGET is
  441. replaced by a call to SPDEDBSCAN. Some of the DBGET parameters are moved
  442. to SPDEDBINIT, which is called only once, before the first call to
  443. SPDEDBSCAN. With a program that does a serial scan, the DBGET parameters
  444. do not change from one DBGET to the next, so it does not make sense for
  445. IMAGE to have to validate the parameters for each record. If you
  446. serially read a million records, do you really need to specify a million
  447. times which dataset and item list you want? With Speed Demon we set the
  448. parameters once in the SPDEDBINIT call, moving the checking and overhead
  449. outside the read loop. The Speed Demon code that gets executed a million
  450. times is as lean as possible.
  451.  
  452. Speed Demon achieves its performance improvement by using the same
  453. high-speed database scan engine that is at the core of Suprtool. Instead
  454. of reading a record/buffer/page at a time as IMAGE does, Speed Demon
  455. reads up to 50Kb with every disc access. That means that Speed Demon may
  456. fetch hundreds of records with every disc read operation. Additionally,
  457. Speed Demon uses Robelle's pre-fetch mechanism to coax the operating
  458. system into fetching the data before Speed Demon actually needs it. This
  459. allows the program to always be processing records instead of waiting
  460. for I/O to complete. The result is that Speed Demon substantially
  461. reduces the I/O overhead of the retrieval. Because I/O is the most
  462. common bottleneck on an e3000, anything you can do to reduce the amount
  463. of I/O will benefit the program.
  464.  
  465. You will usually find that Speed Demon can read records five times
  466. faster than DBGET. Note that your overall program may not run five times
  467. faster, because the rest of your processing, sorting and printing of the
  468. records will be at the same speed as before. But cutting the overall run
  469. time of a program in half is not unusual with Speed Demon. That's a
  470. pretty good result from such a small investment in programming effort.
  471.  
  472. See the Speed Demon section of your Suprtool user manual for more
  473. information, or call us if you have any questions.
  474.  
  475. [Mike Shumko]
  476.  
  477.  
  478. Adding A Sequential Number to A Data File
  479. =========================================
  480.  
  481. Recently we've received a number of calls from folks wanting to add a
  482. sequential number to an output file in Suprtool. In other words, they'd
  483. like the output file to contain a new field containing values 1, 2, 3,
  484. etc. for each successive output record.
  485.  
  486. Suprtool doesn't have a built-in function for this. But here are two
  487. ways you can achieve this.
  488.  
  489. With Suprtool
  490. -------------
  491.  
  492. Suprtool has a "NUM" output option that will add a four-byte integer
  493. field to the start of the output record, containing the record number of
  494. the input record. This was originally added so that programmers could
  495. scan large files with Suprtool, extract the record numbers of records
  496. that required further processing, then pass those record numbers to a
  497. 3GL program that could do directed retrievals to process the
  498. already-qualified records. When selecting a subset of records from a
  499. large file, or from a dataset which has non-empty delete chains, the
  500. record numbers represented in the output file will be non-sequential.
  501. However, when copying all records from one MPE file to another, the
  502. input record numbers will be sequential, starting with record number 0
  503. for the first record.
  504.  
  505.     in      custs
  506.     out     custnum,num,data
  507.     xeq
  508.     IN=19, OUT=19. CPU-Sec=1. Wall-Sec=1.
  509.  
  510.     :listf custs@,1
  511.     FILENAME  CODE  ------------LOGICAL RECORD-------
  512.                       SIZE  TYP        EOF      LIMIT
  513.     CUSTNUM            15W  FB          19         19
  514.     CUSTS              13W  FB          19         19
  515.  
  516. Note the new file's record length is 2 words (4 bytes) longer than the
  517. original data file. That is because each record now has a four-byte
  518. binary record number added to the beginning. Here's what the records
  519. look like:
  520.  
  521.     input   custnum
  522.     define  recno,1,4,integer
  523.     define  data,5,26,byte
  524.     extract recno, data
  525.     list    standard
  526.     xeq
  527.  
  528.     Jan 10, 2000 14:00          File: CUSTNUM             Page 1
  529.  
  530.     RECNO       DATA
  531.  
  532.              0  Thomas    Serafin
  533.              1  Wayne     Humphreys
  534.              2  Gordon    Oxenbury
  535.              3  Lana      Johnston
  536.              4  William   Kirk
  537.              5  Walley    Nisbet
  538.              6  Rupert    Hillstrom
  539.              7  John      Melander
  540.              8  Werner    Frahm
  541.     ...etc
  542.  
  543. The record numbers start at 0 and go up by 1.
  544.  
  545. With Qedit
  546. ----------
  547.  
  548. When opening files, Qedit has to do some quick footwork to decide
  549. whether the file is numbered or not. It does this by examining the first
  550. few records, to see if the last 8 columns contain numbers, and whether
  551. those numbers ascend from one record to the next. You can override this
  552. default on the text command:
  553.  
  554.     text foobar,unnumbered
  555.  
  556. This forces Qedit to treat the file as unnumbered. In other words, Qedit
  557. will treat the whole record as data, irrespective of whether the first
  558. or last columns contain sequential numbers.
  559.  
  560. If we Text the file as unnumbered, we can force Qedit to Keep the file
  561. with numbers:
  562.  
  563.     text custs,unnumbered
  564.     set keep num on
  565.     keep custs2
  566.  
  567. Note that the records are now 4 words (8 bytes) longer than the original
  568. file, because an 8-digit ASCII line number was added to the end of the
  569. records:
  570.  
  571.     listf custs@,1
  572.     FILENAME  CODE  ------------LOGICAL RECORD-------
  573.                       SIZE  TYP        EOF      LIMIT
  574.     CUSTS              13W  FB          19         19
  575.     CUSTS2             17W  FB          19         19
  576.  
  577.     Use Qedit to examine the file:
  578.  
  579.     list custs2,unnumbered {treat the line numbers as data}
  580.         1     Thomas    Serafin         00001000
  581.         2     Wayne     Humphreys       00002000
  582.         3     Gordon    Oxenbury        00003000
  583.         4     Lana      Johnston        00004000
  584.         5     William   Kirk            00005000
  585.         6     Walley    Nisbet          00006000
  586.         7     Rupert    Hillstrom       00007000
  587.         8     John      Melander        00008000
  588.         9     Werner    Frahm           00009000
  589.     ...etc
  590.  
  591. The line numbers are now included in the file, and can be defined as a
  592. data field in subsequent Suprtool tasks. Note that the numbers start at
  593. 1000, and go up by 1000. This is because Qedit assumes that line numbers
  594. have three decimal places. To make the numbers start at 1 and go up by
  595. 1, use this command before the Keep command:
  596.  
  597.     renum .001 .001
  598.  
  599. [Hans Hendriks]
  600.  
  601.  
  602. Using Regular Expression to Create HTML Headings
  603. ================================================
  604.  
  605. When you have to manually convert a text file into HTML, one of the
  606. tedious typing chores is the addition of <h1>heading tags</h1>. Regular
  607. expressions in Qedit and Qedit for Windows can simplify this task. The
  608. following example assumes that all headings appear on a line by
  609. themselves.
  610.  
  611. Step 1: put "`1" "`2" etc in front of the line that will be a heading,
  612. using `1 for heading level 1, `2 for heading level 2, etc. Instead of a
  613. "`", you can also use any character that does not occur this way in the
  614. file.
  615.  
  616.     `1Regular Expression Uses
  617.     `2Assist in HTML creation
  618.     text
  619.     `2Find stuff
  620.     text
  621.  
  622. Step 2: Do a search and replace using the following regular expressions.
  623. Remember to enable regular expressions in your Change dialog or command.
  624.  
  625. Qedit for Windows command:
  626.  
  627.     Search for:    `([1-6])(.*)
  628.     Replace with:  <h\1>\2</h\1>
  629.  
  630. Qedit command:
  631.  
  632.     /change "`([1-6])(.*)"(regexp) "<h\1>\2</h\1>" all
  633.  
  634. The text will now look like
  635.  
  636.     <h1>Regular Expression Uses</h1>
  637.     <h2>Assist in HTML Creation</h2>
  638.     text
  639.     <h2>Find stuff</h2>
  640.     text
  641.  
  642. What each part of the regular expressions mean:
  643.  
  644. `        our heading marker
  645. ([1-6])  remember the next character (if 1..6) as \1
  646. (.*)     remember the rest of the line as \2
  647. <h\1>    insert the start tag <h1> <h2>... The heading level number
  648.          comes from the \1 that we remembered
  649. \2       the actual heading, with the text remembered in \2
  650. </h\1>   insert the end tag </h1> </h2>...
  651.  
  652. Exercise for the reader: how would you change all occurrences of
  653.     first_lastname@mycompany.com
  654. to
  655.     first.lastname@mycompany.com
  656.  
  657. The answer is in the on-line version of the newsletter at
  658.  
  659.     http://www.robelle.com/library/newsletter/w2000-02.html
  660.  
  661. [Dave Lo]
  662.  
  663.  
  664. Whose Line Is It Anyway?
  665. ========================
  666.  
  667. Our T1 Internet connection recently went down. Getting it back up was a
  668. classic tale of eight hours to find the right person and ten minutes to
  669. fix the problem.
  670.  
  671. It started before 6 a.m. when Bob Green in our Anguilla office was busy
  672. working, connected to our Vancouver office, and the line just died. A
  673. little after 7 a.m., I called our ISP to report the problem. By 8 a.m.
  674. Telephone Company #1 tells me "they're on the ball" but they need to
  675. contact Telco #2 in Calgary, because it was originally their line and
  676. Telco #1 just acquired Telco #2.
  677.  
  678. At 9 a.m. Telco #2 says they've checked their lines and the problem is
  679. really with Telco #3 and we should call them. I call Telco #3 but they
  680. say that I can't initiate a trouble call because the line is owned by
  681. our ISP. So it's back to our ISP and by 10 a.m. they have called Telco
  682. #3.
  683.  
  684. Four hours later, a little after 2 p.m., we're finally back up. We later
  685. learn that the guy who actually found the blown fuse wasn't notified of
  686. the problem until 2 p.m.!
  687.  
  688. Now if only our Internet had been up, I could have e-mailed him...
  689.  
  690. The moral of the story is that if you really care about your Internet
  691. connection being available 24x7, you need to plan for failure. For fault
  692. tolerance, have a backup Internet connection available that you can
  693. quickly switch to, even if it is not as fast as your regular line. In
  694. our case, if we had had a second connection, even a slower ISDN, xDSL or
  695. cable connection, we would not have been so concerned that our primary
  696. line was down for eight hours.
  697.  
  698. [Paul Gobes]
  699.  
  700.  
  701. This Newsletter Available by E-mail
  702. ===================================
  703.  
  704. You can have What's Up, DOCumentation? delivered directly to your
  705. electronic InBox. You get all the same news as the print version in an
  706. e-mail-friendly format, usually a few days before the print version gets
  707. to you. The print version goes only to the official contact for your
  708. company, but anybody in your company can get What's Up, Doc? by e-mail
  709. if your support contract is current.
  710.  
  711. To subscribe, send your request to
  712.  
  713.     support@robelle.com
  714.  
  715.