Page 1 of 1

Mass Compilation

PostPosted: Thu Nov 04, 2010 11:52 am
by shamaam2
Hi All,

Please help me on this..

Can we compile all the jobs(stored in a PDS member) through a PL/I program ?

I always see only about cobol code submitting a jcl.. can we do it in PL/I also ?

And, can we do a mass compilation thrugh a program?

Please share your experience....



Thanks...

Re: Mass Compilation

PostPosted: Thu Nov 04, 2010 2:29 pm
by NicC
As PL/1 can do most anything a COBOL program can plus a few more, perhaps, then of course it can be used to generate and submit batch jobs. It also has interfaces to ISPF so that you can walk through a PDS index and thus generate compile jobs for one or all members of the PDS. To get the syntax, go itnot edit on a pl/1 source module and type MODEL and the PL/1 model ISPF syntax is available to copy into your program.

But...for this sort of thing Rexx is the ideal language.

Re: Mass Compilation

PostPosted: Thu Nov 04, 2010 2:35 pm
by shamaam2
Hi Nicc,

Thanks for your suggestion.

Is REXX easier than coding this in PL/I.. ???

please help me out..
The requirement is mass compilation process of jcls from a PDS.

Re: Mass Compilation

PostPosted: Thu Nov 04, 2010 2:46 pm
by NicC
Of course it is - the syntax is similar to PL/1's but it is an interpreted language (you can compile it if the compiler is installed) so you can add some code and try it out in seconds. Use the Trace command for debugging. Also Rexx has an interface to ISPF services that is only simpler in CLIST.

Re: Mass Compilation

PostPosted: Thu Nov 04, 2010 3:04 pm
by shamaam2
NicC wrote:Of course it is - the syntax is similar to PL/1's but it is an interpreted language (you can compile it if the compiler is installed) so you can add some code and try it out in seconds. Use the Trace command for debugging. Also Rexx has an interface to ISPF services that is only simpler in CLIST.



Thanks Nicc, i will try it out..

Re: Mass Compilation

PostPosted: Thu Nov 04, 2010 8:08 pm
by enrico-sorichetti
this topic is a perfect duplicate of the other one
jcl/topic4595.html
just the implementation language is different

Re: Mass Compilation

PostPosted: Fri Nov 05, 2010 12:38 am
by dick scherrer
Hello,

Is REXX easier than coding this in PL/I.. ???
If one knows pl/i well and does not know rexx at all, pl/i will be easier.

If one knew neither, i suspect there are many rexx examples that could be "snagged & cloned". For example, the rexx that is in the link Enrico provided. . .

Re: Mass Compilation

PostPosted: Sat May 07, 2011 9:44 am
by steve-myers
  • Can we compile all the jobs(stored in a PDS member) through a PL/I program ?
    Yes and no. Regular PL/I code cannot easily access a PDS directory. The other issue is that you haven't defined the reason you want to do this, and what you want to do with the outputs from the compile. For more than 30 years I assembled all of JES2 for each release, and retained the listings, parts of the SYSADATA (when SYSADATA became available in the 1990s), and the object output.
  • I always see only about cobol code submitting a jcl.. can we do it in PL/I also ?
    Yes.
  • And, can we do a mass compilation thrugh a program?
    Yes. That's what I did for my mass JES2 assemblies.