Move Folder to ASP (QHSMMOVF) API


  Required Parameter Group:

1 Folder name Input Char(12)
2 Target auxiliary storage pool (ASP) Input Binary(4)
3 Error code I/O Char(*)

  Default Public Authority: *USE

The Move Folder to ASP (QHSMMOVF) API moves a root folder and its contents from its existing auxiliary storage pool (ASP) to the specified target ASP through a save and restore process. The API, however, will retain private authorities to the objects that would normally be lost with a save and restore operation.


Restrictions

The Move Folder to ASP (QHSMMOVF) API has the following restrictions:


Authorities and Locks

See Lock Conditions When Saving and Restoring Objects in the Backup and RecoveryLink to PDF book for detailed information on locks that are applied to objects during save operations.

To prevent access to other jobs, the folder is renamed to QHSMFLR.xxx, where xxx is a numeric increment to allow multiple concurrent move operations.

The user profile must have *OBJALTER authority to the folder and its objects if it does not have *ALLOBJ authority.

See Authority Required for Objects Used by Commands in the iSeries Security Reference Link to PDF book for detailed information on object authorities required when you save objects.


Required Parameter Group

Folder name
INPUT; CHAR(12)

The name of the folder to be moved to the specified auxiliary storage pool (ASP).

Target auxiliary storage pool (ASP)
INPUT; BINARY(4)

The number of the auxiliary storage pool (ASP) to which the folder is to be moved. You can use one of the following values for the ASP number:

1-16 The number that was assigned to the ASP at creation time. ASP 1 is the system ASP. This ASP must be different from the ASP where the folder exists.

Error code
I/O; CHAR(*)

The structure in which to return error information. For the format of the structure, see Error Code Parameter.


Error Messages

Message ID Error Message Text
CPF2115 E Object &1 in &2 type *&3 damaged.
CPF3C90 E Literal value cannot be changed.
CPF8A00 E All CPF8Axx messages could be signaled. xx is from 01 to FF.
CPF9000 E All CPF90xx messages could be signaled. xx is from 01 to FF.
CPF9872 E Program or service program &1 in library &2 ended. Reason code &3.
CPFB78B E Errors encountered while moving or migrating folder &1.
CPFB781 E Not authorized to folder &1.
CPFB783 E Folder &1 cannot be moved or migrated into an object-based ASP &2.
CPFB784 E Target ASP &1 is not valid for the move or migrate operation.
CPFB786 E Insufficient disk capacity in ASP &1 for specified objects.
CPFB79E E Auxiliary storage pool &1 does not exist.
CPFB790 E Move or migrate of folder &1 failed.
CPFB799 E Unexpected condition with &1 API. Reason & 6.


API introduced: V4R3
Top | Object API categories | API by category