On Fri, Jan 13, 2017 at 2:09 PM, Paul Gilmartin <0000000433f07816-dmarc-
[email protected]> wrote:

> On Fri, 13 Jan 2017 13:43:37 -0600, John McKown wrote:
> >
> >​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
> >
> I believe BPAM/BLDL/FIND is case-indifferent and that any UPPER CASE
> restriction lies in the compiler.
>

Could be. But, if so, then which version do you get it there exists "AA"
"Aa" "aA" and "aa" in the same directory?​



>
> HLASM and Binder have at least enough UNIX I/O code to display pathnames
> correctly in a data set summary.  And in Binder you can select CASE(MIXED).
>

​Hum, well, not really; at least as I think of it. The RDJFCB macro's exit
list type x'07', in the DSN area, gives ​'...PATH=.SPECIFIED...'. But use
of exit list type x'13' will return the actual UNIX path name. See macros
IHAARL (which has a pointer to) & IHAARA.



>
> -- gil
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO IBM-MAIN
>



-- 
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 [email protected] with the message: INFO IBM-MAIN

Reply via email to