How to setup the Automatic MVS submission scripts



It is possible to submit MVS jobs from one of the Unix systems avaliable 
to students.  Submission is done through the ftp facilities available on Unix.

Submission can be accomplished by following several steps available in
the mvsftp document.  However, you can also set up your Unix account to 
perform many of these steps automatically.

To set up the automated scripts:

1. Log in to mp.cs.niu.edu or ux.cs.niu.edu.  Running pwd at the prompt wil
  indicate which is your home machine.

2. Copy the file trans from my directory.  
  cp ~berezin/trans trans

3. Run trans by typing its name at the command prompt and pressing .

4. trans will provide directions and prompt you for required information.
   Answer each question.  Remember the MVSBatch access is synchronized
   through your Novell password and NOT your Unix password.

5. trans will create the neccessary files and directories.  When finished,
   you will be able to submit you MVS job by typing 

    jput myfile.jcl 

   at the Unix command prompt 

   Commands available are :
    
    jput   -  submit a job for execution by MVS.  To run, type

        jput myfile.jcl

              Provided that all jcl is correct, the job submitted will
              be executed by MVS and returned to the jes spool queue.  
              To retrieve a job from the jes spooler, use jget.
              BE AWARE that you permitted only four jobs at a time and 
              submitting additional jobs without purging the current 
              jobs from the jes spooler will cause them to be placed in
              the jes spooler unrun.  See jdel on how to purge a job from
              the jes spooler.


    jdir   -  lists files on MVS waiting to be retrieved.  jdir takes no
              arguments and returns a list of files on the jes spooler.  
              These files will usually be named  jobXXXX  where XXXX is 
              a numeric value.  jdir will show that a job entry has 
              been entered in the jes spooler.  NOTE  An entry may be 
              visible even if MVS is not done building the output file. 
              So, it is a good idea to give the system an extra couple of
              minutes before fetching a executed program.

    jget   -  retrieves a executed file.  To retrieve a job, type

        jget jobsXXXX     
  
              replacing XXXX with the numeric value displayed by jdir.
              If the file you retrieve is incomplete, wait a few minutes
              and do a jget again.

    jdel  -  deletes an entry from the MVS JES spooler.  To run, type

        jdel jobsXXXX     
  
              You are allowed only four jobs out on the spooler at any time.
              You MUST delete old jobs if you want to submit new jobs.  If
              jdir shows 4 jobs out on MVS, it is time to use jdel. 

 
    jprint  - submit a job for execution and print results in CSL lab.
 
        jprint  myjob.jcl

              You will not need to delete or purge a job submitted to print.

    jhprint  - submit a job for execution and print results in HEEC lab.
               ( Hoffman Estates )
 
        jhprint  myjob.jcl

              You will not need to delete or purge a job submitted to print.
 
    joprint  - submit a job for execution and print results in MUC lab.
               ( Oak Brook )
 
        joprint  myjob.jcl

              You will not need to delete or purge a job submitted to print.
 

Last Updated - 20 June 2005

Send mail to John Berezinski: berezin@cs.niu.edu

<-- Return to NIU Dept. of CSCI Homepage