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 difference between rename and prefix?
What is a query can be displayed without saving it?
what is sflrolval?
Hi friends.. i want to be a IBM MainFrame Professional.. can any body tell me what is requirement for that... i m just BA, MA, and have simple diploma in Computers. what is pre-requisite.
how can see logical file based on which physical file and vice versa
any one have give AS400 study material? pls pass it to gopalsai789@gmail.com
Hi,Please give me the the answer for these quesitons? 1.what is IFS and ICF and RAPE amd DISKET fils? explain with example please? 2.What is the difference between POST AND SPACE OPCODES? 3.Can anybody tell me default printerfile command and object type?
where will control be passed after the execution of the *pssr subroutine if the factor2 of the endsr is blank ?
How to convert a spool file to PDF file in AS400?
What are the types of data areas?
how you get the relative record in a subfile in which cursor is located?
What do you mean by ODP?