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
What are the different opcodes used for file operation on a subfile in a rpg pgm?
what is a program described file in rpg?
during input operation which indicator position is seton if there is a record lock?
Service Program : S1 Modules in S1 : M1 M1 having two procedures : ADD, SUB Current Binder Language STRPGMEXP PGMLVL(*CURRENT) EXPORT SYMBOL("ADD") EXPORT SYMBOL("SUB") ENDPGMEXP Doubt: I need to add one new Module to the Service Program M2 having one procedure ‘MULT’ How to add this new module to the service program S1 ? If I need to recreate the service program again, Do I need to mention the Module M1 again while recreating along with new Module M2? There is no Binding Directory. Binder language structure will be like this STRPGMEXP PGMLVL(*CURRENT) EXPORT SYMBOL("ADD") EXPORT SYMBOL("SUB") EXPORT SYMBOL("MULT") ENDPGMEXP STRPGMEXP PGMLVL(*PREVIOUS) EXPORT SYMBOL("ADD") EXPORT SYMBOL("SUB") ENDPGMEXP
What is file information data structure(infds) in as400?
what is message subfile?
what is a primary file?
when do you explicitly open files and close files in an rpg program?
is it possible, in the same cgi, to run more than one gethtml or gethtmlifs?
What Is The Error If We Don't Get Login Screen?
what are various techniques to pass parameters from one program to another?
what would be the effect on the field where reverse image, underline and highlight display attributes are active ?
what is the use of jdftval in join logical file?
how can we run a batch job?
how many levels are there in a physical file?