> Can't the programmer control that
Perhaps not. One can come up with hypotheticals where the programmer could not.
Or perhaps the programmer's design works best with two files, one DD. But yes,
of course, it something of a grasp at straws.
> How does fopen("//data.set.name") select a ddname to avoid collisions?
The same way most do with dynamic allocation: by letting the system "return" a
generated DD name. You've seen them: they have the form SYS00001, SYS00002, ...
What happens if there are 10,000? I will leave that as an exercise for the
class.
Charles
-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf
Of Paul Gilmartin
Sent: Thursday, July 15, 2021 6:51 PM
To: [email protected]
Subject: Re: Mixing C/C++ with LE-conforming IBM HLASM
On Thu, 15 Jul 2021 22:16:11 +0000, 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? How does
fopen("//data.set.name") select a ddname to avoid collisions?)
If SYSLIB is a concatenation of UNIX directories, BLDL should work.
LOAD less likely.
________________________________________
From: Charles Mills
Sent: Thursday, July 15, 2021 12:57 PM
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?
-- gil
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN