Skip to Content
0
Former Member
Jul 29, 2010 at 12:00 PM

Wrapper program when run in background not generating SPOOL

63 Views

I have created Program A which calls internally Program B or C based on the condition. When I run the program B or C independently in Background it generates the spool on completion. But When I run the program A in Background, Spool is not getting generated.

My requirement is that Spool should be generated when Program A is executed in Background.

Below is the code of program A:

PROGRAM A.

    IF p_cons = 'X'.
*-->Detailed Details of Interim or Final Settlement
      SUBMIT B               WITH  p_vtnr   EQ p_vtnr
                             WITH  p_setqty EQ p_setqty
                             WITH  p_test   EQ p_test
                             WITH  s_abrdat IN s_abrdat
                             WITH  r2       EQ r2
                             WITH  r1       EQ r1
                             AND RETURN.
    ELSE.
*-->Summary Details of Interim or Final Settlement
      SUBMIT C                   WITH  p_vtnr   EQ p_vtnr
                                 WITH  p_setqty EQ p_setqty
                                 WITH  p_test   EQ p_test
                                 WITH  s_abrdat IN s_abrdat
                                 WITH  r2       EQ r2
                                 WITH  r1       EQ r1
                                 AND RETURN.
    ENDIF.

Please guide me on this.

Regards,

Naveen