On Mon, 19 Aug 2019 09:46:03 -0500, Kirk Wolf wrote:
>So I know how to do this with BPAM, but I have a case where I would like to
>use QSAM to add or replace a member of a PDS or PDSE. I want to use BLDL
>an STOW in order to process ISPF statistics.
>...
>3) DD question: I think that having the member name in the DD is what
>causes OPEN (OUTPUT) to starting writing onto the end of the PDS, right?
>
Or is it DSORG?
>...
>PS> In reality, I will be allocating the PDS with DISP=SHR and using
>ISPF-compatible enqueue processing. I'm not sure if that matters here.
>
I've done this with ISPF services, mostly as an experiment.
IIRC, the sequence is:
LMINIT /* Creates a DCB, I believe. */
LMOPEN
LMPUT ... LMPUT
LMMREP (member) /* does the STOW. */
LMCLOSE
LMFREE
I needn't specify the member name until LMMREP. I don't
know where LM stashes the TTR. Is it available in DS1LSTAR?
With a PDSE, the constraints are less. You can write to multiple
members concurrently. ISPF supports this, but only within a
single job because LMPUT requires EXC. I don't know what ISPF
PDSE STOW uses as TTR.
If you intend to use ISPF serialization, you need the
member name on the ENQ.
-- gil
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN