<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><br>Hi all,<br> I am trying to loop a submit command in another submit command so every "tomorrow" it automatically<br> re-runs itself . But the problem is that if I execute the @ command the submit statement will hold in the<br> BATCH QUEUE but if instead of executing the @ command I use a SUBMIT command it kills off the job.<br> OpenVMS V8.3<br><br><br>sample code:<br><br>$!_______________________________________________________________________<br>$!PROGRAM : PURGE_SERVER.COM 07-NOV-2013 GJ<br>$!DESCRIPTION: PURGES THE VARIOUS DIRECTORIES DATA WAS TRANSFERRED TO.<br>$!_______________________________________________________________________<br>$!<br>$SUBMIT/AFTER=TOMORROW PURGE_SERVER<br>$PURGE/LOG/KEEP=2 DKX500:[000000...]*.*<br>EXIT<br><br><br>$@PURGE_SERVER works<br><br>Batch queue SYS$BATCH, idle, on TRSS3::<br><br> Entry Jobname Username Status<br> ----- ------- -------- ------<br> 329 PURGE_SERVER SYSTEM Holding until 4-JAN-2014 00:00:00.00<br><br><br><br>HOWEVER<br><br>$Submit PURGE_SERVER.com DOES NOT WORK<br><br><br>Thanks in advance<br><br><br><br><br><br><br><br><br><br><br><br>                                            </div></body>
</html>