Is cob2 just a shell script or a REXX or something?  Or is it an actual binary?

If its a script, can you post it?

________________________________
From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> on behalf of 
John McKown <john.archie.mck...@gmail.com>
Sent: Friday, January 13, 2017 12:43 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: New free / open source z/OS tools from Dovetailed Technologies

On Fri, Jan 13, 2017 at 1:36 PM, Paul Gilmartin <
0000000433f07816-dmarc-requ...@listserv.ua.edu> wrote:

> On Fri, 13 Jan 2017 19:18:53 +0000, Vince Coen wrote:
>
> >Under *nix you set an environment variable in the bash (or what ever one
> you use) script
> >This points to the directory path containing the copy libs and that
> >directory path is mapped to the syslib you need.
> >
> >I am not an expert on z/OS but assuming you can do the last then the
> >rest is easy.
> >
> In UNIX I believe that's not automatic.  The application, compiler,
> whatever, must parse that environment variable, breaking it at colons
> and sequentially search each directory in the list.  (Might there be a
> library routine for that?)
>
> Library concatenation is one OS feature whose absence in UNIX I rue.
>
> >I was lead to believe that the compiler has a versions that runs under
> >the *nix sub system how ever I have not looked in detail for this.
> >
> I don't believe it's a distinct version.  The one version simply runs under
> z/OS UNIX, given suitable allocations and parameters.
>
> -- gil
>
>
There is a UNIX command: cob2 which will do a COBOL compile and link.
Basically this is just a "driver" which, as Gil indicated, parses the UNIX
command line parameters, does dynamic allocations for DDs needed and then
does (I think) a normal MVS LINK command to invoke the standard COBOL
compiler. Note that any UNIX directories in the command are allocated to
the proper DD and the "normal" BSAM / BPAM UNIX interface code in the
access method takes care of the I/O. That is, there is no UNIX I/O code in
the COBOL compiler itself. At least, I don't think that there is. This is
why the COBOL COPY verb cannot process a file name like "SOMEFILE.cpy" and
why the file in the UNIX directory must in in UPPER CASE, not in "normal"
lower case. On my system (z/OS 1.12), the cob2 command's full path
is: /usr/lpp/cobol/bin/cob2


--
There's no obfuscated Perl contest because it's pointless.

-Jeff Polk

Maranatha! <><
John McKown

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to