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
what is cab?
How do you check object lock
how can you specify no duplicate key?
What is the Difference between command attention key and command function key ?
what is a primary file?
how can a cgi check whether an ifs object is available?
how many printer files can be defined in f specs ?
what is a program described file in rpg?
what opcode will be used to test the zone of a character field?
Difference Between Source Physical File & Physical File?
what the purpose of ovrdta, ovrata keywords?
how to validate input values in display file ?
How do I remove a flag or check no. or name when a user opens too many sessions?
which cl command is used to trap error messages during program execution?
What are the types of data structure in as400?