What is the purpose of 'CPYTOIMPF' command?

Answer Posted / yogesh

CPYTOIMPF – Copy to import file
The Copy To Import File (CPYTOIMPF) command copies an
externally-described file to an import file. The term
import file is used to describe a file created for purposes
of copying data between heterogeneous databases. The
import file (TOSTMF or TOFILE parameter) will be called the
to-file for this command.

TOSTMF: - Specifies the output stream file to which data is
to be copied
A stream file is a randomly accessible sequence of bytes,
with no further structure imposed by the system. The
integrated file system provides support for storing and
operating on information in the form of stream files.
Documents that are stored in your server's folders are
stream files. Other examples of stream files are PC files
and the files in UNIX systems. An integrated file system
stream file is a system object that has an object type of
*STMF.

TOFILE:- Specifies the database file to receive the copied
records.
The to-file can be any of the following file
types:

o source physical
file.

o if the file is not a source file, the file can have
only one non-numeric
field.
o program-described physical
file.

o externally-described physical file with one non-numeric
field.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

define what a data queue is along with a brief example of what it may be used for?

1061


how do you read data area in an rpg program?

1107


Difference Between Skip Before & Space Before?

668


how you will find an error which is not in the first page of the subfile without using rolldown key?

551


what would be the effect on the field where reverse image, underline and highlight display attributes were active?

923






what is a primary file?

1039


What is access path in as400?

845


which are control break logic indicators?

635


how to declare a constant variable in the freeformat?

957


what is the purpose of ovrdta (override data) keyword?

1063


how will you search an array?

644


what does the opcode free do?

1119


what is the length of a variable in rpg?

960


define the purpose of the *cat function?

976


How to Define a Procedure in RPG?

1220