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?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to get the cursor position?

697


WHICH REPLY CODE IS USED BT sftp ? ... (e.g.226 is used by FTP IF FILE IS TRANSFERED)

1704


how many files can be defined in f specs?

1360


explain the use of dftwrt display keyword?

1122


what is the maximum number of fields under a record format of physical file?

977






WHAT IS FERERENTIAL INTRIGRITY ?

1091


when do you use f-spec. Continuation line ?

955


difference between sflrcdnbr and sflnxtchg?

686


Hello, I have created a CMD type object. In one of the fields in Display file , I would like to see All the Source files present by pass the name of Library. Tried using CHoice(Keyword) and Choicepgm on PARM , but doesn't seems to be working. Any help please..

1771


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

898


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

973


Why we are not able to perform insert delete and update operation in Join logical file?

923


How can we update a specific field in RPG?

917


. How to know why the OPM job is in MSGWAIT state?..WHAT COULD BE THE REASON FOR it?

7010


what does the opcode free do?

1108