Automation Tool



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Automation Tool

Postby shamaam2 » Wed Nov 03, 2010 9:55 am

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..........
shamaam2
 
Posts: 13
Joined: Wed Nov 03, 2010 9:51 am
Has thanked: 0 time
Been thanked: 0 time

Re: Automation Tool

 

Re: Automation Tool

Postby dick scherrer » Wed Nov 03, 2010 10:12 am

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.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: Automation Tool

Postby shamaam2 » Wed Nov 03, 2010 10:18 am

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....
shamaam2
 
Posts: 13
Joined: Wed Nov 03, 2010 9:51 am
Has thanked: 0 time
Been thanked: 0 time

Re: Automation Tool

Postby dick scherrer » Wed Nov 03, 2010 10:25 am

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. . .
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: Automation Tool

Postby shamaam2 » Wed Nov 03, 2010 10:47 am

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....
shamaam2
 
Posts: 13
Joined: Wed Nov 03, 2010 9:51 am
Has thanked: 0 time
Been thanked: 0 time

Re: Automation Tool

Postby expat » Wed Nov 03, 2010 12:58 pm

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.
expat
 
Posts: 383
Joined: Sat Jun 09, 2007 3:21 pm
Has thanked: 0 time
Been thanked: 1 time

Re: Automation Tool

Postby enrico-sorichetti » Wed Nov 03, 2010 1:06 pm

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
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2648
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 132 times

Re: Automation Tool

Postby shamaam2 » Wed Nov 03, 2010 2:01 pm

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....
shamaam2
 
Posts: 13
Joined: Wed Nov 03, 2010 9:51 am
Has thanked: 0 time
Been thanked: 0 time

Re: Automation Tool

Postby shamaam2 » Wed Nov 03, 2010 2:04 pm

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..
shamaam2
 
Posts: 13
Joined: Wed Nov 03, 2010 9:51 am
Has thanked: 0 time
Been thanked: 0 time

Re: Automation Tool

Postby prino » Wed Nov 03, 2010 2:06 pm

  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
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
User avatar
prino
 
Posts: 538
Joined: Wed Mar 11, 2009 12:22 am
Location: Oostende, Belgium
Has thanked: 3 times
Been thanked: 21 times

Next

Return to JCL

 


  • Related topics
    Replies
    Views
    Last post