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: 

Spool not generated for background job

Former Member
0 Kudos
1,754

Hi all!

I have a Zprogram that does some validation and submits the data to transaction ME59 using SUBMIT statement. The program is running fine in foreground.When it is scheduled for background, the spool is not getting generated. I know that if a program contains SUBMIT statement, the spool will not be generated when run in background. But is there a way to make it work? The client requires the exact output that we get in foreground.

2 REPLIES 2

Former Member
0 Kudos
177

Hi,

All spool requests will be stored in TSP01 table

TSP01 - Spool Requests

field name for Spool request number is RQIDENT

Hi,

Take a look at OSS Note 422136 which states:

"2. You can only store one spool request even if a step generates several spool requests during processing. The application is responsible for a "spool overview" in this case. If a step generates several spool requests during processing, only one request can be stored. In this case, the application report should issue the number with a message when writing a spool request so that it is then displayed in the job log."

Also take a look at OSS Note 519059 which further supports the case that you must capture the individual spool numbers as they are being created (i.e. within the job step's program). The note contains the following:

8] Question: How are the spool requests assigned?

Answer: The step information is stored in table TBTCP. This has space for exactly one spool request (field LISTIDENT). If a step generates several spool requests during the processing, only one can be stored. In this case the application is responsible for a "spool overview

<b>Reward points</b>

Regards

Former Member
0 Kudos
177

hi kiran!

I am aware of the OSS notes which I read from earlier postings. But I want to know if there is a way to override that. or at least how to create spool for ME59 which has an output rather than my Z program which has no output