|
Bruce, I'm not sure I understand. OVRPRTF works from the inside out.
RPG 1
OVRPRTF SPLFOWN(*YES)
CLP 1
OVRPRTF FORMTYPE(INVOICE)
RPG 2
Print invoice - This will have FORMTYPE(INVOICE) SPLFOWN(*JOB)
The innermost override (CLP 1) is superceded (overriden by) the one in RPG1.
This pertains to overrides issued in the same job. Overrides in job A never
affect any other jobs, so
RPG 1
OVRPRTF SPLFOWN(*YES)
SBMJOB CLP 1
OVRPRTF FORMTYPE(INVOICE)
RPG 2
Print invoice - This will have FORMTYPE(INVOICE) only
RPG 1 runs in JOB A, whilst CLP 1 and RPG 2 run in job B because of the
SBMJOB.
Overrides are designed specifically this way, so that you can modify the
inner CL's behaviour without changing the CL program.
I hope that helps some.
Buck
> -----Original Message-----
> From: Bruce Jin
> Sent: Thursday, April 26, 2001 11:42 AM
> To: RPG400-L@midrange.com
> Subject: Re: RTVJOBA in CGI question
>
> Thanks Buck for the info.
> It looks like OVRPRTF is not cumulative and I can't use OVRPRTF before I
> call the CL that generates the report. I have to think about something to
> change the report CL directly without impacting its normal function.
>
> Bruce
+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.