Code Comments
Programming Forum and web based access to our favorite programming groups.Hello,
I am very new to Regina rexx.
I am running on Win XP Pro SP2, Regina Rexx 3.4
I am using lineout to write to a file.
A sample of the lineout is below ...
lineout('c:\data\rpt2.csv',lout)
The lineout seems to be writing to the file but in the dos box I am getting
the below error on every lineout write...
'0' is not recognized as an internal or external command, operable program o
r
batch file
How can I suppress this message ? Is lineout stacking the return code or
something?
Thank you very much
Neil
Post Follow-up to this messageNeil wrote:
> Hello,
>
> I am very new to Regina rexx.
> I am running on Win XP Pro SP2, Regina Rexx 3.4
> I am using lineout to write to a file.
> A sample of the lineout is below ...
>
> lineout('c:\data\rpt2.csv',lout)
>
> The lineout seems to be writing to the file but in the dos box I am gettin
g
> the below error on every lineout write...
>
> '0' is not recognized as an internal or external command, operable program
or
> batch file
>
> How can I suppress this message ? Is lineout stacking the return code or
> something?
>
> Thank you very much
> Neil
>
>
A similar question has come up recently. Please see
news://newsgroups.bellsouth.net:119/6dc75$47ea3fa7$d022f002$6185@SAFEDATAUSA
.COM
Gil B.
Post Follow-up to this messageIn article <Ys9Hj.24965$dT.15957@bignews1.bellsouth.net>, gil_b@bellsouth.ne t says... > >Neil wrote: or >A similar question has come up recently. Please see > >news://newsgroups.bellsouth.net:119/6dc75$47ea3fa7$d022f002$6185@SAFEDATAUSA.[/colo r] COM > >Gil B. Thank you very much Gil. Found it. Call lineout
Post Follow-up to this messageIn <5880$47ed21b8$d1d94979$18704@PRIMUS.CA>, on 03/28/2008
at 04:50 PM, none (Neil) said:
>I am very new to Regina rexx.
What you are seeing is not specific to Regina; you've misunderstood REXX
syntax and semantics.
>lineout('c:\data\rpt2.csv',lout)
The REXX semantics for that statement are to treat the value of the
expression as a command in the default environment. To do what you want
use one of
status=lineout('c:\data\rpt2.csv',lout)
call lineout 'c:\data\rpt2.csv', lout
>'0' is not recognized as an internal or external command, operable
>program or batch file
The function lineout returns 0 if successful. DOS does not recognize 0 as
a valid command.
>How can I suppress this message ?
By not using the inappropriate statement; see above.
--
Shmuel (Seymour J.) Metz, SysProg and JOAT <http://patriot.net/~shmuel>
Unsolicited bulk E-mail subject to legal action. I reserve the
right to publicly post or ridicule any abusive E-mail. Reply to
domain Patriot dot net user shmuel+news to contact me. Do not
reply to spamtrap@library.lspace.org
Post Follow-up to this messageThank you for the information.
Thx
Neil
In article <47ed3ba1$1$fuzhry+tra$mr2ice@news.patriot.net>, spamtrap@library.lspace.org.inv
alid says...
>
>In <5880$47ed21b8$d1d94979$18704@PRIMUS.CA>, on 03/28/2008
> at 04:50 PM, none (Neil) said:
>
>
>What you are seeing is not specific to Regina; you've misunderstood REXX
>syntax and semantics.
>
>
>The REXX semantics for that statement are to treat the value of the
>expression as a command in the default environment. To do what you want
>use one of
>
> status=lineout('c:\data\rpt2.csv',lout)
> call lineout 'c:\data\rpt2.csv', lout
>
>
>The function lineout returns 0 if successful. DOS does not recognize 0 as
>a valid command.
>
>
>By not using the inappropriate statement; see above.
>
>--
>Shmuel (Seymour J.) Metz, SysProg and JOAT <http://patriot.net/~shmuel>
>
>Unsolicited bulk E-mail subject to legal action. I reserve the
>right to publicly post or ridicule any abusive E-mail. Reply to
>domain Patriot dot net user shmuel+news to contact me. Do not
>reply to spamtrap@library.lspace.org
>
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.