Copying source file data
You can use the Copy Source File (CPYSRCF) and Copy File (CPYF) commands to write data to and from source file members.
When you are copying from a database source file to another database source file that has an insert trigger associated with it, the trigger program is called for each record copied.
- Copying to and from source files using the Copy Source File (CPYSRCF) command
The Copy Source File (CPYSRCF) command is designed to operate with database source files. Although it is similar in function to the Copy File (CPYF) command, the CPYSRCF command provides defaults that are normally used for copying a source file.
- Copying to and from source files using the Copy File (CPYF) command
The Copy File (CPYF) command provides additional functions over the Copy Source File (CPYSRCF) command for copying to and from source files.
- Source sequence numbers used in copies
When you copy to a database source file, you can use the SRCOPT parameter to update sequence numbers and initialize dates to zeros.
Parent topic:
Working with source files