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: 6965
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 All times are GMT + 6 Hours
Forum Index -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts Substitution of JCL variables CLIST & REXX 10
No new posts Rexx to read current Panvalet editor/... CLIST & REXX 0
No new posts ISRDSLST(3.4) Do not include addition... TSO/ISPF 0
No new posts Repeat n times by substuting SEQNUM i... DFSORT/ICETOOL 2
No new posts Preserve changes to ISPF Panel Variables TSO/ISPF 5
Search our Forums:


Back to Top