/MYDATA/MEMOS
/MYDATA/FINANCE
/MYDATA/FINANCE/QUARTER
/MYDATA/FINANCE/ANNUAL
/MYDATA/INVOICE
/MYDATA/INVOICE/WORKING
/MYDATA/INVOICE/SHIPPED
/MYDATA/INVOICE/SHIPPED/LOCAL
/MYDATA/INVOICE/SHIPPED/AWAY
Each of these directories contains various files that the company wishes to make available to its employees. They do not want to give everyone authority to the user's /MYDATA directory and prefer to create a /PUBLIC directory that contains all of the information from /MYDATA.
To do this, perform the following steps:
1 To create a save file to hold your data, on the operating system command line type the following:
CRTSAVF FILE(MYLIB/MYSAVF)
Press the Enter key.
2 Save the desired Integrated File System directory to the save file using the SAV command. (Full parameters are shown in the screen shot.) On the OS/400 or i5/OS command line, type the following:
SAV DEV('/QSYS.LIB/MYLIB.LIB/MYSAVF.FILE') OBJ(('/MYDATA'))
Press the Enter key.
3 Restore the directory to a new location, in this example /PUBLIC. (Full parameters are shown in screen shot.) On the OS/400 or i5/OS command line, type the following:
RST DEV('/QSYS.LIB/MYLIB.LIB/MYSAVF.FILE') OBJ(('/MYDATA' *INCLUDE '/PUBLIC'))
Press the Enter key.
In addition to the original /MYDATA directory tree, there is now a /PUBLIC directory tree with copies of all of the files and directories from the original directory.
No comments:
Post a Comment