RE: ** Attempt to write with no current output destination. (165) - Solved

From: Darrell Woodard

Date: 6 Dec 2004


Yes. Problem solved. My error AGAIN!
Message statement for debugging purposes that was left in production code.

-----Original Message-----
From: Lajos Szoke [mailto:ae0b643c-b939-8280-de11-770343b8d03e]
Sent: Monday, December 06, 2004 12:22 PM
To: Darrell Woodard; 
Subject: RE: ** Attempt to write with no current output destination.
(165)


Was anything actually written out to the redirected destination?

Lali Szoke

-----Original Message-----
From:  [mailto:]On Behalf Of Darrell
Woodard
Sent: Monday, December 06, 2004 12:10 PM
To: 
Subject: RE: ** Attempt to write with no current output destination.
(165)


I added the redirect as suggested below and it works fine.
There are no display statements in my program. That is why I was surprised
by the error.
The program reads emails in my inbox, reformats the subject line, and moves
the email to another outlook folder. That is it.

----
Batch programs are written such that it requires an output file to be
specified, so all you need to do is add a output re-direct:
"C:\Program Files\PROGRESS\bin\prowin32.exe" -b -p
p:\pwc_time\email_1call.r
-Mm 8192  > output-file-name.txt
          ^^^^^^^^^^^^^^^^^^^^^^
Tim Kuehn
----
-----Original Message-----
From: ae0b643c-b939-8280-de11-7203fdbf1849 [mailto:ae0b643c-b939-8280-de11-7203fdbf1849]
Sent: Monday, December 06, 2004 11:43 AM
To: 
Subject: Re: ** Attempt to write with no current output destination.(165)

You probably have a display statement in the program.  In batch there is
no stdin or stdout data streams (or what ever the Windows equivalent is).

You need add an output to or through OR find the display and get rid of it.
Alan Dashoff

"Darrell Woodard" <8b4a52fe-9ac3-7dbb-de11-b201aeda9f28>
Sent by: 
12/06/2004 11:36 AM

To 

Subject ** Attempt to write with no current output destination. (165)

Win XP
Progress v9.1D09

A program runs fine from the appbuilder.
I run a .bat file from task scheduler that runs the .p program but I get
the error:

** Attempt to write with no current output destination. (165)

The .bat file contents are:
"C:\Program Files\PROGRESS\bin\prowin32.exe" -b -p
p:\pwc_time\email_1call.r  -Mm 8192

What setting do I need to set and where?
Darrell Woodard