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 |
What is field reference file?
I have SQLRPGLE program in which there are some update statements which executed correctly. there were no errors run time. Once the program gets over, the file was not updated with the new values. What might be the reason?
what are all the contents of subfile?
can you display a empty subfile?
how many levels are there in a physical file?
What is the use of SDA ?
can anybody give the interview questions list of RLU. plz mail me: dinesh_sati07@yahoo.com
what is rpg ?
at what level s,o are defined and what they will do?
when is a tag statement used in rpg?
Please give me the code for A=A+1 in cl program?
What is compiler directive in as400? Give example of compiler directive.?