Before the move to the WRDS cloud, I was able to submit sequential programs like this:
nohup sas program1.sas; sas program2.sas; sas program3.sas &
Where each program would start as soon as the earlier one finished.
Is there a way to do the same thing now using the WRDS cloud and qsas? I don’t want to run these programs in parallel - they need to run sequentially.
Thanks
I understand that the nohup option isn’t necessary any longer, nor is the & at the end.
I’ve read the manual, but still don’t understand what it means to put
the commands into a script and run qsub. Suppose I have 2 programs:
p1.sas
p2.sas
and I want p2.sas to run after p1.sas has finished.
What do I do?
I tried the following:
Create a text file called batch.sh
Edit that file to include only the following lines:
#!/bin/bash
#$ -cwd
sas p1.sas
sas p2.sas
I then submitted this with “qsub batch.sh”
p1.sas and p2.sas are programs that I’ve run before individually, and
I know they work. But this batch file doesn’t seem to be working - the
expected datasets haven’t been created. When I type in qstat to check
the progress, the program seems to be still running, even though the
underlying p1 and p2 sas programs would have been finished in a fraction
of the time that it’s taken so far. (I ended up killing the batch job without it ever completing.)