2007 Jul 15 2:16 PM
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.
2007 Jul 15 2:36 PM
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
2007 Jul 16 9:55 AM
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