ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Printing to Multipe Spool Files

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Printing to Multipe Spool Files

    I have a job that needs to print to different spool files depending on which criteria it meets.

    I'm writing a check printing program. These checks need to be matched up with statements post printing. To facilitate this process and the stuffing of envelopes, I need to create several different spool files - 16 to be exact.

    I would like to not have to create 16 different PRTF with 16 separate DDS that would be a pain to maintain in the future.

    I'm thinking I can create one DDS and PRTF and use the CRTDUPOBJ and the OVRPRTF in my CL. But how would I define the printer files in my COBOL program?

    If anyone knows how I should do this or if you have an alternate idea, I'd really appreciate it.

    Thanks,

    Vincent

  • #2
    Re: Printing to Multipe Spool Files

    Why not execute the over-ride from within the RPG by executing an os command? That way you can set up the command string programmatically and over-ride the same 'template' spoolfile as you need it.

    Comment

    Working...
    X