Re: Mixing C/C++ with LE-conforming IBM HLASM

2021-07-27 Thread David Crayford
On 25/07/2021 1:01 am, Kirk Wolf wrote: We recently released two new shell command utilities in Co:Z which have all sorts of options for loading/unloading PDS/PDSEs to/from zFS files. https://www.dovetail.com/docs/zos-utilities/dsp-ref_getpds.html

Re: Mixing C/C++ with LE-conforming IBM HLASM

2021-07-25 Thread Kirk Wolf
Gil, Are your questions because you want to use the utilities, or just pedagogical?  :-) -l l4 is compatible with FILEDATA=RECORD, and I think predates it.   It sounds like your issue is that we didn't use the IBM terminology? Unicode conversion errors (UTF-8) print an error to stderr and

Re: Mixing C/C++ with LE-conforming IBM HLASM

2021-07-24 Thread Paul Gilmartin
On Sat, 24 Jul 2021 12:01:09 -0500, Kirk Wolf wrote: >Sorry for joining this thread late. > >You are correct Larry - the z/OS C library has very little help for PDS >processing.   I wrote an RFE in 2015, but I don't expect to want it >anymore if/when IBM responds :-)

Re: Mixing C/C++ with LE-conforming IBM HLASM

2021-07-24 Thread Kirk Wolf
Sorry for joining this thread late. You are correct Larry - the z/OS C library has very little help for PDS processing.   I wrote an RFE in 2015, but I don't expect to want it anymore if/when IBM responds :-) https://www.ibm.com/developerworks/rfe/execute?use_case=viewRfe_ID=80811 We

Re: Mixing C/C++ with LE-conforming IBM HLASM

2021-07-19 Thread Seymour J Metz
@LISTSERV.UA.EDU] on behalf of Paul Gilmartin [000433f07816-dmarc-requ...@listserv.ua.edu] Sent: Monday, July 19, 2021 11:54 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Mixing C/C++ with LE-conforming IBM HLASM On Tue, 20 Jul 2021 01:51:32 +, Seymour J Metz wrote: >> Writing multiple m

Re: Mixing C/C++ with LE-conforming IBM HLASM

2021-07-19 Thread Paul Gilmartin
On Tue, 20 Jul 2021 01:51:32 +, Seymour J Metz wrote: >> Writing multiple members of a PDSE (not PDS) concurrently >Who said anything about concurrently? Consider a program to create sequence >numbers in every member (or remove them). > I did: On Fri, 16 Jul 2021 18:32:51 -0500, Paul

Re: Mixing C/C++ with LE-conforming IBM HLASM

2021-07-19 Thread Seymour J Metz
-- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of Paul Gilmartin [000433f07816-dmarc-requ...@listserv.ua.edu] Sent: Monday, July 19, 2021 7:21 PM To: IBM-MAIN@LISTSERV.

Re: Mixing C/C++ with LE-conforming IBM HLASM

2021-07-19 Thread Paul Gilmartin
On Mon, 19 Jul 2021 19:43:23 +, Seymour J Metz wrote: >> OK. It requires multiple DCBs. >Yes, and if I'm doing something with every member of a PDS then I really don't >want all of those OPENs. > If I'm doing something with multiple members, e.g. comparing two members, I consider it good

Re: Mixing C/C++ with LE-conforming IBM HLASM

2021-07-19 Thread Seymour J Metz
u/~smetz3 From: IBM Mainframe Discussion List on behalf of Paul Gilmartin <000433f07816-dmarc-requ...@listserv.ua.edu> Sent: Friday, July 16, 2021 7:32 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Mixing C/C++ with LE-conforming IBM HLASM On Fri, 16 Jul 2021 22:28:47 +

Re: Mixing C/C++ with LE-conforming IBM HLASM

2021-07-17 Thread Larry Slaten
Thanks to everyone for their input.  Since I was already using C/C++ I/0 functions to access a card file I thought that it would be simple enough to setup the DD:SYSLIB and that it would actually point me to a DCB address that I could use in my BLDL and LOAD macro(s).  I ended up defining the

Re: Mixing C/C++ with LE-conforming IBM HLASM

2021-07-16 Thread Paul Gilmartin
On Fri, 16 Jul 2021 22:28:47 +, Seymour J Metz wrote: >Except that PDSE doesn't allow me to open a QSAM DCB and do FIND and STOW for >multiple members. > OK. It requires multiple DCBs. >I'm not sure what you mean by deferring naming of members. > A member is not named when it is created,

Re: Mixing C/C++ with LE-conforming IBM HLASM

2021-07-16 Thread Seymour J Metz
...@listserv.ua.edu] Sent: Friday, July 16, 2021 5:29 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Mixing C/C++ with LE-conforming IBM HLASM On Fri, 16 Jul 2021 20:30:46 +, Seymour J Metz wrote: >Virtual Partitioned Access Method. See ><http://secure-web.

Re: Mixing C/C++ with LE-conforming IBM HLASM

2021-07-16 Thread Paul Gilmartin
On Fri, 16 Jul 2021 20:30:46 +, Seymour J Metz wrote: >Virtual Partitioned Access Method. See > > and

Re: Mixing C/C++ with LE-conforming IBM HLASM

2021-07-16 Thread Seymour J Metz
TSERV.UA.EDU Subject: Re: Mixing C/C++ with LE-conforming IBM HLASM On Fri, 16 Jul 2021 13:26:51 +, Seymour J Metz wrote: >If he's concerned with a concatenation then he won't be using the dsname form. > >fopen("//DD:SYSLIB") > If SYSLIB is a concatenation of PDS[E] (an

Re: Mixing C/C++ with LE-conforming IBM HLASM

2021-07-16 Thread Paul Gilmartin
On Fri, 16 Jul 2021 13:26:51 +, Seymour J Metz wrote: >If he's concerned with a concatenation then he won't be using the dsname form. > >fopen("//DD:SYSLIB") > If SYSLIB is a concatenation of PDS[E] (and possibly UNIX directories), what subsequent operations on the returned (FILE *) object

Re: Mixing C/C++ with LE-conforming IBM HLASM

2021-07-16 Thread Seymour J Metz
Metz http://mason.gmu.edu/~smetz3 From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of David Crayford [dcrayf...@gmail.com] Sent: Friday, July 16, 2021 1:57 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Mixing C/C++ with LE-conforming

Re: Mixing C/C++ with LE-conforming IBM HLASM

2021-07-16 Thread Seymour J Metz
Gilmartin [000433f07816-dmarc-requ...@listserv.ua.edu] Sent: Thursday, July 15, 2021 9:51 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Mixing C/C++ with LE-conforming IBM HLASM On Thu, 15 Jul 2021 22:16:11 +, Seymour J Metz wrote: >What if there's more than one DCB with the desired ddna

Re: Mixing C/C++ with LE-conforming IBM HLASM

2021-07-15 Thread Charles Mills
es -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Paul Gilmartin Sent: Thursday, July 15, 2021 6:51 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Mixing C/C++ with LE-conforming IBM HLASM On Thu, 15 Jul 2021 22:16:11 +, Seymour J Met

Re: Mixing C/C++ with LE-conforming IBM HLASM

2021-07-15 Thread David Crayford
On 16/07/2021 12:20 am, Seymour J Metz wrote: I used to access the DCB for PL/I programs (both F and "optimizing"), but the relevant interfaces are no longer documented and I'm not aware of any mapping macro for, e.g., the FCB. Can you make a business case for IBM to open up the interface? If

Re: Mixing C/C++ with LE-conforming IBM HLASM

2021-07-15 Thread Paul Gilmartin
On Thu, 15 Jul 2021 22:16:11 +, Seymour J Metz wrote: >What if there's more than one DCB with the desired ddname? > "Doctor, it hurts ..." Can't the programmer control that, perhaps by letting SVC 99 (or BPXWDYN) choose a unique ddname? (Does the C/C++ RTL allocation support that operation?

Re: Mixing C/C++ with LE-conforming IBM HLASM

2021-07-15 Thread Charles Mills
: Thursday, July 15, 2021 3:22 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Mixing C/C++ with LE-conforming IBM HLASM Charles, at least that's my understanding reading the doc. https://www.ibm.com/docs/en/zos/2.4.0?topic=functions-malloc24-allocate-24-bit-storage "Related information ..See the

Re: Mixing C/C++ with LE-conforming IBM HLASM

2021-07-15 Thread Mario Bezzi
Bezzi Sent: Thursday, July 15, 2021 11:23 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Mixing C/C++ with LE-conforming IBM HLASM As far as I know __malloc24 is only available when running in a System programming C environment, which is an early incarnation of METAL-C and does not use LE run

Re: Mixing C/C++ with LE-conforming IBM HLASM

2021-07-15 Thread Seymour J Metz
Subject: Re: Mixing C/C++ with LE-conforming IBM HLASM I'm in beyond my depth here but could you get to the DCB coming from the other direction? Run the DEB chain until you got to the right DCB? Charles -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU

Re: Mixing C/C++ with LE-conforming IBM HLASM

2021-07-15 Thread Charles Mills
seem to imply "full" support. Charles -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Mario Bezzi Sent: Thursday, July 15, 2021 11:23 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Mixing C/C++ with LE-conforming IBM HLASM A

Re: Mixing C/C++ with LE-conforming IBM HLASM

2021-07-15 Thread Mario Bezzi
Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Charles Mills Sent: Wednesday, July 14, 2021 9:53 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Mixing C/C++ with LE-conforming IBM HLASM I played with the approach you suggest and abandoned the effort. Too hard, and too likely

Re: Mixing C/C++ with LE-conforming IBM HLASM

2021-07-15 Thread Paul Gilmartin
On Thu, 15 Jul 2021 16:20:44 +, Seymour J Metz wrote: > >Can you make a business case for IBM to open up the interface? If so, consider >a REQ or SHARE requirement. > >From: Larry Slaten >Sent: Wednesday, July 14, 2021 10:44 AM > > ... I have dumped

Re: Mixing C/C++ with LE-conforming IBM HLASM

2021-07-15 Thread Steve Thompson
21 AM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: Mixing C/C++ with LE-conforming IBM HLASM > > I used to access the DCB for PL/I programs (both F and "optimizing"), but > the relevant interfaces are no longer documented and I'm not aware of any > mapping macro for, e.g

Re: Mixing C/C++ with LE-conforming IBM HLASM

2021-07-15 Thread Charles Mills
15, 2021 9:21 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Mixing C/C++ with LE-conforming IBM HLASM I used to access the DCB for PL/I programs (both F and "optimizing"), but the relevant interfaces are no longer documented and I'm not aware of any mapping macro for, e.g., the FCB. Ca

Re: Mixing C/C++ with LE-conforming IBM HLASM

2021-07-15 Thread Seymour J Metz
: Mixing C/C++ with LE-conforming IBM HLASM I am attempting to use the C/C++ FOPEN function to open a SYSLIB DD pointing to a concatenation of executable libraries. Then extract the DCB address so that I can use it to populate the LOAD and BLDL macro. This would make it easier to keep the root pr

Re: Mixing C/C++ with LE-conforming IBM HLASM

2021-07-14 Thread Charles Mills
-Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Charles Mills Sent: Wednesday, July 14, 2021 9:53 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Mixing C/C++ with LE-conforming IBM HLASM I played with the approach you suggest and abandoned

Re: Mixing C/C++ with LE-conforming IBM HLASM

2021-07-14 Thread Farley, Peter x23353
On Behalf Of Larry Slaten Sent: Wednesday, July 14, 2021 10:45 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Mixing C/C++ with LE-conforming IBM HLASM I am attempting to use the C/C++ FOPEN function to open a SYSLIB DD pointing to a concatenation of executable libraries.  Then extract the DCB address so

Re: Mixing C/C++ with LE-conforming IBM HLASM

2021-07-14 Thread Charles Mills
- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Bernd Oppolzer Sent: Wednesday, July 14, 2021 1:55 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Mixing C/C++ with LE-conforming IBM HLASM IMHO this is not a good idea, because the C/C++ runtime probably did more

Re: Mixing C/C++ with LE-conforming IBM HLASM

2021-07-14 Thread Bernd Oppolzer
IMHO this is not a good idea, because the C/C++ runtime probably did more things than simply construct a DCB and open it; IMO it allocated storage for buffers etc., too. And if you "steal" the open DCB from it, you will leave the C/C++ runtime in an undefined state, at best, even if you plan

Re: Mixing C/C++ with LE-conforming IBM HLASM

2021-07-14 Thread Paul Gilmartin
On Wed, 14 Jul 2021 09:53:16 -0700, Charles Mills wrote: >I played with the approach you suggest and abandoned the effort. Too hard, and >too likely to break. > >What I did do that worked was code a number of atomic assembler routines that >could be passed a DCB that was kept in an area that I

Re: Mixing C/C++ with LE-conforming IBM HLASM

2021-07-14 Thread Charles Mills
t Charles -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Larry Slaten Sent: Wednesday, July 14, 2021 7:45 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Mixing C/C++ with LE-conforming IBM HLASM I am attempting to use the C/C++ FOPEN function to ope

Mixing C/C++ with LE-conforming IBM HLASM

2021-07-14 Thread Larry Slaten
I am attempting to use the C/C++ FOPEN function to open a SYSLIB DD pointing to a concatenation of executable libraries.  Then extract the DCB address so that I can use it to populate the LOAD and BLDL macro.  This would make it easier to keep the root program RENT.  I realize that I can code