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 logical file in as400? What are the types of logical file?
what opcode will be used to test the zone of a character field?
How can you check the existence of object in a system?
How many PARM statement can we use in a CL program?
how many types of display are available on as/400 for user interaction?
Is qgpl a user library or system library?
What is dynslt?
how can i get the cursor position in display screen to to display my window?
Define a Job Queue?
define a shared access path?
what is arrival sequence?
How can I automate sftp commands(ls & get) in CL program.. If I want to write two scripts one for each command... can u plz tell where the script should be written? & what will be the content of each scripts?