There are three areas that reside in a single file. What are the steps needed to move the second area to its own file?
Environment
Release: All supported releases.
Resolution
The other two areas sharing that file would need to be assigned contiguous block numbers in the file. This could be done with a backup and restore, but it would also be doable with an unload/reload. The backup and restore would be easier and quicker.
The process using backup and restore would be:
Make the areas to be processed unavailable for update under the central version. (If re-using some of the existing files, take the area offline to the central version.)
Backup the areas using the AREA option of the BACKUP utility statement and the old DMCL.
Change the definition of the areas by excluding all files associated with the areas being changed and re-assigning the pages of the area to the new file blocks.
Generate, punch and link all DMCLs that contain the segment with which the areas are associated.
Allocate and format the new database file using the new DMCL. This step will change the file block assignment, so that the areas are assigned contiguous block numbers in the file.
Restore the areas using the AREA option of the RESTORE utility statement and the new DMCL.
Make the new DMCLs and the new files available to the runtime environment.