IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

two variables with same name in Panvalet include


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
lanand_hps

New User


Joined: 05 Dec 2007
Posts: 82
Location: chennai

PostPosted: Tue Dec 15, 2009 5:40 pm
Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue Dec 15, 2009 8:34 pm
Reply with quote

Quote:
panvalet include


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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Panvalet - 9 Character name - Issue c... CA Products 6
No new posts JCL with variables JCL & VSAM 1
No new posts JCL Variables JCL & VSAM 1
No new posts reset/clear ALL application profile v... TSO/ISPF 3
Search our Forums:

Back to Top