home *** CD-ROM | disk | FTP | other *** search
/ ftp.robelle3000.ai 2014 / 2014.06.ftp.robelle3000.ai.tar / ftp.robelle3000.ai / newsletter / 1995 / w1995-02.txt < prev    next >
Text File  |  1995-05-25  |  18KB  |  482 lines

  1.  
  2.  
  3.        What's Up, DOCumentation?
  4.  
  5.  
  6.  
  7.        Robelle Consulting Ltd.
  8.        Unit 201, 15399-102A Ave.
  9.        Surrey, B.C. Canada  V3R 7K1
  10.        Toll-free: 1-800-561-8311
  11.        Phone: (604) 582-1700
  12.        Fax: (604) 582-1799
  13.        E-mail: support@robelle.com
  14.        WWW: http://www.robelle.com
  15.  
  16. Date:  May 19, 1995
  17.  
  18. From:  Robert M. Green, CEO
  19.        David J. Greer, President
  20.        Neil P. Armstrong, Editor
  21.  
  22. To:    Users of Robelle Software
  23.  
  24. Re:    News of the HP 3000 and HP-UX, 1995 #2
  25.  
  26.      What You Will Find in This News Memo:
  27.  
  28.        Robelle FAQ
  29.        Robelle Products and MPE/iX 5.0
  30.        Control-Y and POSIX Applications
  31.        Suprtool 3.7
  32.        Renaming Across Accounts
  33.        POSIX Shell
  34.        About Robelle
  35.        Robelle Products:  Problems, Solutions, and Suggestions
  36.  
  37.  
  38.                                  Robelle FAQ!
  39.  
  40. We have now begun a Robelle FAQ on our Web Server. For those who are not
  41. Internet aware, a FAQ stands for Frequently Asked Questions. We will be
  42. posting answers to the questions that you, our customers, ask the most. Right
  43. now, the most frequently asked question is
  44.  
  45.     "What versions of your products do I need for MPE/iX 5.0."
  46.  
  47. I have included edited text from our Robelle FAQ to answer that very question.
  48. In fact, this edition of WUD is entirely dedicated to MPE/iX 5.0 issues and
  49. features.
  50.  
  51. You can reach our FAQ text at
  52.  
  53.    http://www.robelle.com
  54.  
  55. For those of you who do not have Internet access, you can always call to have
  56. technical support answer your questions or even to have the FAQ text faxed to
  57. you. The current FAQ includes the following titles:
  58.  
  59.    Upgrading to MPE/iX 5.0
  60.    Qedit MPE version 4.3 installation instructions
  61.    Qedit UX version 4.3 installation instructions
  62.    Suprtool version 3.7 installation instructions
  63.  
  64.  
  65.                        Robelle Products and MPE/iX 5.0
  66.  
  67. If you plan to upgrade to MPE/iX 5.0, please take the time to review the
  68. following article.  We describe the version numbers needed and the issues that
  69. arise with Robelle products when you upgrade to MPE/iX 5.0.
  70.  
  71. Qedit. You must have Qedit version 4.3 or later for MPE/iX 5.0.  This version
  72. was shipped to all customers worldwide before January, 1995. If you plan to
  73. use any of the new POSIX features, including the HFS, you should contact
  74. Robelle and ask for the latest Qedit pre-release.
  75.  
  76. Qedit Compiler Interfaces. After updating to MPE/iX 5.0, you will need to
  77. Qedify your new compilers so that you will be able to compile Qedit files.
  78. Please see your latest Qedit manual for instructions on how to Qedify the NM
  79. and CM compilers.
  80.  
  81. Suprtool. You must have Suprtool version 3.6 or later for use on MPE/iX 5.0.
  82. This version was shipped to all customers worldwide in Spring, 1994. We
  83. recommend that you upgrade to the newer Suprtool version 3.7 before you
  84. upgrade to MPE/iX 5.0. Suprtool 3.7 includes several new features to support
  85. MPE/iX 5.0. Suprtool 3.7 has been shipped to all customers in Canada and the
  86. US. We will be shipping this version to the rest of the world during May and
  87. June, 1995.
  88.  
  89. Speed Demon and Suprtool2. Depending on where you call the Suprtool2 interface
  90. and Speed Demon intrinsics, you may need to re-install them. Please refer to
  91. your latest Suprtool manual for instructions on installing Speed Demon and
  92. Suprtool2 interfaces.
  93.  
  94. Table Command and CM KSAM Files. After updating to one of the many beta
  95. versions of MPE/iX 5.0, we came across a problem with Suprtool and CM KSAM
  96. files loaded by the Table command. The following error occurred when trying to
  97. load a CM KSAM file into a table:
  98.  
  99.    :run suprtool.pub.robelle
  100.    SUPRTOOL/iX/Copyright Robelle Consulting Ltd. 1981-1994.
  101.    (Version 3.7)
  102.    >def a,1,6
  103.    >table tab1,a,file,file2.suprtest
  104.  
  105.    Warning:  Source of input records not specified yet
  106.  
  107.    +-F-I-L-E---I-N-F-O-R-M-A-T-I-O-N---D-I-S-P-L-A-Y+
  108.    ! Edited for brevity.                            !
  109.    +------------------------------------------------+
  110.  
  111.    Error:  Unable to initialize the table sort process
  112.  
  113.    Error:  A failure occurred on FFILEINFO (INPUTFILE).
  114.  
  115. The problem was a bug in Sort.Pub.Sys when sorting CM KSAM files. This problem
  116. still exists in the PUSH version of MPE/iX 5.0, but a patch is available.
  117.  
  118. The SR for this problem was 5003-3231613, and the patch-id is MPEXH33A. Please
  119. call the HPRC for this patch and others before you update to MPE/iX 5.0.
  120.  
  121.  
  122.                        Control-Y and POSIX Applications
  123.  
  124. When you press Control-Y in a POSIX application, a SIGINT signal is generated
  125. to all processes in a user's process tree. This feature of the POSIX
  126. applications on MPE/iX 5.0 has caused a problem with applications that can
  127. invoke a child process.
  128.  
  129. As an example: while in the CI, run Qedit; then from within Qedit, run
  130. Tail.Hpbin.Sys; now hit <Control-Y>. Tail, which is a POSIX application,
  131. correctly terminates. But a SIGINT signal from the <Control-Y> also goes to
  132. Qedit which terminates Qedit.  The result is that when you exit the POSIX
  133. application, you are returned to the CI prompt, not to Qedit.
  134.  
  135. On MPE/iX 5.0, all process handling applications are expected to arm the
  136. appropriate POSIX signal handlers for the SIGINT signal (which is what is
  137. generated when a POSIX application sees <Control-Y>), but there is nothing
  138. anyone can do under MPE/iX 5.0 to prevent the SIGINT from propagating to all
  139. processes in the process tree.
  140.  
  141. We have fixed this problem in Suprtool 3.7.11, and Qedit 4.3.18. Please call
  142. technical support to get the latest version if this is a problem for you and
  143. your users.
  144.  
  145.  
  146.                                  SUPRTOOL 3.7
  147.  
  148. Jumbo Datasets and Suprtool. In the past, the maximum size of an IMAGE/SQL
  149. dataset has been four Gigabytes. Now a new version of IMAGE/SQL supports the
  150. potentially larger jumbo datasets. Data in a jumbo dataset can reside in one
  151. or more MPE files. You use jumbo datasets when you want to store more than
  152. four Gigabytes of data in a single dataset.
  153.  
  154. This feature is supported in Suprtool/Plus 3.7. You can get this version of
  155. Suprtool simply by calling Robelle, or by e-mailing support@robelle.com.
  156.  
  157. There is no extra charge for this feature.
  158.  
  159. Progress Messages and Suprtool 3.7.
  160.  
  161. We added a new feature to Suprtool 3.7 which made Suprtool a little more
  162. verbose. By default, Suprtool will now print a progress message after every 5%
  163. of a given phase.
  164.  
  165. Customer reaction to this feature has ranged from extremely favourable to, "I
  166. would rather not see the progress messages." After looking at our customer
  167. feedback and having some internal discussion, we decided the default will be
  168. to print messages.
  169.  
  170. Those customers who do not want to see these messages from Suprtool 3.7 can
  171. disable them simply by adding a line to a file called Suprmgr.Pub.Sys:
  172.  
  173.    set progress 0
  174.  
  175. This line will shut off the progress messages. Please refer to the article on
  176. the Set Progress command in Chapter 6 of the Suprtool 3.7 manual for more
  177. information on this feature.
  178.  
  179.  
  180.                     Renaming Across Accounts on MPE/iX 5.0
  181.                             by Francois Desrochers
  182.  
  183. Since MPE was first launched, many people have found certain of its security
  184. features irritating. For example, it was nearly impossible to create a file in
  185. another account without a privileged mode program. You could not rename
  186. somebody else's file even if you had full access rights to it. You had to copy
  187. the file and purge the old one. You could not restore a file if the name of
  188. the creator did not exist in the destination account; you then had to use
  189. special keywords like creator or create on the Restore command.
  190.  
  191. MPE/iX 5.0 removes some of these restrictions. To implement some of these
  192. features, new information has been added to the directory. For example, the
  193. creator of a file is now fully qualified. Instead of having Manager or Fred as
  194. creator, it will now be Manager.Sys or Fred.Payroll.
  195.  
  196. If you have system manager (SM) capability, you can now create files in a
  197. different account. The file does not have any special access rights, and it is
  198. protected by whichever rights are set for the account and group where it
  199. resides.
  200.  
  201. If you have write access to a file, you can now rename it even if you are not
  202. the original creator. The file creator remains the same however, this implies
  203. that a user with account manager (AM) capability will be able to rename any
  204. files in the corresponding account.
  205.  
  206. Since the creator name is now fully qualified, you can restore in different
  207. accounts without having to worry about user names. You obviously still have to
  208. take care of the group and account names.
  209.  
  210. For example:
  211.  
  212.   :HELLO SESSION1,MANAGER.SYS
  213.   :BUILD XFILE.DATA.ACCTNG
  214.   :LISTFILE XFILE.DATA.ACCTNG,-2        { display ACDs if any }
  215.   ACCOUNT=  ACCTNG      GROUP=  DATA
  216.  
  217.   FILENAME        ------------ACD ENTRIES--------------
  218.  
  219.   XFILE               NO ACDS
  220.  
  221.   :HELLO SESSION2,OPERATOR.SYS,OPERATOR
  222.   :PRINT XFILE.DATA.ACCTNG
  223.   :PURGE XFILE.DATA.ACCTNG
  224.   SECURITY VIOLATION  (FSERR 93)
  225.   UNABLE TO PURGE FILE "XFILE.DATA.ACCTNG". (CIERR 384)
  226.  
  227. Back on Session1,Manager.Sys, we add an ACD giving write access to
  228. Operator.Sys.
  229.  
  230.   :ALTSEC XFILE.DATA.ACCTNG;NEWACD=(W:OPERATOR.SYS)
  231.   :LISTFILE XFILE.DATA.ACCTNG,-2
  232.   ACCOUNT=  ACCTNG      GROUP=  DATA
  233.  
  234.   FILENAME        ------------ACD ENTRIES--------------
  235.  
  236.   XFILE               OPERATOR.SYS        : W
  237.  
  238. Back to Session2,Operator.Sys,
  239.  
  240.   :RENAME XFILE.DATA.ACCTNG,XFILE
  241.   :LISTFILE XFILE,-2
  242.   ACCOUNT=  SYS         GROUP=  OPERATOR
  243.  
  244.   FILENAME        ------------ACD ENTRIES--------------
  245.  
  246.   XFILE               NO ACDS
  247.  
  248. Finally, back to Session1,Manager.Sys again. Please note the creator name.
  249.  
  250.   :LISTF XFILE.OPERATOR,-3
  251.   ********************
  252.   FILE: XFILE.OPERATOR.SYS
  253.  
  254.   FILE CODE : 0             FOPTIONS: BINARY,FIXED,NOCCTL,STD
  255.   BLK FACTOR: 1             CREATOR : MANAGER.SYS
  256.   REC SIZE: 256(BYTES)      LOCKWORD:
  257.   BLK SIZE: 256(BYTES)      SECURITY--READ    :
  258.   EXT SIZE: 0(SECT)                   WRITE   :
  259.   NUM REC: 0                          APPEND  :
  260.   NUM SEC: 0                          LOCK    :
  261.   NUM EXT: 0                          EXECUTE :
  262.   MAX REC: 1023                      **SECURITY IS ON
  263.                            FLAGS   : NO ACCESSORS
  264.   NUM LABELS: 0            CREATED : THU, MAY 11, 1995,  1:08 PM
  265.   MAX LABELS: 0            MODIFIED: THU, MAY 11, 1995,  1:11 PM
  266.   DISC DEV #: 2            ACCESSED: THU, MAY 11, 1995,  1:11 PM
  267.   SEC OFFSET: 0            LABEL ADDR: $00000128.$00703B20
  268.   VOLCLASS  : MPEXL_SYSTEM_VOLUME_SET:DISC
  269.  
  270. There is a known problem with Rename and the FRENAME intrinsic (KPR
  271. 4701217760).  If the Rename fails for any reason (e.g., new name already
  272. exists, security violation), the old file will still be there but with the
  273. following ACDs:
  274.  
  275.   LISTFILE XFILE.DATA.ACCTNG,-2
  276.   ACCOUNT=  ACCTNG      GROUP=  DATA
  277.  
  278.   FILENAME        ------------ACD ENTRIES--------------
  279.  
  280.    XFILE               $OWNER              : R,W,X,A,L,RACD
  281.                        $GROUP_MASK         : R,W,X,A,L,RACD
  282.                        $GROUP              : R,W,X,A,L,RACD
  283.                        @.@                 : R,X,L,RACD
  284.  
  285. This was supposed to be fixed in MPE/iX version C.50.00, but our tests have
  286. shown that this has not been fixed.
  287.  
  288.  
  289.                         The POSIX Shell on MPE/iX 5.0
  290.                        by David Greer and Hans Hendriks
  291.  
  292. When you invoke the POSIX shell with the -L option, the files /etc/profile and
  293. $HOME/.profile execute automatically. Use these files to customize the POSIX
  294. environment, much as you would use logon UDCs in the MPE environment.
  295.  
  296. We have gone through several MPE/iX 4.5 and 5.0 updates, and have learned that
  297. each update overwrites the /etc/profile file with HP's default version for
  298. that release. As we disagree with some of HP's choices, we need to remember to
  299. restore our customized profile file after every update.
  300.  
  301. Here are some of the changes we've made in our customized profile file,
  302. together with HP's default settings:
  303.  
  304. The Path Variable.
  305.  
  306.   # set up the default path to include only the .2 utilities and
  307.   # the current directory
  308.    export PATH='/bin:.'
  309.  
  310. You might want to add some other Paths (e.g., we have Lynx installed in
  311. /usr/local/bin, since this is where Lynx happens to live on both our HP-UX and
  312. MPE/iX machines).  In this case, we have a Path of
  313.  
  314.    export PATH='/bin:/usr/local/bin:.'
  315.  
  316. The Prompt Variable. Another variable typically configured in the /etc/profile
  317. file is the user prompt. Here is HP's default:
  318.  
  319.   # Set up the default user prompt.
  320.    export PS1='shell/iX> '
  321.  
  322. We found this prompt to be about as bad as the UNIX default prompts for the
  323. Bourne and the Korn shells (which are usually "$"). We changed our prompt to
  324. show the current working directory by setting PS1 variable to
  325.  
  326.    export PS1='$PWD> '
  327.  
  328. The Home Variable.
  329.  
  330.   # Set up the HOME variable.
  331.    export HOME=$PWD
  332.  
  333. HP's UDC checks that the HPHGROUP variable has been set before letting you run
  334. the shell. We dislike this approach for 2 reasons:
  335.  
  336.   1)  We avoid UDCs wherever possible, and use command files instead.
  337.   2)  We use discrete session names, rather than unique MPE usernames
  338.       for logon.
  339.  
  340. Consider the following logon: Hello Jim,Mgr.Inventry,Jim. So, while Jim has a
  341. logical home group of "JIM", his HPHGROUP variable will be set to "Pub", along
  342. with anybody else who signs on as Mgr.Inventry. This means that they will
  343. share a .sh_history file, and will be unable to customize a .profile file.
  344.  
  345. We worked around this by changing the SH UDC to a command file which checks
  346. for a group in the logon account with the same name as the session name. We
  347. also added an option to specify a shell priority:
  348.  
  349.    parm shellpri="cs"
  350.    comment SHELL.CMD - Command file derived from HP's HPPXUDC
  351.    comment file.
  352.    comment This invokes the POSIX .2 shell with the -L option.
  353.    comment -L causes the shell to read the environment
  354.    comment initialization files. The MPE/iX shell requires the
  355.    comment user to have a home group. It also assumes the user's
  356.    comment Current Working Directory (CWD) is the user's home
  357.    comment group.
  358.    comment
  359.    comment Save the current CWD.
  360.    comment
  361.    setvar _sh_cwd hpcwd
  362.    comment
  363.    setjcw CIERROR,0
  364.    continue
  365.    chdir /!hpaccount/!hpjobname > $null
  366.    if CIERROR=935 then
  367.       chdir /!hpaccount/!hphgroup
  368.    endif
  369.    continue
  370.    run sh.hpbin.sys;info="-L";pri=!shellpri
  371.    chdir !_sh_cwd
  372.    deletevar _sh_cwd
  373.  
  374. We also added an alias to easily run Qedit:
  375.  
  376.    alias qedit="/ROBELLE/PUB/QEDIT"
  377.  
  378. This alias allows Qedit to be run from the POSIX shell simply by typing qedit.
  379.  
  380.  
  381.                                 About Robelle
  382.  
  383. Value Added Business Prep Program (VAB).
  384.  
  385. Robelle Consulting has been a member of HP's VAB Prep program for about three
  386. years now. This program provides early versions of MPE/iX to allow us to test
  387. how our products will perform with new versions of the OS.
  388.  
  389. Thanks to HP's sponsorship of this program, we are able to support our
  390. products on the latest version of MPE/iX. When you pay for support services
  391. from Robelle, your money helps us to install patches and many beta versions of
  392. MPE/iX 5.0. These upgrades to our equipment allow us to ensure that Robelle
  393. products can work with these new versions of MPE/iX, and can take advantage of
  394. some of MPE/iX's new features.
  395.  
  396.  
  397.            Robelle Products:  Problems, Solutions, and Suggestions
  398.  
  399.  
  400. Qedit  Version 4.3
  401.  
  402. Qedit and Strings.
  403.  
  404. Strings play a variety of roles in Qedit. Strings can be delimited by quotes
  405. or by any of the following special characters: | ~ _ ! # > &:. Most Qedit
  406. commands accept a string as a linerange qualifier, but then the commands are
  407. applied only to lines containing that string.
  408.  
  409. One of the forgotten features of Qedit commands is their ability to use
  410. strings as a rangelist. Use this in any command that accepts any rangelist.
  411. You can further qualify strings if you use window options on the string being
  412. searched.
  413.  
  414. Here are some instances where this feature is useful:
  415.  
  416. Deleting all lines with the string "superfluous".
  417.    /delete "superfluous"
  418.  
  419. Deleting all lines without the string "superfluous".
  420.    /delete "superfluous" (nomatch)
  421.  
  422. Change "bug" to "undocumented feature", but only on those lines that have the
  423. string "unexplained".
  424.      /change "bug"undocumented feature" "unexplained"
  425.  
  426. Delete all blank lines.
  427.      /delete "~" (pattern)    {blank lines}
  428.  
  429. Find the next occurrence of the string ".font" that starts in the first
  430. column.
  431.      /find ".font" (1/5)
  432.  
  433. List all occurrences of "Frank", but not in words such as "Frankenstein".
  434.      /list "Frank" (smart)   {ignores "Frankenstein"}
  435.  
  436. By default, Qedit searches for matches to a string. Specifying (NOMATCH)
  437. reverses this logic. Likewise, string searches can be restricted to particular
  438. columns (10/40), or to a caseless search (UPSHIFT).
  439.  
  440. If the string represents a pattern, this should be specified with valid
  441. pattern characters:
  442.  
  443.      @      anything, including nothing    #  single numeric digit
  444.      ?      single alphanumeric digit      ~  zero or more spaces
  445.  
  446. (Attend Hans Hendriks' Tutorial "Qedit's Forgotten Commands" at Interex in
  447. Toronto for more Qedit Tips.)
  448.  
  449.  
  450. Suprtool  Version 3.7
  451.  
  452. Suprtool as a Database Integrity Tool.
  453.  
  454. Financial transactions are often processed in batches. Between jobs aborting,
  455. program bugs, and less-than-careful data fixes by MIS staff, these batches can
  456. get out-of-balance. Using the Total command can quickly verify that all
  457. transactions net to zero.
  458.  
  459. Do the debits equal the credits?
  460.  
  461.     :run suprtool.pub.robelle
  462.     >base     fms.gl,5,reader
  463.     >get      d-transactions
  464.     >output   $null
  465.     >total    trans-amt
  466.     >xeq
  467.  
  468.     Totals (SUN, JAN 29, 1995,  2:56 PM):
  469.     TRANS-AMT                           81451+
  470.     IN=6, OUT=6. CPU-Sec=1. Wall-Sec=1.
  471.  
  472. By default the results of the Total command are displayed on the screen
  473. ($STDLIST), but can be appended to the output file. To do, this you need to
  474. turn Set Squeeze Off and add a new Total command as follows:
  475.  
  476.    total $file filename,append
  477.  
  478. Up to 15 fields can be totalled in each pass.
  479.  
  480. (Attend Paul Gobes' Tutorial "Ensuring Data Integrity Using Suprtool" at
  481. Interex in Toronto for more Suprtool Tips.)
  482.