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 the clp command to access a query/400?
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
where will control be passed after the execution of the *pssr subroutine if the factor2 of the endsr is blank ?
Can you use multi format LF in CL program?
How to add 99 menu (page down) option in menu creation..
how do you detect unused spool storage?
how can you check for a records existence without causing and i/o (chain/read)?
What is a Join Logical File, Can it be used for Update ?
what is qcmdexc?
what are the different types of data areas?
How to see all members of a file?
What is difference between CAT, TCAT, BCAT?