Application Development and Automation 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: 
Read only

Trigger Jobs simultanously

Former Member
0 Likes
547

Hello Experts,

I have a program (that generates a Job) that triggers about 7 reports according to a specific sequence (stored in a specific table). After getting this sequence i'm calling SUBMIT for each report... It gives something like :

CALL FUNCTION 'JOB_OPEN'.

LOOP AT SEQUENCE_TABLE.
SUBMIT SEQUENCE_TABLE-REPORT_NAME. "(from report 1 to 7) Some reprts are also generating a Job
ENDLOOP


CALL FUNCTION 'JOB_CLOSE'.

Using that solution i'm waiting for each report to be submited before triggering the next one...Now i'm looking for a solution that triggers the whole sequence at same time (Submit the reports simultanously) ?

Can you help me on this ?

THANKS

Best Regards,

Soufiane

3 REPLIES 3
Read only

former_member194669
Active Contributor
0 Likes
531

May be this way


LOOP AT SEQUENCE_TABLE.

CALL FUNCTION 'JOB_OPEN'. " For this you need to allocate UNIQUE job names
 
SUBMIT SEQUENCE_TABLE-REPORT_NAME.

CALL FUNCTION 'JOB_CLOSE'

ENDLOOP

a®

Read only

Former Member
0 Likes
531

Thanks for your replies. Now i'll try to give more explanation about my problem :

In table SEQUENCE_TABLE i need to launch a job for each division stored in it. For each division 7 programms are triggered. My requirement is to launch simultanously all the division stored in my table.

Is that possible ?

Thanks for your collaboration !