List the steps/commands necessary to accomplish the following:
a. Copy data from the file ORDHDR into file ORDHIST
b. The file ORDHIST may or may not exist
c. If the file ORDHDR does exist, it may or may not contain data
d. The file ORDHIST may or may not contain data, if the file does contain data the old data should be erased
Answer / supranshu saurabh vir singh
Commands: a. CPYF FILE(ORDHDR)
TOFILE(ORDHIST)
b. CPYF FILE (ORDHDR)
TOFILE (ORDHIST) CRTFILE (*YES)
c. CPYF FILE (ORDHDR) TOFILE (ORDHIST) *ADD
d. CPYF FILE (ORDHDR) TOFILE (ORDHIST) *REPLACE
Is This Answer Correct ? | 0 Yes | 0 No |
if dspatr(pc) and csrloc were specified for a format, which keyword would have priority?
what does opcode post do ?
How can we read file using curser? how to define a curser?
Difference Between Interactive & Batch Job?
What is the purpose of the following? I 'CLOSED' C STAT01 I 'OPEN' C STAT02
what is multijoin logical file? what are the keywords available in joinlogical file? what are the mandatary keywords for joinlogical file? explai the keywords?
what is the clp command to access a query/400?
what are different types of substems?
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)
What is the difference between non-join logical files and join logical files?
What is the use of OVRDBF ?
What is purpose of declarative statement DEFN?