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 |
I have 1 rd in my flat file. say reord from 1 to 10 position : 'AS400NDB2400' I need to change the value from N to Y using SQL stmt ...How can I update this....?
how can you specify no duplicate key?
what is the maximum number of parameters allowed in clp?
what does the ovrdbf command do?
How to position the cursor on a display file at a desired location.
We have seen no of parameter list but If we mention like this 'CALL PROGNAME PLIST ' how to know No of parameter name of program ?
What is the use of OVRPRTF ?
How to create an Access path in Synon/2E ?
what is the favicon.ico request that my site receives now and then?
What is the purpose of 'CPYTOIMPF' command?
6 Answers Aditya Birla, Redington,
how we lock a pf???? what are the parameters used in this command.how we understand whether an object is locked or not?? using command .....we have to use *PSSR? and trough *status..how??.if we give an eg to me???pls answer me anyone..
when you are defining a flat file in your program in f specs which format will you specify?