SMP/E for z/OS Commands
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Example 1: Writing a message

SMP/E for z/OS Commands
SA23-2275-01

You can use the following commands to write a message to three SMPLOG data sets associated with the global zone, target zone MVSTST1, and distribution zone MVSDLB1:
SET      BDY(GLOBAL)        /* Process global zone.       */.
LOG      (THIS MESSAGE WILL GO TO THE SMPLOG ASSOCIATED
          WITH THE GLOBAL ZONE).
SET      BDY(MVSTST1)       /* Process MVSTST1 tgt zone.  */.
LOG      (THIS MESSAGE WILL GO TO THE SMPLOG ASSOCIATED
          WITH TARGET ZONE MVSTST1).
SET      BDY(MVSDLB1)       /* Process MVSDLB1 DLIB zone. */.
LOG      (THIS MESSAGE WILL GO TO THE SMPLOG ASSOCIATED
          WITH DISTRIBUTION ZONE MVSDLB1).

This example assumes you are having SMP/E dynamically allocate the SMPLOG DD statement; that is, no SMPLOG DD statement was provided in the JCL, and each zone contains a DDDEF entry for the SMPLOG. As SMP/E processes each SET command, SMP/E dynamically frees the SMPLOG data set currently allocated, and then dynamically allocates the SMPLOG DD statement, now pointing to the SMPLOG data set for the appropriate zone. SMP/E then writes the message to that SMPLOG data set.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014