Rules for creating, deleting, and managing data spaces

The SCOPE parameter determines what kind of data space a program creates. The three kinds of data spaces are SCOPE=SINGLE, SCOPE=ALL, and SCOPE=COMMON:
  • SCOPE=SINGLE data spaces

    All programs can create, use, and delete SCOPE=SINGLE data spaces. Your program would use data spaces in much the same way as it uses private storage in an address space.

  • SCOPE=ALL and SCOPE=COMMON data spaces

    Supervisor state or PSW key 0 - 7 programs can create, use, and delete data spaces that they can share with other programs. These data spaces have uses similar to MVS™ common storage.

To protect data in data spaces, the system places certain restrictions on problem state programs with PSW key 8 - F. The problem state programs with PSW key 8 - F can use SCOPE=ALL and SCOPE=COMMON data spaces, but they cannot create or delete them. They use them only under the control of supervisor state or PSW key 0 - 7 programs. This chapter assumes that the data spaces your program creates, uses, and deletes are SCOPE=SINGLE data spaces.

 

  • 1 Users Found This Useful
這篇文章有幫助嗎?

相關文章

Using data spaces efficiently

Although a task can own many data spaces, it is important that it reference these data spaces...

Releasing data space storage

Your program needs to release storage when it used a data space for one purpose and wants to...

Deleting a data space

When a program does not need the data space any more, it should free the virtual storage and...

Dumping storage in a data space

On the SNAPX macro, use the DSPSTOR parameter to dump storage from any addressable data space...

Manipulating data in a data space

Assembler instructions (such as load, store, add, and move character) manipulate the data in a...