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
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 |
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 |
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 |
how does the runqry show the output?
What is keyword PFILE specifies ?
What are the different types of access paths maintained on the file?
Difference Between Ca & Cf?
Suppose we have field reference file we were any changes that corresponding Physical file then what will Happen in field reference file??
What is the purpose of the "N" in the following calculation specification? C KEY CHAIN FILE N 99
What is SDA used for?
What is file information data structure(infds) in as400?
What is the purpose of OVRATA keyword ?
what is maximum number of arrays allowed in rpg?
How to declare the length of emp no in the physilcal file and the mandatory length is 6 i.e. Emp No should be numeric, mandatory and fill all the 6 places
What Does Lokup Does In Tables & Arrays?