Example: Copying a file to the QNetWare file system

Note:
Read the Code disclaimer information for important legal information.

To copy a file to the QNetWare file system, you can use either iSeries™ Navigator or the CPY command. However, because no conversion is done, the resulting file in the QNetWare file system may not be useful. You can see an example of copying an iSeries database file that requires conversion from the packed decimal format.

Copying a file from iSeries Navigator:

  1. In iSeries Navigator, expand your iSeries server —>File Systems —>Integrated File System —> the file system that contains the file you want to copy to QNetWare.
  2. Click on the file you want to copy to select it; then right-click and select Copy from the drop-down menu.
  3. Expand the QNetWare file system, then the NetWare server.
  4. Click on the directory into which you want to copy the file to select it; then right-click and select Paste from the drop-down menu.

Copying a file with the COPY (or CPY) command:

To copy source physical file FILE1 in library LIBRARY1 with member MEMBER1 to the SYS: volume on NetWare server SERVER1 in directory DTA, you would use this command:

CPY OBJ('/QSYS.LIB/LIBRARY1.LIB/FILE1.FILE/MEMBER1.MBR')
    TOOBJ('/QNETWARE/SERVER1.SVR/SYS/DTA/MEMBER1.DAT')
    TOCODEPAGE(437)
    DTAFMT(*TEXT)