News  
  Publications  
Help  
Training  
Labs  
Contacts  
Connecting  
About  
Purchases  
Policies  
TTU Home  
DWMCC Home  

Submitting Batch Jobs

Jobs that run for more than a few seconds CPU time should be submitted in batch mode. A job can be submitted to the system and you can go on with another task or log out and come back later to observe the result. If a job is complex or will run for more than an hour, see Dr. Paul Tsai in Clement Hall 310.

First, you need to create a command file and then you need to submit the command file to execute.

Creating a Command File

A command file contains a set of DCL commands - that is, anything that you would normally enter with a $ prompt.

Create the file with an editor:
$ EDIT somefile.COM

Enter some set of commands. Each command should be preceded by a $. Here are some example commands.
$ RUN filename1
$ RUN filename2
$ DIR
$ DEL filename.ext;version
etc.

Save the file containing a set of DCL commands that can be executed.
[CTRL/Z]

Submitting a Batch Job

The job to be submitted should be in a command file. Here are some examples.

Submit a job that will run for less than one hour to the BATCH60 queue:
$ SUBMIT/NOPRINT/NOTIFY somefile

Submit job to EXPRESS queue to run less than one minute:
$ SUBMIT/NOPRINT/NOTIFY/QUEUE=EXPRESS somefile

Allow a specified process time of hh hours, mm minutes and ss seconds:
$ SUBMIT/CPUTIME=hh:mm:ss somefile

Allow maximum 10 seconds process time:
$ SUBMIT/CPUTIME=::10 somefile

Submit a job to be executed after a specified time:
$ SUBMIT/AFTER=hh:mm:ss

Output for a submitted batch job will be stored with a file specification of your file name with extension LOG. Then you can print the LOG file.


Observing Job Status and Deleting a Job

At the DCL level, you can enter the SHOW QUEUE command. Your job number is displayed with SHOW QUEUE command:
$ SHOW QUEUE EXPRESS
$ SHOW QUEUE BATCH30

You can delete a job by the job number in the specified queue:
$ DELETE/ENTRY=jobno EXPRESS:
$ DELETE/ENTRY=jobno BATCH30:


There are five batch queues on GEMINI:

  • EXPRESS
  • BATCH10
  • BATCH30
  • BATCH60
  • UNLIMITED

To submit a job that will run for less than one minute:
$ submit/noprint/notify/queue=express fn.com
To observe your job
$ show queue/all express

To submit a job that will run for less than ten minutes:
$ submit/noprint/notify/queue=batch10 fn.com
To observe your job
$ show queue/all batch10

To submit a job that will run for less than thirty minutes:
$ submit/noprint/notify/queue=batch30 fn.com
To observe your job
$ show queue/all batch30

To submit a job that will run for less than one hour:
$ submit/noprint/notify/queue=batch60 fn.com
To observe your job
$ show queue/all batch60a

See Dr. Paul Tsai before submitting jobs that will run for more than one hour.


This page maintained by: Jim Johnson
For additional information, contact Jim Johnson, JJohnson@tntech.edu
Last updated: December 14, 1998