Page 1 of 2

Automation Tool

PostPosted: Wed Nov 03, 2010 9:55 am
by shamaam2
Hi All,

Please suggest me if automation would help better than manual work.

I have some 300 programs which had to be compiled. Hence, how can we go about writing an automation tool for compiling all the programs from a PDS member.

Please share your experienece if any of u all have experience on this.....



Thanks in advance..........

Re: Automation Tool

PostPosted: Wed Nov 03, 2010 10:12 am
by dick scherrer
Hello and welcome to the forum,

Suggest you work with the people who maintain/support the standard compile processes for the system.

If these are all the same kind of program (i.e. batch cobol or cics cobol) a PROCedure could be set up to be execued repeatedly, specifying a different program each time thru.

REXX could be used (if you already know rexx - if you want these compiled soon, the time to learn rexx may be longer than you want to wait for the compiles) to read the list of modules, generate the standard compile jcl, and submit it for each module.

Something to consider is whether this is a one-time requirement or if this needs to be done repeatedly.

Re: Automation Tool

PostPosted: Wed Nov 03, 2010 10:18 am
by shamaam2
dick scherrer wrote:Hello and welcome to the forum,

Suggest you work with the people who maintain/support the standard compile processes for the system.

If these are all the same kind of program (i.e. batch cobol or cics cobol) a PROCedure could be set up to be execued repeatedly, specifying a different program each time thru.

REXX could be used (if you already know rexx - if you want these compiled soon, the time to learn rexx may be longer than you want to wait for the compiles) to read the list of modules, generate the standard compile jcl, and submit it for each module.

Something to consider is whether this is a one-time requirement or if this needs to be done repeatedly.



Thanks a lot dsch...

The project is a migration project. and this compiling is gng to be a repeated process..

200 batch programs and 100 cics programs. Both in PL/I...

Yeah, REXX is easier , but I do not know REXX..
As I am new to project am confused(not knowing much) and i try to do everythng manually....

Re: Automation Tool

PostPosted: Wed Nov 03, 2010 10:25 am
by dick scherrer
Hello,

Suggest you invest the time to set this up one time manually and then run it as needed.

If you and the support people catalog a new PROC to do specifically these compiles, you could get away with only 200/100 executes with a couple of parameters (source member name, load module name, etc).

I suspect that with a little bit of work with the editor, it could all be set up in an hour or 2. . .

Re: Automation Tool

PostPosted: Wed Nov 03, 2010 10:47 am
by shamaam2
dick scherrer wrote:Hello,

Suggest you invest the time to set this up one time manually and then run it as needed.

If you and the support people catalog a new PROC to do specifically these compiles, you could get away with only 200/100 executes with a couple of parameters (source member name, load module name, etc).

I suspect that with a little bit of work with the editor, it could all be set up in an hour or 2. . .



Thanks.. i do not have much time and am not experienced in this also.......

so, Kindly, if u kw, can u suggest me a sample proc or any manuals....

Re: Automation Tool

PostPosted: Wed Nov 03, 2010 12:58 pm
by expat
Suggesting a sample PROC would be inappropriate as almost every site has its own compile and link standards and procedures. What is good for site A may not work for site B. Also the names of the libraries will almost certainly be different from site to site.

This information is best gathered from your peers or site support people.

Re: Automation Tool

PostPosted: Wed Nov 03, 2010 1:06 pm
by enrico-sorichetti
i do not have much time


remember ... replying is
on voluntary basis
on the responders time ( and equipment )
free of charge

what makes You think that Your time is more precious than ours ? :evil:

the issue You are posting about should be solved by Your support

Re: Automation Tool

PostPosted: Wed Nov 03, 2010 2:01 pm
by shamaam2
enrico-sorichetti wrote:
i do not have much time


remember ... replying is
on voluntary basis
on the responders time ( and equipment )
free of charge

what makes You think that Your time is more precious than ours ? :evil:

the issue You are posting about should be solved by Your support



Hello Enrico...

I dont undtstd y do u take it otherwise...

Actually what i meant is, this project not have much time, i am in pressure to complete within very less time..

So, i did not kw what to be done, that is y i joined here to get help, which wud be very usefull to me..

As am new here, am not kwing anythng, nobdy to help and i directly interact with customers., thats y....

Re: Automation Tool

PostPosted: Wed Nov 03, 2010 2:04 pm
by shamaam2
enrico-sorichetti wrote:
i do not have much time


remember ... replying is
on voluntary basis
on the responders time ( and equipment )
free of charge

what makes You think that Your time is more precious than ours ? :evil:

the issue You are posting about should be solved by Your support



This is a project given to me here., i dont to design automation,,


but my Manager asks for automation.... i hv no experience on that side.... am confused..

Re: Automation Tool

PostPosted: Wed Nov 03, 2010 2:06 pm
by prino
  1. Compile one PL/I program and one CICS program using your site's standard procedures.
  2. Save both sets of JCL, for example via the SJ line command in SDSF
  3. Replace every occurrence of the program being compiled in the save JCL with &THISPGM and add a single
    //   SET THISPGM='WHATEVER'
    statement to the JCL
  4. Create two edit macro's like these, one for the BATCH program and one for the CICS ones, suggest to call them SUBBATCH and SUBCICS
    /* REXX */
    "isredit macro"
    pgm.1 = 'WHATEVER'
    pgm.2 = 'AAAA'
    pgm.3 = 'AAAB'
    .
    .
    .
    pgm.198 = 'ZWER'
    pgm.0 = 198

    do i = 2 to pgm.0
      j = i - 1
      "isredit c '"pgm.j"' '"pgm.i"' first"
      "isredit submit"
    end

    i = pgm.0
    "isredit c '"pgm.i'" '"pgm.1"' first"
  5. Go into the member containing the BATCH compile JCL and enter SUBBATCH
  6. Go into the member containing the BATCH compile JCL and enter SUBCICS

Macro written on the fly, untested