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 |
what would be the effect on the field where reverse image, underline and highlight display attributes were active?
1.What is the difference between regular join logical file and non join logical file? 2.what are the nessasary keywords for non join logical file
what is the maximum number of parameters allowed in clp?
http default port 80 is used by some other production http service. How can I create an http instance on another port to run cgidev2 and my future cgi developments?
How to read data from *LDA (Local Data Area) in RPGLE program without using IN opcode?
what are members?
How to see all record formats used in a file?
What Does Lokup Does In Tables & Arrays?
how to validate input values in display file ?
Job is running in production 24/7 how do u debug that running job ?
what is logical file?
how to toggle between single line and multi - line display of a particular record in a subfile?