Hi Leslie,

I never worked with Rexx on a main frame, so hostemu is completely foreign to me.  So, I can't help much there.

I vaguely remember that there are some special rules about quoting.  Combing the error code 20, Symbol Expected, and this:

 'diskw "/home/leslie/html/private/'directory.d'/index.html" (finis stem html.'

I would guess the quoting is not correct.  Error code 20 has this subcode: 906
Symbol expected after "(" of a variable reference. Or maybe it has to do with directory.d.

  I notice that no matter what the error# is, sysGetErrNoMsg() seems to
return "Unknown". 

Seems like a bug to me.  I haven't looked at the Unix Extensions package at all, so again I can't  be help much there.

David Ashley did both of those extensions and would be the best person to explain what is going wrong for you.  He is out of touch right now, so he won't respond immediately.  He'll be back in touch in August.

If I were you, I'd investigate the quoting in your use of hostemu.  I'll try to take a look at the Unix Extensions package if I have some time.  You should bring this up again on the list in August to try and get David's attention.

Personally, I'd open bugs about things that don't seem to work.  And open up documentation bugs where there seems to be lack of information to use these packages.

--
Mark Miesfeld



On Tue, Jul 16, 2013 at 7:19 AM, J. Leslie Turriff <jlturriff@centurylink.net> wrote:
        I'm getting RC=20 from execio when writing a stem to disk.  I added a bit of
diagnostic code:

  signal on error
      :

error:
  if rc \= 0 then
    do
      errno = sysGetErrNo()
      errmsg = sysGetErrNoMsg(errno)
      say 'GenHtmlTree failed at statement' sigl':' sourceline(sigl)
      say 'with return code' rc 'and Linux error#' errno '('errmsg').'
    end
exit 0

and I get this back:

$genhtmltree Documents/Prose/MyProse/Stories >rexx.trace 2>&1
    89 *-* address hostemu 'execio'
html.0 'diskw "/home/leslie/html/private/'directory.d'/index.html" (finis
stem html.'
       >>>   "execio 34
diskw "/home/leslie/html/private/Documents/Prose/MyProse/Stories/index.html"
(finis stem html."
       +++   "RC(20)"
GenHtmlTree failed at statement 89:     address hostemu 'execio'
html.0 'diskw "/home/leslie/html/private/'directory.d'/index.html" (finis
stem html.'
with return code 20 and Linux error# 29 (Unknown).

        There are no descriptions of return codes in the Open Object Rexx
Rexx Extensions Library Reference.

        Here's another strangeness:  When I redirect the output from the program into
a file to paste it into this message the error# changed from 29 to 2. (!)

$genhtmltree Documents/Prose/MyProse/Stories >rexx.trace 2>&1
    89 *-* address hostemu 'execio'
html.0 'diskw "/home/leslie/html/private/'directory.d'/index.html" (finis
stem html.'
       >>>   "execio 34
diskw "/home/leslie/html/private/Documents/Prose/MyProse/Stories/index.html"
(finis stem html."
       +++   "RC(20)"
GenHtmlTree failed at statement 89:     address hostemu 'execio'
html.0 'diskw "/home/leslie/html/private/'directory.d'/index.html" (finis
stem html.'
with return code 20 and Linux error# 2 (Unknown).

        I notice that no matter what the error# is, sysGetErrNoMsg() seems to
return "Unknown".  (See my post, "Question about Open Object Rexx Unix
Extensions", in which a program returns error# 22.)

Leslie

------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Oorexx-users mailing list
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users