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 is a job log?
maximum number of subfiles that can be active for a single file is?
What are the different types of keywords in display files?
Specify different indicators used in RPG?
When will DUMP and DEBUG opcodes be ignored?
how can I give more performance to some selected pages?
How to convert a spool file to PDF file in AS400?
What are Control level indicators?
what are the different methods to access seu?
Hi,while writing a program, what is the mandatory specification using rpg/400 (in7 specification)?And please tell me what is the difference between SCAN AND CHECK opcodes?can any body tell me in real time senario?with example?
which of the cl command can be used to determine which logical files are dependent on a specific file?
what is the maximum number of parameters allowed in clp?