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 will you find a string using pdm?
which of the following operations does not zero the field flda defined as 4,0?
What is the native language of AS/400?
268 How many parameters can be defined in a RPG program. ?
what is the purpose of ovrdta and ovrata keywords ?
what is the difference between normal upddta to pf and updating using dfu program?
Hi, can you plz tell me ...syntax for GET command in FTP & SFTP is same or different???
all i need to know about cmpseqdat parameter in cmppfm, how it works and can we retrieve line sequence and date from the output?
define the purpose of the *bcat function?
how can i get the cursor position in display screen to to display my window?
What is compiler directive in as400? Give example of compiler directive.?
How to trap errors in CL?