I tried this, and 2nd program gave a compile error.
If I added another line (* only) to the end of the 1st (included) file, and
tried again, it compiled OK.
We are on UV10.1.10 PICK format, on WIndows 2000.
Unlikely, but worth a go!
----- Original Message -----
From: "Bob Woodward" <[EMAIL PROTECTED]>
To: "U2-Users List" <[email protected]>
Sent: Tuesday, October 18, 2005 12:40 PM
Subject: [U2] Strange $INCLUDE problem
Hi Folks,
I've got a program that I'm enhancing and I'm needing to add a labeled
common to it. It already has a standard common block that's $INCLUDEd
so I added my $INCLUDE right below that. A synopsis of mine is:
*********************************
* MYSTUFF.INCLUDE
* INCLUDED LABEL COMMON AND ORIGINAL DEFAULT VALUES
COMMON /MYSTUFF/ AVAR1, AVAR2, AVAR3, AVAR4...
COMMON /MYSTUFF2/ BVAR1, BVAR2, BVAR3, BVAR4...
*
IF UNASSIGNED(AVAR1) THEN
AVAR1 = ''
AVAR2 = ''
AVAR3 = ''
AVAR4 = ''
...
BVAR1 = ''
BVAR2 = ''
BVAR3 = ''
BVAR4 = ''
...
END
*********************************
The problem I'm having is that when I use the line $INCLUDE HWG.BP
MYSTUFF.INCLUDE in the program I'm updating, the next executable line is
reported as either a warning or fatal error, no matter what the next
line is. If I move the location of the $INCLUDE statement, it's always
the next executable line that gets reported as being in error.
If I cut and paste the include code directly into the program, the
program then compiles just fine with no errors. I REALLY want to use
this as an include block and the only work around I've come up with is
to put a dummy assignment line right after the include statement.
Obviously, this is an ugly way to do this but I can live with it if I
have to.
Comments, anyone? Suggestions? Thoughts? TIA.
BobW
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/