down 1 stream

I'm using ProParse to parse a large number of OpenEdge programs, a number of which use 'down 1 stream' when generating reports. ProParse doesn't seem to care for this, I'm getting a org.prorefactor.refactor.RefactorException: down-one-stream.p:39:17: unexpected token: stream

Here's a sample .p created to demonstrate this using the sports2k database (also attached):

===================== snip ============================

/*------------------------------------------------------------------------
File : down-one-stream.p
Purpose : demonstrate unexpected token 'stream' for down 1
----------------------------------------------------------------------*/

BLOCK-LEVEL ON ERROR UNDO, THROW.

/* ******************** Preprocessor Definitions ******************** */

/* *************************** Main Block *************************** */
define stream rpt.

output stream rpt to test.dmp.

for each customer no-lock:

display stream rpt
Customer.custnum label "CustNum"
Customer.Name label "CustName"
Customer.Address label "CustAddress"
Customer.City label "CustCity"
Customer.State label "CustState"
Customer.PostalCode label "CustPostal"
with frame fdet down .

for each order no-lock
where order.custnum = customer.custnum
:

display stream rpt
order.ordernum label "Order Number"
order.orderdate label "Order Date"
order.shipdate label "Ship Date"
order.salesrep label "Sales Rep"
with frame fdet down no-attr-space.
down 1 stream rpt with frame fdet.

end.
down 1 stream rpt with frame fdet.
end.


AttachmentSize
down-one-stream.p1.31 KB

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
john's picture

DOWN 1 STREAM

Hi David, thank you for the problem report. I just published a release which I hope fixes this.


Fixed

Confirmed fixed, thanks again.


Cheers!

Wonderful! I shall retest this weekend.