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 |
which are the string manipulation opcodes?
i have recently moved to hyd. i would like to know which is the best institue to learn AS400. are there any in ameerpet? thanks.
how do we know batch job aborted after we submitting it
explain the use of dftwrt display keyword?
what is a keyed physical file?
what is the use of dspatr(mdt) keyword?
what is sflpag and sflsiz ?
what is the difference between normal upddta to pf and updating using dfu program?
What is left outer join?
Q.How primary file can be defined in RPG/400?Please write the senario with opcode specification?
difference between view and index ?
Which is better LF or OPNQRYF ? When should we use LF and when should we use OPNQRYF ?