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
is there any way to dynamically merge other html scripts into a given html?
Can level check error occur if we do chgpf?
what is the use of dspatr(mdt) keyword?
what is the version of os/400 that we have?
how many files, printer files you can describe in a rpg?
how you will find an error which is not in the first page of the subfile without using rolldown key?
what is the difference between seton lr and retrn?
how can you detect and handle a record lock situation?
how will you display a particular page in subfile ?
A join logical file has how many record formats?
what is the maximum number of parameters allowed in rpg?
Can we debug the MSGW JOBS?
how to pick up the changed records every time in a subfile after the first change made ?
What are the types of data structure in as400?
Using %check we are checking monika in mona what is output? What is %SCAN?