All Operating Systems run Programs, use Data Sets or Files, and have some sort of Command Language.

If Z/OS Users didn't have to be concerned about DCB, SPACE and so on, then they could write JCL that was very similar to Unix or Linux.

If all that information is stored in a Data Base of Data Sets, then it would be quite possible to allocate new data sets when necessary, and hide all the normal JCL information from the User.

All we would have to do is remember which order to put the file names in, and have a program get all the DCB etc information for output data sets, and either dynamically allocate them, or generate JCL for them.

And so, you could write a Script that looked something like this:

__________________
Payroll: Job class C Size 1000 k name c.clarke 10,3 mins acct payroll;

Validate:
    Exec PayValid
       Printer
       Input.Trans, Trans.Action(+1); /* Validate Transations */
    if Validate=0
    then do;
       Sort Trans.Action(+1) to Sorted.Trans.Action(+1)
      Fields=(10,10,CH,A);
Update:
       Exec PayUpd
          Printer
          Payroll.Master(0), Sorted.Trans.Action(+1),
          Payroll.Master(+1);
       If Update = 0
       then do;
         Catalog Payroll.Master(+1), Sorted.Trans.Action(+1);
         Backup  Payroll.Master(+1), Sorted.Trans.Action(+1);
         Submit Job2;
       end;
    end;
    else Stop 'Error in PAYROLL Job';


Such a program exists.  It is called Jol.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to