What hapens when we use CPYF command to copy a LF? On which
PF will it be dependent???
Answer Posted / jadwiga szczech
The result of CPYF command to copy a LF will be independent
PF which will be keyed the same way as copied LF.
If you have PF named CLIENT and LF named CLIENT1 created
over CLIENT with CLT# key field in Library1.
CPYF FROMFILE(Library1/CLIENT1) TOFILE(Lib2/CLIENT1) MBROPT
(*ADD) CRTFILE(*YES)
will create PF named CLIENT1 keyd by CLT# key field in Lib2.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How can we know running job is batch or interactive?
How to declare the pull button in AS/400..
Interviewer asked me write down DDS for load all subfile .can anybody write dds
What is the difference between copybooks and subprocedures in as400?
do you use message subfiles? What are the necessary keywords required coding a message subfile?
how do you use commitment control in rpg?
What is the purpose of record level identifier?
what are the key words you must use when using a subfile?
Please tell me how to read the records from a file with load an array of size with error conditions(The logic answer for this question is ARR is array of 99 elements Z-ADD 0 IDX *LOVAL SETLL FILE READ FILE 99 *IN99 DOWEQ *OFF IDX ANDLT 99 ADD 1 IDX MOVE FIELD ARR,IDX READ FILE 99 ENDDO).So,Please give me the complete of this code.
how does the rpg element work?
How many program bind in one module....
How to handle duplicate error handling in RPG?
how do I play {insert rpg system here}?
What is ment by record level identifier?
can anybody help me to solve this problem. the program that i m checking display error message saying "Record format for file AJDSPFFD does not match model file and decimal error. how to solve this problem. The AJDSPFFD is snapshot the AJTLOG that is the audit trail list.