What is the purpose of 'CPYTOIMPF' command?
Answers were Sorted based on User's Feedback
Answer / vignesh c
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 heterogenous databases.
| Is This Answer Correct ? | 10 Yes | 2 No |
Answer / sasikumar
Used to copy or import data from Stream files to a PF/LF.
The stream files may be an excel,txt,......etc
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / bhupendra tomar
if u want to copy a EDF from otherwhere to your local
system in a PDF then we use this cmd
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / 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 |
Answer / megha
one more advantage is that we can convert spool file
to .csv file using this command
cpytostmf frommbr(db file) tostmf(/home/xx/megha.csv)
| Is This Answer Correct ? | 0 Yes | 1 No |
Define a Job Queue?
what is the correct about QTEMP library(below mention)? a.it is Unique to a job b.it can be shared between different job c.it can only be deleted by QSECOFR d.Non Please give me the answer for this?
what is the main use of OPNQRYF ?? in that query why we can use OVERDBF and in that OVERDBY why should we use SHARE(*YES)
Can an indexed file be accessed in arrival seQuence in RPG program ?
The content of Physical file is as below: hfcftp wruquief SENDPASV 0 CDUP ASCII GET 01100901.CSV ramndk/ECP505.EC0110090 (REPLACE QUIT Thw above commands will get executed when we call STRTCPFTP from CL program.... Now if I want to use SFTP what can be the solution? plz reply in detail....Thank you for ny help... I m using RPG/ILERPG to download...
What is Data Area?
what does check opcode is used?
what is message file?
How to see all record formats used in a file?
WHICH REPLY CODE IS USED BT sftp ? ... (e.g.226 is used by FTP IF FILE IS TRANSFERED)
What is the draw back of Procedures? why we are going to Modules?
the maximum number of subfiles that can defined in a rpg program for one display file is ___ .