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 |
How can you check the existence of object in a system?
how can a cgi check whether an ifs object is available?
what opcode could be used to test an alphanumeric field for all numeric values?
when would you prefer logical file than opnqryf?
list some of the commonly used commands for debugging?
What is the default access path of a file?
why is as/400 called object oriented machine?
how to write *pssr ?
what is the correct about QTEMP library(below mention)? a.it is Unique to a job b.it can be shared between different job c.it can only be deleted by QSECOFR d.Non Please give me the answer for this?
how to get the particular field's records in CL without using OVRDBF,OPNQRY? tell me the concept?
what are the three types of keywords associated with printer file ?
what is jurnal?what is the use of theis?what is difference between commitment control and jurnaling?