This thread is about 'macro' and the poster's example shows ISREDIT...
The TSO SUBMIT command is different than the SUBMIT macro statement.
1. The TSO SUBMIT command expects a data set name as a parameter.
2. The SUBMIT macro statement submits the contents of the editor work area, even if it is not saved.
When you use TSO SUBMIT from an edit macro, it does not know the difference and still wants to know a data set name. You get "ENTER DATA SET NAME" prompt and waits for your input.