Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

two variables with same name in Panvalet include

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
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    Post subject: two variables with same name in Panvalet include
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm
No new posts Protection Exception while move 0 to ... Kevin Vaz CICS 10 Tue Oct 18, 2016 4:19 pm
No new posts INCLUDE condition questions van bui DFSORT/ICETOOL 1 Thu Jun 30, 2016 9:52 am
No new posts Is it possible to pass variables of s... Csongor CLIST & REXX 2 Fri Jun 10, 2016 7:33 pm
No new posts Include Cond issue vickey_dw DFSORT/ICETOOL 6 Tue Mar 29, 2016 8:51 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us