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
during input operation which indicator position is seton if there is a record lock?
What is access path in as400?
Using %check we are checking monika in mona what is output? What is %SCAN?
explain the difference between defining subfile and message-subfile?
How can we change the uppercase to Lowercase in RPG?
What are the record format field mapping options in cpyf?
how can database records be read without lock ?
what is cab?
how can a message from a message file appear as a constant on the screen?
What is binder language ?
How to debug a batch job when it is in messagewait(mswg) status. I know the steps for batch ebugging, but im confusing with when we submit any job for batch debug we put in held state. So here also do same thing or any other way?
what is the maximum number of parameters allowed in rpg?
what is the difference between *like and *namvar ?
what is the purpose of putovr (put with explicit override) keyword?
what is the difference between packed decimal and zoned decimal?