‎2010 Aug 25 9:10 AM
Hi all. How can I write a SUBMIT command to a dynamic program's name ? Is it possible ?
I mean to assign a program name into a variable and use it as the program name at the SUBMIT command.
Thanks,
Rebeka
‎2010 Aug 25 9:20 AM
Hello,
From the syntax of Submit,
SUBMIT {rep|(name)} [selscreen_options]
[list_options]
[job_options]
[AND RETURN].
So for example,
CONSTANTS: c_program TYPE trdir-name VALUE 'ZSUBMITTED'.
SUBMIT (c_program) AND RETURN.
A constant is used here, it can be a variable as well
‎2010 Aug 25 9:20 AM
Hello,
From the syntax of Submit,
SUBMIT {rep|(name)} [selscreen_options]
[list_options]
[job_options]
[AND RETURN].
So for example,
CONSTANTS: c_program TYPE trdir-name VALUE 'ZSUBMITTED'.
SUBMIT (c_program) AND RETURN.
A constant is used here, it can be a variable as well