‎2006 Nov 10 2:22 PM
Hi all,
There is one program which needs to run everyday with two different variants
( For this i need to have two jobs ).
Now, i need to write a new program which submits the above program with two variants. How do i do it?
Thanks
Abhijith H
‎2006 Nov 10 2:24 PM
You don't need two jobs, you can have 1 job with two steps, each step would call the progam with the different variant.
If you want to write a program which submits the program twice with two different variants, you can use the SUBMIT statement. Here VARIANT1 is the name of a variant.
SUBMIT ZREPORT01
USING SELECTION-SET 'VARIANT1'
AND RETURN.
Regards,
Rich Heilman
‎2006 Nov 10 2:25 PM
‎2006 Nov 10 2:27 PM
‎2006 Nov 10 2:28 PM
I am assuming that you still want to execute the program twice, once with different variant.
If that is the case, use SUBMIT Program twice, with different variants and call the SUBMIT from the new program.
If you want to get the variant names at run time, look at RSVARIANT function modules.
Regards,
Ravi
Note - Please mark all the helpful answers