To save any iSeries Library to a save file and copy it with CPYTOSTMF, run the following commands, where xxx is the name of the library to save and copy and yyy is where you are copying it to:
- CRTSAVF FILE(QGPL/xxx)
- SAVLIB LIB(xxx) DEV(*SAVF) SAVF(QGPL/xxx)
- CPYTOSTMF FROMMBR('/qsys.lib/qgpl.lib/xxx.file') TOSTMF('/home/xxx.savf')
- CVTDTA(*NONE) ENDLINFMT(*FIXED)
- CRTSAVF QGPL/yyy
- CPYFRMSTMF FROMSTMF('/home/xxx.savf') TOMBR('/qsys.lib/qgpl.lib/yyy.file') MBROPT(*REPLACE) CVTDTA(*NONE) ENDLINFMT(*FIXED) TABEXPN(*NO)
- CRTLIB yyy
- RSTLIB SAVLIB(xxx) DEV(*SAVF) SAVF(QGPL/yyy) MBROPT(*ALL) ALWOBJDIF(*ALL) RSTLIB(yyy)
Last Modified On:
No, open a new Support Case