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



That was my problem - Thanks!!  When using a 'like' on a PR, the field name
is required.  I guess I was thinking I had to use that field name instead of
the actual data structure name.  Thanks again!


----- Original Message -----
From: "Buck Calabro" <Buck.Calabro@commsoft.net>
To: <RPG400-L@midrange.com>
Sent: Monday, April 23, 2001 9:56 AM
Subject: RE: Data structure on a CallP


> Hi Jade,
> The name on the D specs for the PR definition is ignored, so there really
is
> no field called $wdwtmp_stdprm in the calling program.  The name IS used
as
> a local variable in the PI though.  I would callp using $wdwtmp_stdds if
> possible.
>
> Buck Calabro
> Commsoft; Albany, NY
> "Nothing is so firmly believed as
>  that which we least know" -- Michel Montaigne
> Visit the Midrange archives at http://www.midrange.com
>
> > -----Original Message-----
> > From: Jade Richtsmeier
> > Sent: Monday, April 23, 2001 10:27 AM
> > To: RPG400-L@midrange.com
> > Subject: Re: Data structure on a CallP
> >
> >
> > Here's my prototype:
> >  d WdwTmp            pr                  extpgm('WDWTMP')
> >  d $wdwtmp_stdprm                     like($wdwtmp_stdds)
> >
> >  d* Parameters used to call the window program
> >  d $wdwtmp_stdds e ds                  extname(stdintparm)
> >  d                                                    prefix($wdwtmp_)
> >  d $wdwtmp_hsas                   1a
> >  d $wdwtmp_desc                  45a
> >
> > StdIntParm = the name of a physical file
> >
> >
> > Here's my CallP statement:
> >
> > c                   callp     wdwtmp($wdwtmp_stdprm)
> >
> > The called program has the prototype /copy in it (shown above), and the
PI
> > statement has the data structure defined in it.  This program compiles
> > without a problem.  But, when I try to compile the calling program, it
> > tells
> > me that $wdwtmp_stdprm isn't defined.  When I scan for $wdwtmp_stdprm in
> > the
> > compiled source, it shows it defined in the D specs.  Am I missing
> > something?
> +---
> | 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 ...

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.