View previous topic :: View next topic |
Author |
Message |
rnanavaty Beginner
Joined: 12 Apr 2006 Posts: 29 Topics: 20
|
Posted: Thu Sep 13, 2007 8:57 am Post subject: COBOL: Same variables with different name |
|
|
Hi,
I have following 2 structures
Code: |
01 SRL60LCA EXTERNAL.
05 ADCON OCCURS 215 USAGE IS POINTER.
05 FILLER PIC X(4).
01 SRL60LMI EXTERNAL.
05 ADCON OCCURS 215 USAGE IS POINTER.
05 FILLER PIC X(4).
|
When I am using statement
Code: |
SET ADCON(001) OF SRL60LCA TO ADDRESS OF LFPDCA01
|
It is giving me error as "ADCON is not uniqiely defined"
I don't know Why?? |
|
Back to top |
|
 |
vivek1983 Intermediate

Joined: 20 Apr 2006 Posts: 222 Topics: 24
|
Posted: Thu Sep 13, 2007 9:13 am Post subject: |
|
|
rnanavaty,
Code: |
05 ADCON OCCURS 215 USAGE IS POINTER.
|
Should it not be
Code: |
05 ADCON OCCURS 215 TIMES USAGE IS POINTER.
|
I know I am missing something. Just curious.
Vivek G |
|
Back to top |
|
 |
Terry_Heinze Supermod
Joined: 31 May 2004 Posts: 391 Topics: 4 Location: Richfield, MN, USA
|
Posted: Thu Sep 13, 2007 9:29 am Post subject: |
|
|
I don't have mainframe access, but try puting the (001) after SRL60LCA instead of ADCON. _________________ ....Terry |
|
Back to top |
|
 |
CICS Guy Intermediate
Joined: 30 Apr 2007 Posts: 292 Topics: 3
|
Posted: Thu Sep 13, 2007 9:40 am Post subject: |
|
|
That's right Terry, I usuall forget where the FM and the subscripts go for a qualified dataname.....And that's the error I usually get.....grin..... |
|
Back to top |
|
 |
Terry_Heinze Supermod
Joined: 31 May 2004 Posts: 391 Topics: 4 Location: Richfield, MN, USA
|
Posted: Thu Sep 13, 2007 10:08 am Post subject: |
|
|
It's gotten me more than once, too.  _________________ ....Terry |
|
Back to top |
|
 |
|
|