how to use a printer file in a program cobol
180 pts.
0
Q:
how to use a printer file in a program cobol
hi,

how to use a printer file in a program cobol.

i have the following:

(I wanna know if the write part is correct) 

MOVE M1DESC TO M1DESC-DSP.            MOVE M1DESC-DSP TO R1DESC-PRT.        MOVE PRINTER-LINE TO HIPR01R-RECORD.

 WRITE HIPR01R-RECORD FROM PRINTER-LINE.

Regards

Sylvana.



Software/Hardware used:
os/400
ASKED: Nov 9 2009  5:50 PM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
6350 pts.
0
A:
 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0
  • AddThis Social Bookmark Button
you may want to add this after the WRITE instruction

AFTER ADVANCING 1 LINE
Last Answered: Nov 9 2009  6:35 PM GMT by CharlieBrowne   6350 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

TomLiotta   7320 pts.  |   Nov 10 2009  1:25AM GMT

It depends on the printer file. Without seeing the printer file definition of the print line identified as HIPR01R-RECORD, there’s no way to know. (AFTER ADVANCING 1 LINE would be the default behavior.)

How many record formats are defined? Is the printer file externally described?

Tom

 
0