View previous topic :: View next topic
|
Author |
Message |
lanand_hps
New User
Joined: 05 Dec 2007 Posts: 82 Location: chennai
|
|
|
|
Hi,
Is it possible to declare two variables with same name in panvalet include.
The following code compiled with out any errors.
01 WS-G1.
05 REC-ID PIC X(02) VALUE SPACES.
05 BEN-NAME PIC X(35) VALUE SPACES.
05 BEN-ADD1 PIC X(35) VALUE SPACES.
05 BEN-ADD2 PIC X(35) VALUE SPACES.
05 BEN-ADD2 PIC X(35) VALUE SPACES.
05 BEN-CITY PIC X(33) VALUE SPACES.
Please give your suggestions.
Thanks
Anand. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
has nothing to do with it.
you have two variables in a COBOL program with same reference name.
as long as you don't reference the variable(s) (a REDEFINE or procedure statement) you won't receive compiler errors.
SUGGESTION: RTFM and think! |
|
Back to top |
|
|
|