‎2007 Apr 16 2:47 PM
hi experts,
what is the difference between submit and leave to ,i want brief explaination about too.
thanks in advance.
‎2007 Apr 16 2:59 PM
Hi Raju,
By using Leave to you have only options for
Leave to current transaction
Leave to List-Processing
Leave to Screen
Leave to Transaction
It is just leaving this program and processing to the next,
But using SUBMIT statement we are calling another Report program this can be in Two ways 1) Submit
2) Submit and Return
(i.e., Returning back to the calling program)
This methods can be used through Selection-Screens also
1) Submit Via Selection Screen
With regards,
Jay
‎2007 Apr 16 2:59 PM
Hi Raju,
By using Leave to you have only options for
Leave to current transaction
Leave to List-Processing
Leave to Screen
Leave to Transaction
It is just leaving this program and processing to the next,
But using SUBMIT statement we are calling another Report program this can be in Two ways 1) Submit
2) Submit and Return
(i.e., Returning back to the calling program)
This methods can be used through Selection-Screens also
1) Submit Via Selection Screen
With regards,
Jay
‎2007 Apr 16 3:00 PM
‎2007 Apr 16 3:05 PM
Submit is a command which is used to submit a job from a program. The cursor leaves the calling program and starts executing the submitted programs and once finished returns back to the original program.
Leave to is a command which is used to execute some other job of a program. In leave to current processing will be terminated and new transaction gets started. The previous internal sessions which are active as such are deleted.
Reward and close duplicate threads as it confuses a lot.