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 |
write a pgm to read p.f using cl pgm?
can you display a empty subfile?
what is the purpose of putovr (put with explicit override) keyword?
what are the different opcodes available in rpg for database access ?
What is the Difference between command attention key and command function key ?
what is jurnal?what is the use of theis?what is difference between commitment control and jurnaling?
How can we arrange duplicate records in a file?
why we use binding directory and service pgm
what are members?
To Add A File To The 'file Selection' Option Of A Query, The Function Key To Be Pressed Is?
how to develop some simple graphs (bar charts) using just html?
what does dfu program you to do on a record?