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 a query can be run in which mode?
if dspatr(pc) and csrloc were specified for a format, which keyword would have priority?
how do you read data area in an rpg program?
can you specify a display file to be used in the following modes input,output, or combined modes ?
what does defn do?
what is a logical file?
What Does 'sr' In Columns 7-8 Of C Specs Mean?
what is message subfile?
what does the ovrdbf command do?
where will control be passed after the execution of the *pssr subroutine if the factor2 of the endsr is blank ?
How can we arrange duplicate records in a file?
define subsystem?
maximum number of subfiles that can be active for a single file is?
how can I give more performance to some selected pages?
how to write code for singlepage in sqlrpgle with update ?