×
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.
The prototype MAIN is for the program/module, not for a subprocedure. No P-specs. Therefore, everything defined there is global.
Jerry C. Adams
IBM System i Programmer/Analyst
--
B&W Wholesale
office: 615-995-7024
email: jerry@xxxxxxxxxxxxxxx
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Voris, John
Sent: Tuesday, August 04, 2009 12:02 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: RE: Global variable search
David, et al. RE: David's post in rpg400-l today
I'm confused.
I guess I too would think the wVar would be local.
What am I missing ?
Once the wVar is defined underneath the PI, within the subprocedure, how
could it be a global var?
message: 2
date: Tue, 4 Aug 2009 14:12:10 +0200
from: David FOXWELL
subject: RE: Global variable search
a program with this kind of structure :
D Main PR
D P1 etc
* Global variables.
D gVar
D Main PI
D P1 etc
* Local variables.
D wVar
The programmer did not seem to realise that wVar is global.
As an Amazon Associate we earn from qualifying purchases.