Skip to Content
author's profile photo Former Member
Former Member

Copy the existing output rom Z program into a spool file

Hi all,

There's a Zprogram if its run in foreground a list gets created .(as per req, i want this list in a spool file and not the below spool file)

If this program is run in background a spool file gets created.

I dont want the existing spool result instaed i want the other result which is generated via se38 as a spool file.

Pls suggest.

One more question is i don't see any code in program where the existing spool file is written.similarly i have checked another program earlier where i dont see the code where exactly spool file gets created ,moreover no sub programs in that too.

Thanks for the help.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Sep 22, 2008 at 08:20 PM

    Any WRITE statement in the program will generate the Spool when the program was executed as Background mode.

    To generate a list and send directly to the Spool you can explore the keyword NEW-PAGE PRINT ON / OFF options.


    Naimesh Patel

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi ,

      I don't want existing spool data.

      But i need the list in foreground run to be saved as the spool file.

      will commenting out the statements which writes to current spool file(yet to identify this part of the code) be a good option


      If i can create another spool file ,how to do it.

      basically how to create 2 spool file in the same program,1 spool is already getting created..


Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.