‎2009 Apr 17 8:49 AM
Hi,
I have to schedule one job in background.After open the job I have written code
SUBMIT ymdmctpop_step
VIA JOB y_k_jobname NUMBER y_lv_jobcount
AND RETURN.
After this I have closed the same.
But what problem i am facing, is prog ymdmctpop_step is unable to execute.It is not getting triggered in the background. What could be the reason?
‎2009 Apr 17 8:58 AM
Hi,
try to execute the program without the statement "AND RETURN".
With this statement your program wait until the other program finish (not in background).
Regards,
‎2009 Apr 17 8:59 AM
Hi,
When scheduling a report with the SUBMIT ... VIA JOB job NUMBER n statement, you should always use the addition ...TO SAP-SPOOL.
Try :
SUBMIT ymdmctpop_step
TO SAP-SPOOL
VIA JOB y_k_jobname NUMBER y_lv_jobcount
AND RETURN.
Hope this helps...
In response to Jose: AND RETURN should always be added.. for VIA JOB...
Edited by: Srinivas Kalluri on Apr 17, 2009 1:30 PM
‎2009 Apr 17 8:59 AM
Hi,
try to execute the program without the statement "AND RETURN".
With this statement your program wait until the other program finish (not in background).
Regards,
‎2009 Apr 17 9:06 AM
Please note that When scheduling a report with the SUBMIT ... VIA JOB job NUMBER n statement, you should always use the addition ...TO SAP-SPOOL to pass print and/or archive parameters. Otherwise, default values are used to generate the list and this disturbs operations in a production environment.
‎2009 Apr 17 9:09 AM
You should be setting STRTIMMED = 'X' when calling JOB_CLOSE. Also check if you have the authorization to release jobs.
Thomas
‎2009 Apr 17 10:13 AM
But when i am writting code without 'AND RETURN', I am getting syntax error.
‎2009 Apr 17 10:14 AM