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
how to get the cursor position?
WHICH REPLY CODE IS USED BT sftp ? ... (e.g.226 is used by FTP IF FILE IS TRANSFERED)
how many files can be defined in f specs?
explain the use of dftwrt display keyword?
what is the maximum number of fields under a record format of physical file?
WHAT IS FERERENTIAL INTRIGRITY ?
when do you use f-spec. Continuation line ?
difference between sflrcdnbr and sflnxtchg?
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..
in conjunction with what other keyword must ovrdta and ovrata be used?
what would be the effect on the field where reverse image, underline and highlight display attributes are active ?
Why we are not able to perform insert delete and update operation in Join logical file?
How can we update a specific field in RPG?
. How to know why the OPM job is in MSGWAIT state?..WHAT COULD BE THE REASON FOR it?
what does the opcode free do?