My program executes, but no output is written to a disk file. Below is the main points of the program. I do not see what I'm doing wrong.
Thanks
Lar
Sample Code:
DEFINE VARIABLE OUTPUTNAME AS CHARACTER NO-UNDO.
DEFINE STREAM REPORT.
FORM SFAM.Z_IHDA_OUTSTANDING.VENDNAME FORMAT "X(10)" COLUMN-LABEL "Lender"
SFAM.Z_IHDA_OUTSTANDING.NAME FORMAT "X(10)" COLUMN-LABEL "Borrower"
SFAM.Z_IHDA_OUTSTANDING.LOANNUMBER FORMAT "X(10)" COLUMN-LABEL "Loan Number"
SFAM.Z_IHDA_OUTSTANDING.PKGINCCD FORMAT "X(10)" COLUMN-LABEL "Code"
SFAM.Z_IHDA_OUTSTANDING.PKGINCDESC[1] FORMAT "X(50)" COLUMN-LABEL "Reason"
WITH WIDTH 170 DOWN NO-BOX FRAME DTL1.
FOR EACH SFAM.Z_IHDA_OUTSTANDING BY SFAM.Z_IHDA_OUTSTANDING.VENDID:
OUTPUTNAME = "C:\MISSING_DOCS\VENDOR." + SFAM.Z_IHDA_OUTSTANDING.VENDID.
OUTPUT STREAM report TO OUTPUTNAME.
DISPLAY STREAM REPORT
SFAM.Z_IHDA_OUTSTANDING.VENDNAME
SFAM.Z_IHDA_OUTSTANDING.NAME
SFAM.Z_IHDA_OUTSTANDING.LOANNUMBER
SFAM.Z_IHDA_OUTSTANDING.PKGINCCD
SFAM.Z_IHDA_OUTSTANDING.PKGINCDESC[1]
WITH FRAME DTL1.
Thanks
Lar
Sample Code:
DEFINE VARIABLE OUTPUTNAME AS CHARACTER NO-UNDO.
DEFINE STREAM REPORT.
FORM SFAM.Z_IHDA_OUTSTANDING.VENDNAME FORMAT "X(10)" COLUMN-LABEL "Lender"
SFAM.Z_IHDA_OUTSTANDING.NAME FORMAT "X(10)" COLUMN-LABEL "Borrower"
SFAM.Z_IHDA_OUTSTANDING.LOANNUMBER FORMAT "X(10)" COLUMN-LABEL "Loan Number"
SFAM.Z_IHDA_OUTSTANDING.PKGINCCD FORMAT "X(10)" COLUMN-LABEL "Code"
SFAM.Z_IHDA_OUTSTANDING.PKGINCDESC[1] FORMAT "X(50)" COLUMN-LABEL "Reason"
WITH WIDTH 170 DOWN NO-BOX FRAME DTL1.
FOR EACH SFAM.Z_IHDA_OUTSTANDING BY SFAM.Z_IHDA_OUTSTANDING.VENDID:
OUTPUTNAME = "C:\MISSING_DOCS\VENDOR." + SFAM.Z_IHDA_OUTSTANDING.VENDID.
OUTPUT STREAM report TO OUTPUTNAME.
DISPLAY STREAM REPORT
SFAM.Z_IHDA_OUTSTANDING.VENDNAME
SFAM.Z_IHDA_OUTSTANDING.NAME
SFAM.Z_IHDA_OUTSTANDING.LOANNUMBER
SFAM.Z_IHDA_OUTSTANDING.PKGINCCD
SFAM.Z_IHDA_OUTSTANDING.PKGINCDESC[1]
WITH FRAME DTL1.