z/OS MVS Programming: Extended Addressability Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Creating and using data spaces

z/OS MVS Programming: Extended Addressability Guide
SA23-1394-00

A data space is a range of up to two gigabytes of contiguous virtual storage addresses that a program can directly manipulate through assembler instructions. Unlike an address space, a data space contains only data; it does not contain common areas or system data or programs. Program code does not execute in a data space, although a program can reside in a data space as nonexecutable code.

The DSPSERV macro with the TYPE=BASIC parameter (the default) manages data spaces. Use this macro to:
  • Create a data space
  • Release an area in a data space
  • Delete a data space
  • Expand the amount of storage in a data space currently available to a program.
  • Load an area of a data space into central storage
  • Page an area of a data space from central storage

A program's ability to create, delete, and access data spaces depends on whether it is a problem state program with PSW key 8 - F, a supervisor state program, or a PSW key 0-7 program. All programs can create, access, and delete the data spaces they own or created, and can share their data spaces with other programs running in the same address space. In addition, supervisor state or PSW key 0-7 programs can share their data spaces with programs in other address spaces. Unless otherwise stated, this section describes what the supervisor state or PSW key 0-7 programs can do.

Use this section to help you create, use, and delete data spaces. In addition, four sources of information can help you understand how to use data spaces:

With the arrival of the 64-bit address space, are there still reasons to create and use data spaces?

Even after z/OS® R2, there are still reasons why you would chose to use a data space. Two reasons are:
  • For programs that must run in both z/Architecture® and non-z/Architecture environments, data spaces is the right choice.
  • For programs to share virtual storage areas with other programs, the type of data space called SCOPE=ALL data spaces is the right choice.

There is no need to change any existing programs that create and use data spaces. Data spaces will continue to be supported.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014