Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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



i have two pfs it contains "Status" fields in the same name "status in both the pf..

Answer / s kumar

You need to use prefix keyword when you declare the file
FPF2 IF E DISK PREFIX(S)

Where 'S' is any desired name by this all fields of PF2
will start with S alphabet.

Is This Answer Correct ?    9 Yes 0 No

i have two pfs it contains "Status" fields in the same name "status in both the pf..

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

i have two pfs it contains "Status" fields in the same name "status in both the pf..

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

i have two pfs it contains "Status" fields in the same name "status in both the pf..

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 two pfs it contains "Status" fields in the same name "status in both the pf..

Answer / s kumar

Absolutly!!

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More IBM AS400 AllOther Interview Questions

what are different record spacing keywords in rlu ?

1 Answers   IBM,


what would be the effect on the field where reverse image, underline and highlight display attributes are active ?

1 Answers   IBM,


How Many Specs Are There In Rpg & Which Are They?

0 Answers   IBM,


what are the different types of arrays available in rpg ?

1 Answers   IBM,


how can send report to user through cl program in as400

1 Answers  


What is a message file?

1 Answers  


what is difference between accespath and datapath? what is the difference between accespath and open datapath?

2 Answers  


What is Group Job?

1 Answers  


what is the maximum number of subfiles that can specified in a display file ?

1 Answers   IBM,


Hi, can you plz tell me ...syntax for GET command in FTP & SFTP is same or different???

3 Answers  


which are the member types which seu supports?

0 Answers   IBM,


What is source physical file?

1 Answers  


Categories