Re: [Oorexx-devel] suboptimal error diagnostic

2022-07-25 Thread Mike Cowlishaw
But you originally posted:
 
H:\_tri>rexx good 
We call bad 
27 *-* End , call o fl 
2 *-* Call merge 
Error 21 running H:\_tri\merge.rex line 27: Invalid data on end of clause. 
Error 21.909: Data must not follow the END control variable name; found "O".

 
which shows merge being called (from line 2) and then where in merge (line
27) the error was found.
 
So what's the problem?
 
Mike
 
 
 
 


  _  

From: 'WalterPachl' [mailto:pa...@chello.at] 
Sent: 25 July 2022 15:20
To: Mike Cowlishaw
Subject: RE: [Oorexx-devel] suboptimal error diagnostic


I think I surrender 

I KNOW where merge is called. 

I run this very program 

I am told by Rexx that there is an error in line 219  (the Call merge) 

which is definitely a correct statement :-) 


Syntax raised in line 219 
Call merge pn 
rc=21 (Invalid data on end of clause.) 


  _  

From: WalterPachl via Oorexx-devel
[mailto:oorexx-devel@lists.sourceforge.net] 
Sent: 25 July 2022 11:47
To: Open Object Rexx Developer Mailing List
Cc: WalterPachl
Subject: Re: [Oorexx-devel] suboptimal error diagnostic


I know what the problem is: the comma after the End. 

I consider your diagnostic no better. There is no control variable. 

Anyway: the diagnostic in context is what I consider suboptimal! 

See my first posting on that matter 

Thanks anyway 

Walter 


Rick McGuire  hat am 25.07.2022 12:03 geschrieben: 


I get a different result on the current build,  

29 *-* End ,Call lineout oid 
 1 *-* call merge 
Error 21 running E:\ORexxDev\builds\oorexx\merge.rex line 29:  Invalid data
on end of clause. 
Error 21.909:  Data must not follow the END control variable name; found
"LINEOUT". 


you do have a dangling continuation character after the END.  

Rick 

On Mon, Jul 25, 2022 at 5:55 AM WalterPachl via Oorexx-devel
 wrote: 



H:\_tri>rexx merge 
REXX-ooRexx_5.0.0(MT)_64-bit 6.05 21 Apr 2022 
H:\_tri\.html konnte nicht gefunden werden 
H:\_tri>rexx merge 
29 *-* End ,Call lineout oid 
Error 21 running H:\_tri\merge.rex line 29: Invalid data on end of clause. 
Error 21.909: Data must not follow the END control variable name; found
"LINEOUT". 

Parse Arg pn 
Parse Var pn name '_' 
frame='7.html' 
data=name'_html.data' 
oid=name'.html'; 'erase' oid 
Do While lines(data)>0 
dl=linein(data) 
Do While lines(frame)>0 
fl=linein(frame) 
If left(fl,4)='' 
Leave 
End 
call o fl 
End 
End 
Do While lines(frame)>0 
fl=linein(frame) 
If left(fl,4)='D' Then Do 
Parse Var fl aaa ':' 
fl=aaa':' date() time() 
End 
call o fl 
End , 
Call lineout oid 
Exit 
o: Return lineout(oid,arg(1)) 

Rick McGuire  hat am 25.07.2022 11:22 geschrieben: 


Without being able to see merge.rex, it's pretty much impossible to give you
an answer. Also, which version of oorexx are you using? 

Rick 

On Mon, Jul 25, 2022 at 2:28 AM WalterPachl via Oorexx-devel
 wrote: 



A phenomenon: 
A rather large program of mine ends as follows: 

H:\_tri>rexx trid test 
Syntax raised in line 219 
Call merge pn 
rc=21 (Invalid data on end of clause.) 

The problem lies in merge.rex as shown by this snippet: 

H:\_tri>rexx good 
We call bad 
27 *-* End , call o fl 
2 *-* Call merge 
Error 21 running H:\_tri\merge.rex line 27: Invalid data on end of clause. 
Error 21.909: Data must not follow the END control variable name; found "O".


Any idea? 
Regards 
Walter 

PS There is no "END control variable name" in merge.rex 

___ 
Oorexx-devel mailing list 
Oorexx-devel@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/oorexx-devel 


___ 
Oorexx-devel mailing list 
Oorexx-devel@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/oorexx-devel 






___ 
Oorexx-devel mailing list 
Oorexx-devel@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/oorexx-devel 


___ 
Oorexx-devel mailing list 
Oorexx-devel@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/oorexx-devel 



LG


Walter


___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


Re: [Oorexx-devel] suboptimal error diagnostic

2022-07-25 Thread Mike Cowlishaw
Not sure I understand.  Why don't you want to know from where merge was
called?   
 
Mike

Once more: 

I don't like that the Call statement in the calling program is blamed for
the syntax error in the involed external rex. 


H:\_tri>rexx trid test 
Syntax raised in line 219 
Call merge pn 
rc=21 (Invalid data on end of clause.) 


___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


Re: [Oorexx-devel] suboptimal error diagnostic

2022-07-25 Thread WalterPachl via Oorexx-devel
Once more:
I don't like that the Call statement in the calling program is blamed for the 
syntax error in the involed external rex.

H:\_tri>rexx trid test
Syntax raised in line 219
Call merge pn
rc=21 (Invalid data on end of clause.)
___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


Re: [Oorexx-devel] suboptimal error diagnostic

2022-07-25 Thread Rick McGuire
In the parsing process, the check for invalid data on the end of the clause
happens first. The search for the matching control structure doesn't happen
until a correctly formed instruction is available.

Rick

On Mon, Jul 25, 2022 at 8:58 AM Mike Cowlishaw  wrote:

> Well, Walter, if you knew what the problem was ...
>
> It seems perfectly reasonable to be for the interpreter to treat 'call'
> there as the name of a control variable (as that's all that is allowed
> there).  But in this case I suppose "loop has no control variable but one
> is specified" might be more accurate -- but perhaps is just as confusing?
>
> Mike
>
>
>
>
> --
> *From:* WalterPachl via Oorexx-devel [mailto:
> oorexx-devel@lists.sourceforge.net]
> *Sent:* 25 July 2022 11:47
> *To:* Open Object Rexx Developer Mailing List
> *Cc:* WalterPachl
> *Subject:* Re: [Oorexx-devel] suboptimal error diagnostic
>
> *I know what the problem is:* the comma after the End.
> I consider your diagnostic no better. There is no control variable.
> Anyway: the diagnostic in context is what I consider suboptimal!
> See my first posting on that matter
> Thanks anyway
> Walter
>
> Rick McGuire  hat am 25.07.2022 12:03 geschrieben:
>
>
> I get a different result on the current build,
>
> 29 *-* End ,Call lineout oid
>  1 *-* call merge
> Error 21 running E:\ORexxDev\builds\oorexx\merge.rex line 29:  Invalid
> data on end of clause.
> Error 21.909:  Data must not follow the END control variable name; found
> "LINEOUT".
>
> you do have a dangling continuation character after the END.
>
> Rick
>
> On Mon, Jul 25, 2022 at 5:55 AM WalterPachl via Oorexx-devel <
> oorexx-devel@lists.sourceforge.net> wrote:
>
> H:\_tri>rexx merge
> REXX-ooRexx_5.0.0(MT)_64-bit 6.05 21 Apr 2022
> H:\_tri\.html konnte nicht gefunden werden
> H:\_tri>rexx merge
> 29 *-* End ,Call lineout oid
> Error 21 running H:\_tri\merge.rex line 29: Invalid data on end of clause.
> Error 21.909: Data must not follow the END control variable name; found
> "LINEOUT".
>
> Parse Arg pn
> Parse Var pn name '_'
> frame='7.html'
> data=name'_html.data'
> oid=name'.html'; 'erase' oid
> Do While lines(data)>0
> dl=linein(data)
> Do While lines(frame)>0
> fl=linein(frame)
> If left(fl,4)=' Parse Var fl aaa "'" p "." bbb
> Call o aaa"'"pn"."bbb
> Iterate
> End
> If left(fl,2)=left(dl,2) Then Do
> Call o dl''
> Leave
> End
> call o fl
> End
> End
> Do While lines(frame)>0
> fl=linein(frame)
> If left(fl,4)='D' Then Do
> Parse Var fl aaa ':'
> fl=aaa':' date() time()
> End
> call o fl
> End ,
> Call lineout oid
> Exit
> o: Return lineout(oid,arg(1))
>
> Rick McGuire  hat am 25.07.2022 11:22 geschrieben:
>
>
> Without being able to see merge.rex, it's pretty much impossible to give
> you an answer. Also, which version of oorexx are you using?
>
> Rick
>
> On Mon, Jul 25, 2022 at 2:28 AM WalterPachl via Oorexx-devel <
> oorexx-devel@lists.sourceforge.net> wrote:
>
> A phenomenon:
> A rather large program of mine ends as follows:
>
> H:\_tri>rexx trid test
> Syntax raised in line 219
> Call merge pn
> rc=21 (Invalid data on end of clause.)
>
> The problem lies in merge.rex as shown by this snippet:
>
> H:\_tri>rexx good
> We call bad
> 27 *-* End , call o fl
> 2 *-* Call merge
> Error 21 running H:\_tri\merge.rex line 27: Invalid data on end of clause.
> Error 21.909: Data must not follow the END control variable name; found
> "O".
>
> Any idea?
> Regards
> Walter
>
> PS There is no "END control variable name" in merge.rex
> ___
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
> ___
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
>
>
> ___
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
> ___
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
>
> LG
>
> Walter
>
> ___
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


Re: [Oorexx-devel] suboptimal error diagnostic

2022-07-25 Thread Michael Lueck

Greetings ooRexx'ers,

WalterPachl via Oorexx-devel wrote:

*I know what the problem is:* the comma after the End.


Rick McGuire  hat am 25.07.2022 12:03 geschrieben:

you do have a dangling continuation character after the END.



haha reminds me from my high school years of a "part of speech" I termed 
with accompanying example sentence:

"The Dangling Participle" Ex: "The man rolled down the barn roof and fell into a 
pile of."

I am thankful,

--
Michael Lueck
Lueck Data Systems
http://www.lueckdatasystems.com/


___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


Re: [Oorexx-devel] suboptimal error diagnostic

2022-07-25 Thread Mike Cowlishaw
Well, Walter, if you knew what the problem was ...
 
It seems perfectly reasonable to be for the interpreter to treat 'call'
there as the name of a control variable (as that's all that is allowed
there).  But in this case I suppose "loop has no control variable but one is
specified" might be more accurate -- but perhaps is just as confusing?
 
Mike
 
 
 


  _  

From: WalterPachl via Oorexx-devel
[mailto:oorexx-devel@lists.sourceforge.net] 
Sent: 25 July 2022 11:47
To: Open Object Rexx Developer Mailing List
Cc: WalterPachl
Subject: Re: [Oorexx-devel] suboptimal error diagnostic


I know what the problem is: the comma after the End. 

I consider your diagnostic no better. There is no control variable. 

Anyway: the diagnostic in context is what I consider suboptimal! 

See my first posting on that matter 

Thanks anyway 

Walter 


Rick McGuire  hat am 25.07.2022 12:03 geschrieben: 


I get a different result on the current build,  

29 *-* End ,Call lineout oid 
 1 *-* call merge 
Error 21 running E:\ORexxDev\builds\oorexx\merge.rex line 29:  Invalid data
on end of clause. 
Error 21.909:  Data must not follow the END control variable name; found
"LINEOUT". 


you do have a dangling continuation character after the END.  

Rick 

On Mon, Jul 25, 2022 at 5:55 AM WalterPachl via Oorexx-devel
 wrote: 



H:\_tri>rexx merge 
REXX-ooRexx_5.0.0(MT)_64-bit 6.05 21 Apr 2022 
H:\_tri\.html konnte nicht gefunden werden 
H:\_tri>rexx merge 
29 *-* End ,Call lineout oid 
Error 21 running H:\_tri\merge.rex line 29: Invalid data on end of clause. 
Error 21.909: Data must not follow the END control variable name; found
"LINEOUT". 

Parse Arg pn 
Parse Var pn name '_' 
frame='7.html' 
data=name'_html.data' 
oid=name'.html'; 'erase' oid 
Do While lines(data)>0 
dl=linein(data) 
Do While lines(frame)>0 
fl=linein(frame) 
If left(fl,4)='' 
Leave 
End 
call o fl 
End 
End 
Do While lines(frame)>0 
fl=linein(frame) 
If left(fl,4)='D' Then Do 
Parse Var fl aaa ':' 
fl=aaa':' date() time() 
End 
call o fl 
End , 
Call lineout oid 
Exit 
o: Return lineout(oid,arg(1)) 

Rick McGuire  hat am 25.07.2022 11:22 geschrieben: 


Without being able to see merge.rex, it's pretty much impossible to give you
an answer. Also, which version of oorexx are you using? 

Rick 

On Mon, Jul 25, 2022 at 2:28 AM WalterPachl via Oorexx-devel
 wrote: 



A phenomenon: 
A rather large program of mine ends as follows: 

H:\_tri>rexx trid test 
Syntax raised in line 219 
Call merge pn 
rc=21 (Invalid data on end of clause.) 

The problem lies in merge.rex as shown by this snippet: 

H:\_tri>rexx good 
We call bad 
27 *-* End , call o fl 
2 *-* Call merge 
Error 21 running H:\_tri\merge.rex line 27: Invalid data on end of clause. 
Error 21.909: Data must not follow the END control variable name; found "O".


Any idea? 
Regards 
Walter 

PS There is no "END control variable name" in merge.rex 

___ 
Oorexx-devel mailing list 
Oorexx-devel@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/oorexx-devel 


___ 
Oorexx-devel mailing list 
Oorexx-devel@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/oorexx-devel 






___ 
Oorexx-devel mailing list 
Oorexx-devel@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/oorexx-devel 


___ 
Oorexx-devel mailing list 
Oorexx-devel@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/oorexx-devel 



LG


Walter


___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


Re: [Oorexx-devel] suboptimal error diagnostic

2022-07-25 Thread Rick McGuire
Then open a bug report.

Rick

On Mon, Jul 25, 2022 at 6:47 AM WalterPachl via Oorexx-devel <
oorexx-devel@lists.sourceforge.net> wrote:

> *I know what the problem is:* the comma after the End.
> I consider your diagnostic no better. There is no control variable.
> Anyway: the diagnostic in context is what I consider suboptimal!
> See my first posting on that matter
> Thanks anyway
> Walter
>
> Rick McGuire  hat am 25.07.2022 12:03 geschrieben:
>
>
> I get a different result on the current build,
>
> 29 *-* End ,Call lineout oid
>  1 *-* call merge
> Error 21 running E:\ORexxDev\builds\oorexx\merge.rex line 29:  Invalid
> data on end of clause.
> Error 21.909:  Data must not follow the END control variable name; found
> "LINEOUT".
>
> you do have a dangling continuation character after the END.
>
> Rick
>
> On Mon, Jul 25, 2022 at 5:55 AM WalterPachl via Oorexx-devel <
> oorexx-devel@lists.sourceforge.net> wrote:
>
> H:\_tri>rexx merge
> REXX-ooRexx_5.0.0(MT)_64-bit 6.05 21 Apr 2022
> H:\_tri\.html konnte nicht gefunden werden
> H:\_tri>rexx merge
> 29 *-* End ,Call lineout oid
> Error 21 running H:\_tri\merge.rex line 29: Invalid data on end of clause.
> Error 21.909: Data must not follow the END control variable name; found
> "LINEOUT".
>
> Parse Arg pn
> Parse Var pn name '_'
> frame='7.html'
> data=name'_html.data'
> oid=name'.html'; 'erase' oid
> Do While lines(data)>0
> dl=linein(data)
> Do While lines(frame)>0
> fl=linein(frame)
> If left(fl,4)=' Parse Var fl aaa "'" p "." bbb
> Call o aaa"'"pn"."bbb
> Iterate
> End
> If left(fl,2)=left(dl,2) Then Do
> Call o dl''
> Leave
> End
> call o fl
> End
> End
> Do While lines(frame)>0
> fl=linein(frame)
> If left(fl,4)='D' Then Do
> Parse Var fl aaa ':'
> fl=aaa':' date() time()
> End
> call o fl
> End ,
> Call lineout oid
> Exit
> o: Return lineout(oid,arg(1))
>
> Rick McGuire  hat am 25.07.2022 11:22 geschrieben:
>
>
> Without being able to see merge.rex, it's pretty much impossible to give
> you an answer. Also, which version of oorexx are you using?
>
> Rick
>
> On Mon, Jul 25, 2022 at 2:28 AM WalterPachl via Oorexx-devel <
> oorexx-devel@lists.sourceforge.net> wrote:
>
> A phenomenon:
> A rather large program of mine ends as follows:
>
> H:\_tri>rexx trid test
> Syntax raised in line 219
> Call merge pn
> rc=21 (Invalid data on end of clause.)
>
> The problem lies in merge.rex as shown by this snippet:
>
> H:\_tri>rexx good
> We call bad
> 27 *-* End , call o fl
> 2 *-* Call merge
> Error 21 running H:\_tri\merge.rex line 27: Invalid data on end of clause.
> Error 21.909: Data must not follow the END control variable name; found
> "O".
>
> Any idea?
> Regards
> Walter
>
> PS There is no "END control variable name" in merge.rex
> ___
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
> ___
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
>
>
> ___
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
> ___
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
>
> LG
>
> Walter
> ___
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


Re: [Oorexx-devel] suboptimal error diagnostic

2022-07-25 Thread WalterPachl via Oorexx-devel
I know what the problem is: the comma after the End.
I consider your diagnostic no better. There is no control variable.
Anyway: the diagnostic in context is what I consider suboptimal!
See my first posting on that matter
Thanks anyway
Walter

> Rick McGuire  hat am 25.07.2022 12:03 geschrieben:
> 
> 
> I get a different result on the current build, 
> 
> 29 *-* End ,Call lineout oid
>  1 *-* call merge
> Error 21 running E:\ORexxDev\builds\oorexx\merge.rex line 29:  Invalid 
> data on end of clause.
> Error 21.909:  Data must not follow the END control variable name; found 
> "LINEOUT".
> 
> you do have a dangling continuation character after the END. 
> 
> Rick
> 
> On Mon, Jul 25, 2022 at 5:55 AM WalterPachl via Oorexx-devel 
> mailto:oorexx-devel@lists.sourceforge.net 
> > wrote:
> 
> > > H:\_tri>rexx merge
> > REXX-ooRexx_5.0.0(MT)_64-bit 6.05 21 Apr 2022
> > H:\_tri\.html konnte nicht gefunden werden
> > H:\_tri>rexx merge
> > 29 *-* End ,Call lineout oid
> > Error 21 running H:\_tri\merge.rex line 29: Invalid data on end of 
> > clause.
> > Error 21.909: Data must not follow the END control variable name; 
> > found "LINEOUT".
> > 
> > Parse Arg pn
> > Parse Var pn name '_'
> > frame='7.html'
> > data=name'_html.data'
> > oid=name'.html'; 'erase' oid
> > Do While lines(data)>0
> > dl=linein(data)
> > Do While lines(frame)>0
> > fl=linein(frame)
> > If left(fl,4)=' > Parse Var fl aaa "'" p "." bbb
> > Call o aaa"'"pn"."bbb
> > Iterate
> > End
> > If left(fl,2)=left(dl,2) Then Do
> > Call o dl''
> > Leave
> > End
> > call o fl
> > End
> > End
> > Do While lines(frame)>0
> > fl=linein(frame)
> > If left(fl,4)='D' Then Do
> > Parse Var fl aaa ':'
> > fl=aaa':' date() time()
> > End
> > call o fl
> > End ,
> > Call lineout oid
> > Exit
> > o: Return lineout(oid,arg(1))
> > 
> > > > > Rick McGuire  > mailto:object.r...@gmail.com > hat am 25.07.2022 11:22 geschrieben:
> > > 
> > > 
> > > Without being able to see merge.rex, it's pretty much 
> > > impossible to give you an answer. Also, which version of oorexx are you 
> > > using?
> > > 
> > > Rick
> > > 
> > > On Mon, Jul 25, 2022 at 2:28 AM WalterPachl via Oorexx-devel 
> > >  > > mailto:oorexx-devel@lists.sourceforge.net > wrote:
> > > 
> > > > > > > A phenomenon:
> > > > A rather large program of mine ends as follows:
> > > > 
> > > > H:\_tri>rexx trid test
> > > > Syntax raised in line 219
> > > > Call merge pn
> > > > rc=21 (Invalid data on end of clause.)
> > > > 
> > > > The problem lies in merge.rex as shown by this snippet:
> > > > 
> > > > H:\_tri>rexx good
> > > > We call bad
> > > > 27 *-* End , call o fl
> > > > 2 *-* Call merge
> > > > Error 21 running H:\_tri\merge.rex line 27: Invalid 
> > > > data on end of clause.
> > > > Error 21.909: Data must not follow the END control 
> > > > variable name; found "O".
> > > > 
> > > > Any idea?
> > > > Regards
> > > > Walter
> > > > 
> > > > PS There is no "END control variable name" in merge.rex
> > > > ___
> > > > Oorexx-devel mailing list
> > > > Oorexx-devel@lists.sourceforge.net 
> > > > mailto:Oorexx-devel@lists.sourceforge.net
> > > > 
> > > > https://lists.sourceforge.net/lists/listinfo/oorexx-devel
> > > > 
> > > > > > > 
> > > > ___
> > > Oorexx-devel mailing list
> > > Oorexx-devel@lists.sourceforge.net 
> > > mailto:Oorexx-devel@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/oorexx-devel
> > > 
> > > > > 
> > 
> > 
> > ___
> > Oorexx-devel mailing list
> > Oorexx-devel@lists.sourceforge.net 
> > mailto:Oorexx-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/oorexx-devel
> > 
> > > ___
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
> 


LG

Walter
___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-d

Re: [Oorexx-devel] suboptimal error diagnostic

2022-07-25 Thread Rick McGuire
I get a different result on the current build,

29 *-* End ,Call lineout oid
 1 *-* call merge
Error 21 running E:\ORexxDev\builds\oorexx\merge.rex line 29:  Invalid data
on end of clause.
Error 21.909:  Data must not follow the END control variable name; found
"LINEOUT".

you do have a dangling continuation character after the END.

Rick

On Mon, Jul 25, 2022 at 5:55 AM WalterPachl via Oorexx-devel <
oorexx-devel@lists.sourceforge.net> wrote:

> H:\_tri>rexx merge
> REXX-ooRexx_5.0.0(MT)_64-bit 6.05 21 Apr 2022
> H:\_tri\.html konnte nicht gefunden werden
> H:\_tri>rexx merge
> 29 *-* End ,Call lineout oid
> Error 21 running H:\_tri\merge.rex line 29: Invalid data on end of clause.
> Error 21.909: Data must not follow the END control variable name; found
> "LINEOUT".
>
> Parse Arg pn
> Parse Var pn name '_'
> frame='7.html'
> data=name'_html.data'
> oid=name'.html'; 'erase' oid
> Do While lines(data)>0
> dl=linein(data)
> Do While lines(frame)>0
> fl=linein(frame)
> If left(fl,4)=' Parse Var fl aaa "'" p "." bbb
> Call o aaa"'"pn"."bbb
> Iterate
> End
> If left(fl,2)=left(dl,2) Then Do
> Call o dl''
> Leave
> End
> call o fl
> End
> End
> Do While lines(frame)>0
> fl=linein(frame)
> If left(fl,4)='D' Then Do
> Parse Var fl aaa ':'
> fl=aaa':' date() time()
> End
> call o fl
> End ,
> Call lineout oid
> Exit
> o: Return lineout(oid,arg(1))
>
> Rick McGuire  hat am 25.07.2022 11:22 geschrieben:
>
>
> Without being able to see merge.rex, it's pretty much impossible to give
> you an answer. Also, which version of oorexx are you using?
>
> Rick
>
> On Mon, Jul 25, 2022 at 2:28 AM WalterPachl via Oorexx-devel <
> oorexx-devel@lists.sourceforge.net> wrote:
>
> A phenomenon:
> A rather large program of mine ends as follows:
>
> H:\_tri>rexx trid test
> Syntax raised in line 219
> Call merge pn
> rc=21 (Invalid data on end of clause.)
>
> The problem lies in merge.rex as shown by this snippet:
>
> H:\_tri>rexx good
> We call bad
> 27 *-* End , call o fl
> 2 *-* Call merge
> Error 21 running H:\_tri\merge.rex line 27: Invalid data on end of clause.
> Error 21.909: Data must not follow the END control variable name; found
> "O".
>
> Any idea?
> Regards
> Walter
>
> PS There is no "END control variable name" in merge.rex
> ___
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
> ___
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
>
>
> ___
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


Re: [Oorexx-devel] suboptimal error diagnostic

2022-07-25 Thread WalterPachl via Oorexx-devel
H:\_tri>rexx merge
REXX-ooRexx_5.0.0(MT)_64-bit 6.05 21 Apr 2022
H:\_tri\.html konnte nicht gefunden werden
H:\_tri>rexx merge
29 *-* End ,Call lineout oid
Error 21 running H:\_tri\merge.rex line 29: Invalid data on end of clause.
Error 21.909: Data must not follow the END control variable name; found 
"LINEOUT".

Parse Arg pn
Parse Var pn name '_'
frame='7.html'
data=name'_html.data'
oid=name'.html'; 'erase' oid
Do While lines(data)>0
dl=linein(data)
Do While lines(frame)>0
fl=linein(frame)
If left(fl,4)=''
Leave
End
call o fl
End
End
Do While lines(frame)>0
fl=linein(frame)
If left(fl,4)='D' Then Do
Parse Var fl aaa ':'
fl=aaa':' date() time()
End
call o fl
End ,
Call lineout oid
Exit
o: Return lineout(oid,arg(1))

> Rick McGuire  hat am 25.07.2022 11:22 geschrieben:
> 
> 
> Without being able to see merge.rex, it's pretty much impossible to give 
> you an answer. Also, which version of oorexx are you using?
> 
> Rick
> 
> On Mon, Jul 25, 2022 at 2:28 AM WalterPachl via Oorexx-devel 
> mailto:oorexx-devel@lists.sourceforge.net 
> > wrote:
> 
> > > A phenomenon:
> > A rather large program of mine ends as follows:
> > 
> > H:\_tri>rexx trid test
> > Syntax raised in line 219
> > Call merge pn
> > rc=21 (Invalid data on end of clause.)
> > 
> > The problem lies in merge.rex as shown by this snippet:
> > 
> > H:\_tri>rexx good
> > We call bad
> > 27 *-* End , call o fl
> > 2 *-* Call merge
> > Error 21 running H:\_tri\merge.rex line 27: Invalid data on end of 
> > clause.
> > Error 21.909: Data must not follow the END control variable name; 
> > found "O".
> > 
> > Any idea?
> > Regards
> > Walter
> > 
> > PS There is no "END control variable name" in merge.rex
> > ___
> > Oorexx-devel mailing list
> > Oorexx-devel@lists.sourceforge.net 
> > mailto:Oorexx-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/oorexx-devel
> > 
> > > ___
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
> 
___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


Re: [Oorexx-devel] suboptimal error diagnostic

2022-07-25 Thread Rick McGuire
Without being able to see merge.rex, it's pretty much impossible to give
you an answer. Also, which version of oorexx are you using?

Rick

On Mon, Jul 25, 2022 at 2:28 AM WalterPachl via Oorexx-devel <
oorexx-devel@lists.sourceforge.net> wrote:

> A phenomenon:
> A rather large program of mine ends as follows:
>
> H:\_tri>rexx trid test
> Syntax raised in line 219
> Call merge pn
> rc=21 (Invalid data on end of clause.)
>
> The problem lies in merge.rex as shown by this snippet:
>
> H:\_tri>rexx good
> We call bad
> 27 *-* End , call o fl
> 2 *-* Call merge
> Error 21 running H:\_tri\merge.rex line 27: Invalid data on end of clause.
> Error 21.909: Data must not follow the END control variable name; found
> "O".
>
> Any idea?
> Regards
> Walter
>
> PS There is no "END control variable name" in merge.rex
> ___
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


Re: [Oorexx-devel] suboptimal error diagnostic

2022-07-25 Thread WalterPachl via Oorexx-devel
Not al all!
The comma was there by mistake and it took me a while to find the problem
Call merge pn couldn't be the problem!
___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


Re: [Oorexx-devel] suboptimal error diagnostic

2022-07-25 Thread Mike Cowlishaw
Did you mean to put a semicolon after that 'End'?
 
Mike


  _  

From: WalterPachl via Oorexx-devel
[mailto:oorexx-devel@lists.sourceforge.net] 
Sent: 25 July 2022 07:02
To: Open Object Rexx Developer Mailing List
Cc: WalterPachl
Subject: [Oorexx-devel] suboptimal error diagnostic


A phenomenon: 
A rather large program of mine ends as follows: 

H:\_tri>rexx trid test 
Syntax raised in line 219 
Call merge pn 
rc=21 (Invalid data on end of clause.) 

The problem lies in merge.rex as shown by this snippet: 

H:\_tri>rexx good 
We call bad 
27 *-* End , call o fl 
2 *-* Call merge 
Error 21 running H:\_tri\merge.rex line 27: Invalid data on end of clause. 
Error 21.909: Data must not follow the END control variable name; found "O".


Any idea? 
Regards 
Walter 

PS There is no "END control variable name" in merge.rex 


___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel