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

how to validate input values in display file ?

655


can we use ASCII ,CDUP,SENDPASV commands in SFTP?

3139


what is scan and xlate?

1076


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

942


when should I use method get, and when should I use method post in my cgis?

597






if we tried to move year part of *iso date into a field of length 3, what will happen ?

647


define the purpose of the leave operation?

934


What is the default access path of a file?

577


what is the use of jdftval in join logical file?

1101


what is the command to know key fields of file?

617


what is the clp command to access a query/400?

1343


what is the sequence when using cursor?

593


What Is The Purpose Of The "n" In The Following Calculation Specification?

661


when would you use or not use this approach?

881


can a single screen format occupy a screen area above and below a subfile format ?

1012