IBM Support

How to Copy a Save file from the IFS to a Library

How To


Summary

This assumes you have created or transferred a save file in the Integrated file system and want to move it into a library.

Steps

In this example we have a save file in the /temp folder.
The save file name is mysave.savf
The goal is to move it into QGPL library.
The code page of the system is 37.

First create the save file, this just initializes it.
CRTSAVF FILE(QGPL/MYSAVE)

The CPY command is used for this task.
CPY OBJ('/path/mysave.savf') TOOBJ('/qsys.lib/qgpl.lib/mysave.file') TOCCSID(37) REPLACE(*YES)


Document Location

Worldwide


[{"Type":"MASTER","Line of Business":{"code":"LOB57","label":"Power"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG60","label":"IBM i"},"ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions"}]

Document Information

More support for:
IBM i

Software version:
All Versions

Document number:
7028113

Modified date:
18 August 2023

UID

ibm17028113

Manage My Notification Subscriptions