× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: RE: CallP & CallB in SQLRPGLE ??
  • From: "Phil" <sublime78ska@xxxxxxxxx>
  • Date: Fri, 15 Jun 2001 19:16:41 -0400
  • Importance: Normal

Yes, the override scope and activation groups.

I compile using named activation groups, and if I create service pgms I
compile them as *caller.  Then, the override's scope needs to be *actgrp.

Otherwise you can change the override to be *job.

Phil

-----Original Message-----
From: owner-rpg400-l@midrange.com [mailto:owner-rpg400-l@midrange.com]On
Behalf Of Mike Naughton
Sent: Friday, June 15, 2001 5:49 PM
To: RPG400-L@midrange.com
Subject: CallP & CallB in SQLRPGLE ??

Hi Everyone,

This one has me stumped. I know what is happening, but I don't know why
(or how to fix it).

PgmA is  SQLRPGLE; it calls PgmB (CLLE), and it also uses CallP for
QCMDEXC to do a printer file override, like so:

<begin pseudo code>

do SQL stuff

Call PgmB

Eval Statement = "OVRPRTF QSYSPRT OUTQ(MYOUTQ)"
CallP QCMDEXC procedure

Call PgmC [separate program that produces a report -- I want it sent to
MYOUTQ]

Eval Statement = "DLTOVR *ALL"
CallP QCMDEXC procedure

. . .etc. . .

<end pseudo code>

The above example works fine. However, if I change "Call PgmB" to "CallB
PgmB", the OVRPRTF is ignored (never executed?). That is the only
difference in the code, but I do compile it differently -- in the above
case, there are no other CallBs, so I simply compile the source directly
into a program; with the CallB, I compile it into a module first and then
use CRTPGM to put it together.

Any ideas?

TIA,

Mike Naughton
Senior Programmer/Analyst
Judd Wire, Inc.
124 Turnpike Road
Turners Falls, MA  01376
413-863-4357 x444
mnaughton@juddwire.com

+---
| 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
+---


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

+---
| 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 thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 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.