Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Example of creating, using, and deleting a data space z/OS MVS Programming: Extended Addressability Guide SA23-1394-00 |
|
This section contains a complete example of a how a problem program creates, establishes addressability to, uses, and deletes the data space named TEMP. The first lines of code create the data space and establish addressability to the data space. To keep the example simple, the code does not include the checking of the return code from the DSPSERV macro. However, you should always check the return codes after issuing the macro. The lines of code in the middle of the example (under the comment "MANIPULATE
DATA IN THE DATA SPACE") illustrate how, with the code in AR mode,
the familiar assembler instructions store, load, and move a simple
character string into the data space and move it within the data space.
The example ends with the program deleting the data space entry from
the access list, deleting the data space, and returning control to
the caller.
Note that you cannot code ACCESS=PRIVATE on the ALESERV macro when you request an ALET for a data space; all data space entries are public. |
Copyright IBM Corporation 1990, 2014
|