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 we find from which source the program has been compiled for a given RPGLE program object?
How many record formats can you have in a Physical file and in a Logical file ?
how to convert date format from one format to another i think in CL/400 its CVTDAT,Please tell in RPG/400 sir not in RPGILE
what is the use of unique keyword and what level it is defined?
I am a fresher. I got project on AS 400. Can any body suggest the best book for learning of it.
how do handle file exception/error?
what is the clp command to access a query/400?
What is the purpose of the following C/COPY QRPGSRC, ORDERR
what is a spool file?
what is the difference between *like and *namvar ?
Write the subfile logic program for the given concept. Load the data to the subfile depends upon the designation where designation is not a key field?
What is a message file?