i have two pfs it contains "Status" fields in the same
name "status in both the pf's...But i used the same name
in display file...when i enter a status thru disp file it
willbe added to pf1...so i want to rename "Staus " field in
pf2 through program...............wat will do..give coding?

Answers were Sorted based on User's Feedback



i have two pfs it contains "Status" fields in the same name "status in both the pf..

Answer / s kumar

You need to use prefix keyword when you declare the file
FPF2 IF E DISK PREFIX(S)

Where 'S' is any desired name by this all fields of PF2
will start with S alphabet.

Is This Answer Correct ?    9 Yes 0 No

i have two pfs it contains "Status" fields in the same name "status in both the pf..

Answer / syam

Kumar's answer is correct, but this will prefix all fields
for pf2 file with "S".

Use this code:

D NewPf2 E DS EXTNAME(PF2)
D S_Status E EXTFLD(Status)

This is for one field

Is This Answer Correct ?    7 Yes 0 No

i have two pfs it contains "Status" fields in the same name "status in both the pf..

Answer / svankipu

Yah! Kumar's answer is correct and...
Syam's answer is aptly correct. exact.

why do u want to prefix all the fields either?
it is not proper also. & it becomes cumbersome also while
maintaining.

Thanks!

Is This Answer Correct ?    1 Yes 0 No

i have two pfs it contains "Status" fields in the same name "status in both the pf..

Answer / fhgf

HI,
YOU MEAN "SSTATUS" IN PF2
THEN..IT WILL BE EVAL SSTATUS=STATUS,WRITE PF2

Is This Answer Correct ?    1 Yes 1 No

i have two pfs it contains "Status" fields in the same name "status in both the pf..

Answer / s kumar

Absolutly!!

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More IBM AS400 AllOther Interview Questions

what is service program?

0 Answers   IBM,


can I copy content of Physican file in some source Member of type TXT? Thanx..

1 Answers  


What are the different types of access paths maintained on the file?

1 Answers  


What is the purpose of 'CPYTOIMPF' command?

6 Answers   Aditya Birla, Redington,


what is multijoin logical file? what are the keywords available in joinlogical file? what are the mandatary keywords for joinlogical file? explai the keywords?

2 Answers   HCL,






how will you add a field to physical file already containing data?

1 Answers   IBM,


what are necessary keywords to code message subfile?

1 Answers   IBM,


what is sflinz and sflrna?

0 Answers   IBM,


why we use binding directory and service pgm

4 Answers   TCS,


what are the three line types in rlu ?

1 Answers   IBM,


Difference Between Source Physical File & Physical File?

0 Answers   IBM,


How to convert a spool file to PDF file in AS400?

0 Answers  


Categories