Override the COBOL WRITE statement and execute your own routine.
Restriction: This topic applies only when the AppMaster Builder AddPack has been installed, and applies only to Windows platforms.
Syntax:
WRITE ROUTINE [IS] paragraphname
Parameters:
Paragraph-name
|
Name of WRITE ROUTINE paragraph
|
Examples:
FD INPUT-FILE
LABEL RECORDS ARE STANDARD
BLOCK CONTAINS 0 RECORDS.
01 PART-STOCK-REC PIC X(80).
FD REPORT-OUTPUT-FILE
LABEL RECORDS ARE STANDARD
01 USER-REPORT-RECORD.
03 USER-REPORT-APS-PART PIC X(248).
03 USER-REPORT-USER-PART PIC X(7).
.
.
RED STOCK-REPORT
.
.
WRITE ROUTINE IS USER-DEFINED-PARA
.
.
NTRY
.
.
PARA USER-DEFINED-PARA
.
.
MOVE STOCK REPORT RECORD TO
...USER-REPORT-APS-PART
Comments: