PxPlus User Forum

Main Board => Discussions => Language => Topic started by: Jerry Fletcher on March 27, 2026, 09:29:26 AM

Title: Program Alias
Post by: Jerry Fletcher on March 27, 2026, 09:29:26 AM
Hello,

I read the prefix documentation but I'm not sure if I am in the right place.
Is there a way to do the following in pxplus?

We have a program ARHIST.
When we call / perform or run it we want the system instead to call/perform/run ARHISTV2.
Is this possible without changing ARHIST and all it's entry points?

Thanks

Jerry

Title: Never Mind -> Re: Program Alias
Post by: Jerry Fletcher on March 27, 2026, 10:33:47 AM
Hi,

i think i figured it out. if i do somethign similar to this with a program it seems to work.

thanks

jerry

KEYED "PFXFILE",12
OPEN (1) "PFXFILE"
WRITE(1,KEY="ARFABC.SOA")"[odb]MAS90MFK;ARF_TermsCodeMasterfile;DB=MAS_AB
C;","KEY=TermsCode;REC=TermsCode:2+Description:30+DaysBeforeDue:3+DueDateADayOfMonth:1+DaysBeforeDiscDue:3+DiscDateADayOfTheMonth:1+
MinDaysAllowedInvDue:3+MinDaysAllowedDiscDue:3+DiscountCalcMethod:1,DiscountPercentage:19.7"
CLOSE (1)