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 Posted / 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 |
Post New Answer View All Answers
which type of object is used in db2/400?
what is the purpose of overrides?
how do you pass parameters in cl?
What is dynslt?
is it there an easy way to determine if an html section is available to issue a wrtsection upon?
Difference between NOPASS & OMIT?
what is the use of jdftval in join logical file?
what is the sequence when using cursor?
which single rpg opcode performs both setll and reade?
what is the disadvantage of using global variable?
a multiple format logical file is also known as?
if we tried to move year part of *iso date into a field of length 3, what will happen ?
what is term cua , saa?
what is the maximum number of records you can specify in a display file?
In 'o' Specs What Is The Opcode For Write?