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 Is The Purpose Of The "n" In The Following Calculation Specification?

0 Answers   IBM,


what is command in SFTP which is equivalent to SDUP command in FTP?

2 Answers  


What is the as400 called now?

0 Answers  


What is the draw back of Procedures? why we are going to Modules?

0 Answers  


how does the runqry show the output?

0 Answers   IBM,






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

3 Answers  


how can I give more performance to some selected pages?

0 Answers   IBM,


when would you prefer logical file than opnqryf?

1 Answers   IBM,


where exactly we can use OPNQRYF ?

3 Answers   TCS,


in conjunction with what other keyword must ovrdta and ovrata be used?

1 Answers   IBM,


How I can read and display three fields in the record format DSPFM1 of the display file,while one field(using in one file) is NAME which is Key field in field reference file and another two fields are AGE and ROLL NO are using another file. Please send me coding part.

2 Answers   IBM,


what is rpg ?

1 Answers   IBM,






Categories