z/OS DFSMS Using Data Sets
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Adding or Replacing Multiple PDSE Members Concurrently

z/OS DFSMS Using Data Sets
SC23-6855-00

You can create PDSE members at the same time from multiple DCBs or jobs, as follows:
  • Multiple DCBs (open for output) in the same job step
  • Multiple jobs on the same central processing complex
  • A combination of "1" and "2".
Figure 1 shows you how to use BPAM to create multiple PDSE members at the same time.
Figure 1. Replacing Multiple PDSE Members Concurrently
            ...
            OPEN  (DCB1,(OUTPUT),DCB2,(OUTPUT))
            WRITE DECB1,SF,DCB1,BUFFER          Write record to 1st member
            CHECK DECB1
            ...
            WRITE DECB2,SF,DCB2,BUFFER          Write record to 2nd member
            CHECK DECB2
            ...
            STOW  DECB1,PARML1,R           Enter 1st member in the directory
            STOW  DECB2,PARML2,R           Enter 2nd member in the directory
            ...
   DCB1     DCB   DSORG=PO,DDNAME=X, ...        Both DCBs open to the
   DCB2     DCB   DSORG=PO,DDNAME=X, ...        same PDSE

The R option of STOW in Figure 1 means you are adding new members or replacing members. You could code A to mean you are only adding new members.

Open two DCBs to the same PDSE, write the member records, and issue STOW for them. Code different names for the parameter list in the STOW macro for each member written in the PDSE directory.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014