× 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: Checking Calling Program!!!!
  • From: Mark Walter <mwalter@xxxxxxxxxx>
  • Date: Fri, 24 Mar 2000 13:40:00 -0500
  • Organization: Hanover Wire Cloth

Make PGMR and PGMCL modules and bind them into one Program calling them 
PGMCL. That way there will be no PGMR to call. Only the module object will 
exist on the system.

-----Original Message-----
From:   Bale, Dan [SMTP:DBale@TFSA.Textron.com]
Sent:   Thursday, March 23, 2000 12:20 PM
To:     'RPG400-L@midrange.com'
Subject:        RE: Checking Calling Program!!!!

My method is not "foolproof", but to ensure against a casual mistake, I 
pass
a hardcoded, lengthy parameter from PGMCL to PGMR, i.e.:

In the CL:

       CALL  PGMR PARM('Program PGMR can only be called from PGMCL!')

In the RPG:

     I              'Program PGMR can onl-C         @CLCHK
     I              'y be called from-
     I              ' PGMCL!'
     C           *ENTRY    PLIST
     C                     PARM           $CLCHK 50
     C           $CLCHK    IFNE @CLCHK
      * THEN TAKE DESIRED COURSE OF ACTION...

Most likely, no one will ever mistakenly call PGMR using the correct
parameter.

HTH,
- Dan Bale

-----Original Message-----
From: Shepherd Chacko (RBIN/COP) [mailto:Shepherd.Chacko@in.bosch.com]
Sent: Thursday, March 23, 2000 10:02 AM
To: 'RPG400-L@midrange.com'
Subject: Checking Calling Program!!!!


Hi All,

In one of our application, we have an RPG Program say PGMR which is called
by a CL Program say PGMCL. If i want to ensure that PGMR  is called by 
PGMCL
alone and not directly from command line or from any other program, how 
will
i check this in the called Program ie PGMR..

Thanx in advance

Shepherd P Chacko
Robert Bosch,
India.
+---
| 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
+---

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


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.