Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Copy the existing output rom Z program into a spool file

Former Member
0 Kudos

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.

2 REPLIES 2

naimesh_patel
Active Contributor
0 Kudos

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.

Regards,

Naimesh Patel

0 Kudos

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

Or,

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..

Thanks,