How does a program manage the storage in a data space?

Managing storage in data spaces differs from managing storage in address spaces. Keep the following advisory notes in mind when you handle your data space storage:

  • When you create a data space, use the DSPSERV macro to request a large enough size to handle your application.

    The amount of storage you specify when you create a data space is the maximum amount the system will allow you to use in that space.

  • You are responsible for keeping track of the allocating and freeing of data space storage. You cannot use the services of virtual storage management (VSM), such as the STORAGE, GETMAIN, or FREEMAIN macros, to manage this area. You can, however, use callable cell pool services to define a cell pool within a data space. You can then obtain the cells, as well as expand and contract the cell pool. Using callable cell pool services to manage data space areas describes the use of callable cell pool services for data spaces. Information on how to code the services is in Callable cell pool services.
  • If you are not going to use an area of a data space again, release that area.
  • When you are finished using a data space, delete it.
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Who owns a data space?

Although programs create data spaces, they do not own them. When a program creates the space, the...

Can an installation limit the use of data spaces?

The use of data spaces consumes system resources such as expanded and auxiliary storage....

How does a program move data into a data space?

One way to move data into a data space  is through buffers in the program's address space....

How does a program obtain a data space?

Data spaces and hiperspaces are created through the same system service: the DSPSERV macro. On...

What can a program do with a data space?

Programs can use data spaces and hiperspaces to: Obtain more virtual storage than a single...