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

submit

Former Member
0 Likes
540

hi experts,

what is the difference between submit and leave to ,i want brief explaination about too.

thanks in advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
499

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

3 REPLIES 3
Read only

Former Member
0 Likes
500

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

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
499

SUBMIT is used to call a report. LEAVE TO TRANSACTION is used to leave the current program and call the transaction code. The SUBMIT statement with the extension AND RETURN, will call the program and then return control to the caller.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
499

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.