Not COBOL, but ...
I have a rather large STC written in C++. I had done it all POSIX(OFF) for
no particular reason except "if it ain't broke ..." I needed to support GSK
which requires POSIX(ON). There were a *lot* of little surprises. Lots of
little things that stopped working or worked differently. I don't remember
them all, but one for example was this: With POSIX(OFF),
fopen("DD:SYSPRINT", ...) does what you would expect. With POSIX on, believe
or not, that fopen creates a USS file named -- ta-da -- DD:SYSPRINT. To get
the results you want you have to specify "//DD:SYSPRINT". Documented, but a
little surprise nonetheless.
Charles
-----Original Message-----
From: IBM Mainframe Discussion List [mailto:
IBM-...@LISTSERV.UA.EDU] On
Behalf Of John McKown
Sent: Monday, August 26, 2013 8:19 AM
To:
IBM-...@LISTSERV.UA.EDU
Subject: Enterprise COBOL execution & POSIX(ON) LE parm.
I have compiled some C code from the Internet (sqlite) which uses UNIX mutex
functions for multithreading. I know that COBOL doesn't really support
multithreading, but this is a generic library which does. My COBOL test job
kept abending with an S0C6. I was going a bit nuts. But then I actually read
up a bit on the pthread_mutex... calls (what a concept - RTFM!). And
discovered that they listed a dependency of POSIX(ON). So I tried the same
code, but put in POSIX(ON) in the EXEC. And it ran OK. Well, it didn't
really _do_ anything, but it didn't blow up either.
Question: Has anybody out there done _anything_ in COBOL with POSIX(ON)?
And have you had any problems? Just paranoid. The FM does talk about it and
says where it is needed. But some experiences would be nice to know about.