What hapens when we use CPYF command to copy a LF? On which
PF will it be dependent???

Answer Posted / pushyami t

if we copy logical file using CPYF command then if we see
the new file description using DSPFD command then we
observe like "Type of file " as Physical file.

if we copy using CRTDUPOBJ command then if we see
desciption of new object then it showing "Tpe of file" as
Logical file itself.

Therefore if use CPYF command it is created as PF .so there
is no dependent on any other PF.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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.

2145


How to create a login screen using a command instead of display file.... intention is to get a password field on a command..... how do you achieve this...

1394


How can we override a file during runtime in rpg?

785


write an RPG program to calculate the marks of 5 students (A,B, C, D, E)in 3 different subjects (eng, math, sci) an display on the screen

928


explain sflclr, sflend, sfldlt, and sflcsrrrn?

973






how do I play {insert rpg system here}?

672


do you use message subfiles? What are the necessary keywords required coding a message subfile?

786


what was the robotech rpg?

760


what is kids-rpg?

763


How can we know running job is batch or interactive?

749


what is the rpg system?

767


What is the diff bw PF/LF Name and their Record format name? what is restriction in record format then file name?

2603


How to write record if no field or the field are different in physical file in rpgle ?

580


Suppose we have one database file and it is used by 5 programs and in 3 program we have to add some records in datbase file s what is the impact on other program?

1551


Explain mdt?

764