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 |
what is data structure?how many types of data structers?
Q.Hi All friends, I have one Question, I have three fields in display file SUP LOT, ISSUED to Prod and Line Grp. Field SUP LOT is mentioned in one field reference file WRSLT and key field as a key field LP.Fields ISSUED to PROD,Line GRP are mentioned in the another Field reference file WMDTF. So I want to read SUP LOT on the basis of key field LP from the first file WFSLTand then i want ot read another two fields ISSUED to DATE and LINE GRP from second file on the basis of SUP LOT, which i got from first file.Now i want to display these fields in the display file DSPWMMS. but Condition is that 'Supplier Lot,ISSUED to Prod and Line Grp will not be shown if their respective fields are blanks/Zero. Please Let me Know coding part of this senerio and what would be coding for display file to now shown fields if fields are blanks/zero. My mob. no. is 9836300345. Please reply me asap.
What is SDA used for?
how to write *pssr ?
define the purpose of the iter operation?
Define an Interactive Job?
what are the parameters required for calling ls & get command(SFTP COMMANDS) from cl progtram.... e.g call PGM(qp2shell) PARM('/qopensys/usr/bin/sh' '-c' 'sftp -b /home/mydir/tmp.txt user@host.com') Plz reply in detail...
why do we use readc? What is sflnxtchg?
what is elastic and non elastic subrile?
which single rpg opcode performs both setll and reade?
I am a fresher. I got project on AS 400. Can any body suggest the best book for learning of it.
which are the query selection criteria, which can be given in a query?