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: 6968
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
No new posts Include/omit with "ALL" pa... mgl DFSORT/ICETOOL 6 Wed Jun 14, 2017 2:31 pm
No new posts Copying Panvalet members to PDS LOGESHWARAN K CA Products 4 Mon Mar 06, 2017 10:45 am
No new posts DB2 9.1.0 not move values to Host-Var... Miguel Fernandez DB2 8 Wed Jan 25, 2017 8:24 pm
No new posts DB2 9.1.0 not move values to Host-Var... Miguel Fernandez DB2 0 Wed Jan 25, 2017 8:23 pm
No new posts DB2 9.1.0 not move values to Host-Var... Miguel Fernandez DB2 0 Wed Jan 25, 2017 8:21 pm


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