Menu

#281 LINEOUT - Command in Windows 10 -> unsupported Command "0"

None
wont-fix
nobody
None
1
2021-03-12
2021-03-09
No

15 - LINEOUT(myfile,myline) / Append a line to the file /
>V> MYFILE => "Test1.txt"
>A> "Test1.txt"
>V> MYLINE => "this is my Test1.txt 8 Mar 2021 14:16:37"
>A> "this is my Test1.txt 8 Mar 2021 14:16:37"
>F> LINEOUT => "0"
>>> "0"
Der Befehl "0" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
+++ "RC(1)"

1 Attachments

Related

Documentation Bugs: #281

Discussion

  • Rick McGuire

    Rick McGuire - 2021-03-09
    • status: open --> wont-fix
     
  • Rick McGuire

    Rick McGuire - 2021-03-09

    You have coded a function call as a line on it's own. By rexx rules, the function result is then handled as a command and passed to the command shell, which is issuing the message. You need to code your call as

    call lineout myfile, myline

     
  • Erich

    Erich - 2021-03-09
     
  • Erich

    Erich - 2021-03-09

    Hi Franz,
    Rexx functions which return a value are typically called like this:

    call LINEOUT name
    code = LINEOUT(name)
    

    When used in a stand-alone expression like in your example, the returned function value is (not ignored, but) executed as an external command.

     
  • Erich

    Erich - 2021-03-09

    Hi Franz, responses should always go to the initial bug report - no direct responses by mail.

    The 2nd problem in my Test1.rex - program;
    stream(....) with the  unsupported windows-command READY: - Command
    as you can see in my Test2.rex  ...

    You don't really use STREAM in your example, but its use would be the same as for LINEOUT

    RC = 0
    IF RC <> 0 then Say "CALL LINEOUT" myfile "fails with RC" RC

    Rexx functions don't set RC, only external command do.
    To capture the result of LINEOUT, you'd code

    code = LINEOUT(name, ..)
    if code <> 0 then ..
    

    Also, this here is bug tracker ... for how-to questions there's a mailing list "Open Object Rexx Users" oorexx-users@lists.sourceforge.net.
    You'll find a list of all ooRexx mailing lists at https://sourceforge.net/p/oorexx/mailman/
    ooRexx also has a discussion forum at https://sourceforge.net/p/oorexx/discussion/
    (There are also Google Groups covering Rexx))

    ---------- Forwarded message ---------
    From: Franz Marx
    Date: Tue, Mar 9, 2021 at 4:35 PM
    Subject: Re: [oorexx:documentation] #281 LINEOUT - Command in Windows 10 -> unsupported Command "0"
    To: erich_st@users.sourceforge.net, bigrixx@users.sourceforge.net

    Thank you all for your really fast support, please close my #281! In my 2nd Test-Program,i already coded your suggested CALL LINEOUT args and it works fine!
    The 2nd problem in my Test1.rex - program;stream(....) with the  unsupported windows-command READY: - Command as you can see in my Test2.rex  ...

    /******************************************************************************/
    /*  Test2.rex           Open Object Rexx  (c) Franz Marx                      */
    /*  test using creating a Text-File                                           */
    /******************************************************************************/
    say "Test2 V1.0 (c) Franz Marx is running"
    RC = 0
    myfile = "Test2.txt"                        /* my Text-File */
    myline = "dummy EOF"                        /* create a dummy EOF  */
    CALL LINEOUT myfile,myline                  /* Append a line to the file or create the text-File */
    CALL LINEOUT myfile                         /* this closes the file */
    IF RC <> 0 then Say "CALL LINEOUT" myfile "fails with RC" RC
               Else Address Command "ERASE" myfile
    Do I=1 to 9                                 /* create 9 lines */
    myline="this is my Test2.txt" Date() time() "at Line Nr.:" I
    CALL LINEOUT myfile,myline                  /* Append a line to the file */
    IF RC <> 0 then Say "CALL LINEOUT" myfile","myline "fails with RC" RC "at line" I
    End
    
    CALL LINEOUT myfile                          /* this closes the file */
    IF RC <> 0 then Say "CALL LINEOUT" myfile "fails with RC" RC
           
    Address Command "timeout /T 60"        /* have a look at the Console-Log */
    return 
    

    Next I will try to make a real Rexx-Windows Program!GreetingsFranz J. Marx      

     
    • Franz J. Marx

      Franz J. Marx - 2021-03-09

      Ok, Erich, habe ich alles verstanden!
      Ich denke, beim Vornamen Erich kann ich auch in deutsch schreiben!
      😊
      LG aus Österreich!
      Franz

      P.S. *"It's only Rexx and Roll, but i like it" * (c) The Rolling Stones
      (partially)
      i used REXX (and PL/1) in z/VM and z/VSE (from the 1980's on)

      Am Di., 9. März 2021 um 18:20 Uhr schrieb Erich erich_st@users.sourceforge.net:

      Hi Franz, responses should always go to the initial bug report - no direct
      responses by mail.

      The 2nd problem in my Test1.rex - program;
      stream(....) with the unsupported windows-command READY: - Command
      as you can see in my Test2.rex ...

      You don't really use STREAM in your example, but its use would be the same
      as for LINEOUT

      RC = 0
      IF RC <> 0 then Say "CALL LINEOUT" myfile "fails with RC" RC

      Rexx functions don't set RC, only external command do.
      To capture the result of LINEOUT, you'd code

      code = LINEOUT(name, ..)if code <> 0 then ..

      Also, this here is bug tracker ... for how-to questions there's a mailing
      list "Open Object Rexx Users" oorexx-users@lists.sourceforge.net.
      You'll find a list of all ooRexx mailing lists at
      https://sourceforge.net/p/oorexx/mailman/
      ooRexx also has a discussion forum at
      https://sourceforge.net/p/oorexx/discussion/
      (There are also Google Groups covering Rexx))

      ---------- Forwarded message ---------
      From: Franz Marx
      Date: Tue, Mar 9, 2021 at 4:35 PM
      Subject: Re: [oorexx:documentation] #281 LINEOUT - Command in Windows 10
      -> unsupported Command "0"
      To: erich_st@users.sourceforge.net, bigrixx@users.sourceforge.net

      Thank you all for your really fast support, please close my #281! In my
      2nd Test-Program,i already coded your suggested CALL LINEOUT args and it
      works fine!
      The 2nd problem in my Test1.rex - program;stream(....) with the
      unsupported windows-command READY: - Command as you can see in my Test2.rex
      ...

      /***********// Test2.rex Open Object Rexx (c) Franz Marx // test using creating a Text-File //***********/say "Test2 V1.0 (c) Franz Marx is running"
      RC = 0
      myfile = "Test2.txt" / my Text-File /
      myline = "dummy EOF" / create a dummy EOF /CALL LINEOUT myfile,myline / Append a line to the file or create the text-File /CALL LINEOUT myfile / this closes the file /IF RC <> 0 then Say "CALL LINEOUT" myfile "fails with RC" RC Else Address Command "ERASE" myfileDo I=1 to 9 / create 9 lines /
      myline="this is my Test2.txt" Date() time() "at Line Nr.:" ICALL LINEOUT myfile,myline / Append a line to the file /IF RC <> 0 then Say "CALL LINEOUT" myfile","myline "fails with RC" RC "at line" IEnd
      CALL LINEOUT myfile / this closes the file /IF RC <> 0 then Say "CALL LINEOUT" myfile "fails with RC" RC Address Command "timeout /T 60" / have a look at the Console-Log /return

      Next I will try to make a real Rexx-Windows Program!GreetingsFranz J.
      Marx


      Status: wont-fix
      Group: None
      Created: Tue Mar 09, 2021 12:28 PM UTC by Franz J. Marx
      Last Updated: Tue Mar 09, 2021 12:42 PM UTC
      Owner: Rexxcoder
      Attachments:

      15 - LINEOUT(myfile,myline) / Append a line to the file /

      V> MYFILE => "Test1.txt"
      A> "Test1.txt"
      V> MYLINE => "this is my Test1.txt 8 Mar 2021 14:16:37"
      A> "this is my Test1.txt 8 Mar 2021 14:16:37"
      F> LINEOUT => "0"

      "0"
      Der Befehl "0" ist entweder falsch geschrieben oder
      konnte nicht gefunden werden.
      +++ "RC(1)"


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/oorexx/documentation/281/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Documentation Bugs: #281

  • Franz J. Marx

    Franz J. Marx - 2021-03-10

    Ticket should be closed by Rexxcoder

    updated Test1.rex works now as expected
    the correct use of Stream and LINEOUT are used also in my Lotto-Program for windows,
    adapted from my z/VM - version.

     
  • Rexxcoder

    Rexxcoder - 2021-03-12

    <style type="text/css"><!-- DIV {margin:0px;} --></style>

    Hi Rene`, Rony and ooRexx Documentation Team Members,

    I received this notification regarding a ticket closure for the following ooRexx report.  I will be happy to attempt my initial administrative Subversion and SourceForge tasks if someone can direct me to information regarding what  I should be doing to properly close the ticket (admittedly, I need to study my Subversion PDFs a bit more regarding how to verify that I certain code change has been applied).

    My concerns are:

    1) Do the two .rex code attachments provided by Mr. Marx in this e-Mail need to be checked into Subversion or is that already done? 
    2) How can I verify that any attachments are checked in by another Subversion User? Guessing a subversion "diff" type command?
    3) I'm assuming the ticket closure is something that is administered from SourceForge as opposed to Subversion? 
    4) Are there any documentation tasks that I need to undertake as a pre-requisite for closing the SourceForge ticket?

    Will study up on the Subversion PDF Tutorial and Book that I have over the weekend to solidify my knowledge .

    Thanks for your Time and Attention; Best Regards,

    Tony Dycks (rexxcoder)

    -----Original Message-----

    From: "Franz J. Marx" fmarx@users.sourceforge.net

    Sent: Mar 10, 2021 1:56 AM

    To: "[oorexx:documentation] " <281@documentation.oorexx.p.re.sourceforge.net>

    Subject: [oorexx:documentation] #281 LINEOUT - Command in Windows 10 -> unsupported Command "0"



    Ticket should be closed by Rexxcoder


    updated Test1.rex works now as expected

    the correct use of Stream and LINEOUT are used also in my Lotto-Program for windows,

    adapted from my z/VM - version.


    Attachments:





    [documentation:#281] LINEOUT - Command in Windows 10 -> unsupported Command "0"


    Status: wont-fix

    Group: None

    Created: Tue Mar 09, 2021 12:28 PM UTC by Franz J. Marx

    Last Updated: Tue Mar 09, 2021 05:20 PM UTC

    Owner: Rexxcoder

    Attachments:



    • Test1.rex (913 Bytes; application/octet-stream)


    15 - LINEOUT(myfile,myline) / Append a line to the file /

    >V> MYFILE => "Test1.txt"

    >A> "Test1.txt"

    >V> MYLINE => "this is my Test1.txt 8 Mar 2021 14:16:37"

    >A> "this is my Test1.txt 8 Mar 2021 14:16:37"

    >F> LINEOUT => "0"

    >>> "0"

    Der Befehl "0" ist entweder falsch geschrieben oder

    konnte nicht gefunden werden.

    +++ "RC(1)"




    Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/oorexx/documentation/281/


    To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/



    <link itemprop="url" href="https://sourceforge.net/p/oorexx/documentation/281/">
    <meta itemprop="name" content="View">

    <meta itemprop="description" content="View">
    /fmarx@users.sourceforge.net

    Tony Dycks
    panfisher@earthlink.net


     

    Related

    Documentation Bugs: #281

  • Erich

    Erich - 2021-03-12

    Hi Tony,
    it seems that the ticket creator had wrongly selected you as owner when he opened this doc bug.
    The ticket has already been closed - see "Status: wont-fix" in the header
    No action necessary from your side.

    Any ticket attachments are just local attachments here and are not uploaded into our SVN tree.
    Any of the devs can close tickets (maybe the ticket creator can close it, too .. not sure)
    I'll remove you as owner of this ticket.

     
  • Erich

    Erich - 2021-03-12
    • assigned_to: Rexxcoder --> nobody
     
  • Rexxcoder

    Rexxcoder - 2021-03-12

    <style type="text/css"><!-- DIV {margin:0px;} --></style>

    Thanks Erich for the update and the info regarding SVN. Since I'm  a newbie, I figured I'd check before doing any erroneous admin work. 
    Best Regards and Wellness, Tony Dycks

    -----Original Message-----

    From: Erich erich_st@users.sourceforge.net

    Sent: Mar 12, 2021 12:34 AM

    To: "[oorexx:documentation] " <281@documentation.oorexx.p.re.sourceforge.net>

    Subject: [oorexx:documentation] #281 LINEOUT - Command in Windows 10 -> unsupported Command "0"



    Hi Tony,

    it seems that the ticket creator had wrongly selected you as owner when he opened this doc bug.

    The ticket has already been closed - see "Status: wont-fix" in the header

    No action necessary from your side.


    Any ticket attachments are just local attachments here and are not uploaded into our SVN tree.

    Any of the devs can close tickets (maybe the ticket creator can close it, too .. not sure)

    I'll remove you as owner of this ticket.




    [documentation:#281] LINEOUT - Command in Windows 10 -> unsupported Command "0"


    Status: wont-fix

    Group: None

    Created: Tue Mar 09, 2021 12:28 PM UTC by Franz J. Marx

    Last Updated: Wed Mar 10, 2021 09:56 AM UTC

    Owner: Rexxcoder

    Attachments:



    • Test1.rex (913 Bytes; application/octet-stream)


    15 - LINEOUT(myfile,myline) / Append a line to the file /

    >V> MYFILE => "Test1.txt"

    >A> "Test1.txt"

    >V> MYLINE => "this is my Test1.txt 8 Mar 2021 14:16:37"

    >A> "this is my Test1.txt 8 Mar 2021 14:16:37"

    >F> LINEOUT => "0"

    >>> "0"

    Der Befehl "0" ist entweder falsch geschrieben oder

    konnte nicht gefunden werden.

    +++ "RC(1)"




    Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/oorexx/documentation/281/


    To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/



    <link itemprop="url" href="https://sourceforge.net/p/oorexx/documentation/281/">
    <meta itemprop="name" content="View">

    <meta itemprop="description" content="View">
    /erich_st@users.sourceforge.net

    Tony Dycks
    panfisher@earthlink.net


     

    Related

    Documentation Bugs: #281

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.