×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




Its not that you have done anything wrong.

The AS400 uses External Print files, so once you define the
print file within its source(DDS) you must compile/create the print file.

If you define all your print within the COBOL programs you
may only need a shell print file.  You can use QPRINT or a Copy
of QPRINT named to the Print File name you require.  You can then
define page setups, CPI, LPI etc by doing OVRPRTF in a CL or doing
CHGPRTF to the printer file (not suggested to change QPRINT).


_______________________________________________
Jack Welch              ARIS, Inc.
welchj@xxxxxxxx
_______________________________________________


> I'm trying to convert our S/36 COBOL programs to the AS400.  When I do a
> report the program blows up because the print file is not 'defined'.  When
> I 'create' the print file the program works.  What have I done wrong in my
> system definition?  As a COBOL programmer I NEVER had to worry about the
> DD name that I used.  I've never had to 'create' a print file.
>
> My assign's look like this:
>
> ASSIGN PRINT-FILE  ASSIGN PRINTER-PRFILE.
>
> If you could help me it would be greatly appreciated.
>
> Phil Campbell
> Wisco Envelope
>
> pcampbell@xxxxxxxxxxxx
>
>
> _______________________________________________
> This is the COBOL Programming on the iSeries/AS400 (COBOL400-L) mailing
> list
> To post a message email: COBOL400-L@xxxxxxxxxxxx
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/mailman/listinfo/cobol400-l
> or email: COBOL400-L-request@xxxxxxxxxxxx
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/cobol400-l.
>


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.