SELECT PRINTER-FILE ASSIGN TO PRINTER PRINT-FILENAME
ORGANIZATION IS LINE SEQUENTIAL.
FD PRINTER-FILE.
01 PRINTER-RECORD PIC X(133).
01 BLANK-LINE.
*@ 05 FILLER PIC 9(02) COMP VALUE 10.
05 FILLER PIC X(02) VALUE SPACES.
WRITE PRINTER-RECORD FROM BLANK-LINE.
This does not generate a blank line. I even tried WRITE PRINTER-RECORD
FROM SPACES with no luck either. I've spent 5 years working in AcuCOBOL,
and I have never had this problem. Is there no way to make the BLANK-LINE
work? It would save me much grief in having to modify 20 or so programs
manually. I would prefer email responses to ti...@renewal-iis.com (my work
email).
Thanks guys!
--
*********************************************************************Timothy
Nicholson
KF4RTX
Raleigh, NC.
The only thing worse than nostalgia is amnesia - Ravi Zacharias
*********************************************************************
>I have been working with MicroFocus COBOL for about 2 1/2 months now, and I
>have ran upon something I have never seen before in my 7 years of COBOL
>programming. I have a customer who has converted from DG COBOL to
>MicroFocus COBOL. The reports in their system were defined with carriage
>control characters in WORKING-STORAGE, but these controls were removed as
>part of the conversion. Here is an example:
>SELECT PRINTER-FILE ASSIGN TO PRINTER PRINT-FILENAME
> ORGANIZATION IS LINE SEQUENTIAL.
>FD PRINTER-FILE.
>01 PRINTER-RECORD PIC X(133).
>01 BLANK-LINE.
>*@ 05 FILLER PIC 9(02) COMP VALUE 10.
> 05 FILLER PIC X(02) VALUE SPACES.
>WRITE PRINTER-RECORD FROM BLANK-LINE.
>This does not generate a blank line. I even tried WRITE PRINTER-RECORD
Why not just use the advancing clause?
WRITE PRINTER-RECORD FROM TRANSACTION-RECORDS
AFTER ADVANCING 2 LINES.
Will insert your blank line lickety-split.
Also, don't forget to reserve a space for the carriage control character if
you haven't done so already.
RLS
01 BLANK-LINE PIC X(133) VALUE SPACES.
WRITE PRINTER-RECORD FROM BLANK-LINE.
Good luck.
Bosun
BBell...@aol.com
http://members.aol.com/bbello5778/bosun.htm
Programmer/Analyst. Bloomington, IL
Joe.
Timothy Nicholson wrote:
>
> I have been working with MicroFocus COBOL for about 2 1/2 months now, and I
> have ran upon something I have never seen before in my 7 years of COBOL
> programming. I have a customer who has converted from DG COBOL to
> MicroFocus COBOL. The reports in their system were defined with carriage
> control characters in WORKING-STORAGE, but these controls were removed as
> part of the conversion. Here is an example:
>
> SELECT PRINTER-FILE ASSIGN TO PRINTER PRINT-FILENAME
> ORGANIZATION IS LINE SEQUENTIAL.
>
> FD PRINTER-FILE.
> 01 PRINTER-RECORD PIC X(133).
>
> 01 BLANK-LINE.
> *@ 05 FILLER PIC 9(02) COMP VALUE 10.
> 05 FILLER PIC X(02) VALUE SPACES.
>
> WRITE PRINTER-RECORD FROM BLANK-LINE.
>
> This does not generate a blank line. I even tried WRITE PRINTER-RECORD
>SNIP part of the conversion. Here is an example:
>
>
>01 BLANK-LINE.
>*@ 05 FILLER PIC 9(02) COMP VALUE 10.
> 05 FILLER PIC X(02) VALUE SPACES.
>
>WRITE PRINTER-RECORD FROM BLANK-LINE.
>
>This does not generate a blank line. I even tried WRITE PRINTER-RECORD
>FROM SPACES with no luck either. I've spent 5 years working in AcuCOBOL,
>
Do you mean an extra blank line? the COMP value 10 is a line feed in
the world of ASCII.
It is possible without ADVANCING coded, that the leading comp fields
were a way of getting line printed AFTER advancing when that clause
was not available in that release of cobol.
You can still work around. But you will get stepped on by posible
implied BEFORE or AFTER ADVANCING in you WRITES with the comp's
imbedded. GOOD LUCK avoiding some recode.
JR
and stir with a Runcible spoon...
Robert Stinnett <nos...@cyberpromo.com> wrote in article
<5n2l7v$qga$1...@news10.gte.net>...
> In article <01bc7072$df54f1c0$897664cf@tnichols> "Timothy Nicholson"
<tnic...@nuteknet.com> writes:
>
> >I have been working with MicroFocus COBOL for about 2 1/2 months now,
and I
> >have ran upon something I have never seen before in my 7 years of COBOL
> >programming. I have a customer who has converted from DG COBOL to
> >MicroFocus COBOL. The reports in their system were defined with
carriage
> >control characters in WORKING-STORAGE, but these controls were removed
as
> >part of the conversion. Here is an example:
>
> >SELECT PRINTER-FILE ASSIGN TO PRINTER PRINT-FILENAME
> > ORGANIZATION IS LINE SEQUENTIAL.
>
> >FD PRINTER-FILE.
> >01 PRINTER-RECORD PIC X(133).
>
> >01 BLANK-LINE.
> >*@ 05 FILLER PIC 9(02) COMP VALUE 10.
> > 05 FILLER PIC X(02) VALUE SPACES.
>
> >WRITE PRINTER-RECORD FROM BLANK-LINE.
>
> >This does not generate a blank line. I even tried WRITE PRINTER-RECORD
>