Troubleshooting
Problem
This document describes methods to copy source physical file members between IBM i partitions or systems.
Resolving The Problem
Moving a Source File Member from One IBM i to Another
Note: A PC is not required to use this set of directions.
To FTP from the source system to the target system, do the following:
Using IBM i Access Client Solutions Data Transfer to Move a Source File Member from One IBM i to Another IBM i
Note: A computer with IBM i Access Client Solutions deployed can use this set of directions:
To download the member from the source system, do the following:
Note: A PC is not required to use this set of directions.
To FTP from the source system to the target system, do the following:
1. | Type FTP TargetSystemName, [Enter]. |
2. | Type the user ID on the target system when prompted, and press the Enter key. |
3. | Type the password for the target system when prompted, and press the Enter key. |
4. | Type lcd LibraryName (to change the working directory on the source system to the library where the source file is located), and press the Enter key. |
5. | Type cd LibraryName (to change the working directory on the target system to the library that the source file member is to be copied to), and press the Enter key. |
6. | Type ASCII (to use ASCII mode), and press the Enter key. |
7. | Type put SourceFileName.MemberName, and press the Enter key. |
8. | Type quit (to exit FTP), and press the Enter key. |
Note: If the source file member must be FTPed to a source file with a different name or to a member with a different name, use the syntax shown in the following example on the put command:
put QDDSSRC.Member1 QCLSRC.Member2
This example copies a member called Member1 from the QDDSSRC file on the source system to a member called Member2 in the QCLSRC source file on the target system.
put QDDSSRC.Member1 QCLSRC.Member2
This example copies a member called Member1 from the QDDSSRC file on the source system to a member called Member2 in the QCLSRC source file on the target system.
Using IBM i Access Client Solutions Data Transfer to Move a Source File Member from One IBM i to Another IBM i
Note: A computer with IBM i Access Client Solutions deployed can use this set of directions:
To download the member from the source system, do the following:
- Open IBM i Access Client Solutions, select the source system and click Data Transfer.
- Select the name of the source system.
- Complete the 'File name:' with the library, file and member name in the format, LIBRARY/FILE(MEMBER).
- Select 'File' for the 'Output device:'
- Provide a path and file name for the "Name:" field. For example, C:\temp\sourcemember.txt.
- Click the 'Details' button to open the 'File Details' dialog.
- Check the box, 'Save client file description' and provide a file name. For example, sourcemember. Click the 'OK' button to close the dialog.
- Click the 'Start Transfer' button. When the transfer is complete a message is displayed, click OK to close that message.
To upload the member to the target system, do the following:
- In the IBM i Access Client Solutions Data Transfer window you opened in step 1 of the download instructions, click the 'To IBM i' tab.
- Specify 'File' for the 'Input device:'.
- In the 'Name:' field, specify the same file from download step 5.
- Select the system that you are transferring the source member to in the 'System:' field.
- Specify the target library, file, and member in the 'Library/file(member)' field.
- Click the 'Details' button to open the 'File Details' dialog.
- You do not have to take many actions in this dialog. The option 'Use client file description' is selected by default. The FDFX file created by the upload is listed in the 'File name:' field. Specify an option for the 'Create IBM i object:' field to perform the action you want.
- Click the 'OK' button to close the 'File Details' dialog.
- Press the 'Start Transfer' button. Once the transfer is complete, a message is displayed with the transfer statistics. Press 'OK' to close that message.
Send a File Member with the Integrated File System
This technique makes use of the QFileSvr.400 remote file system. In order to use this file system your user profile and password must be the same on both source and target systems. For this example, I am copying the source member MIKSWENS/MYCLSRC(AAA) from SystemA to SystemB
- Define the remote IBM i SystemB on SystemA by using a make directory command: md '/QFileSvr.400/SystemB'
- Set the current directory to the target path. cd '/QFileSvr.400/SystemB/QSYS.LIB/MIKSWENS.LIB/MYCLSRC.FILE'
- Copy the source member from the source to the target: CPY '/QSYS.LIB/MIKSWENS.FILE/MYCLSRCE.FILE/AAA.MBR' REPLACE(*YES)
[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG60","label":"IBM i"},"Component":"Access for Windows","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"Version Independent","Edition":"","Line of Business":{"code":"LOB57","label":"Power"}}]
Historical Number
30301658
Was this topic helpful?
Document Information
More support for:
IBM i
Software version:
Version Independent
Operating system(s):
IBM i
Document number:
639813
Modified date:
24 June 2021
UID
nas8N1016548
Manage My Notification Subscriptions