Skip to main content

I have a number of named and unnamed common variables used throughout my programs. I'm getting a common miss-match error on a program with no commons at all. How can I tell what common variables are causing the problem. Is there a way to display named and unnamed common variables active at a given time? I'm sure the code is running a subroutine that may be conflicting with another common, just no way of seeing it from the viewpoint of the program without commons.

Jon



------------------------------
Jon Kristofferson
Pick Programmer
Snap-on Credit LLC
Libertyville IL US
------------------------------

I have a number of named and unnamed common variables used throughout my programs. I'm getting a common miss-match error on a program with no commons at all. How can I tell what common variables are causing the problem. Is there a way to display named and unnamed common variables active at a given time? I'm sure the code is running a subroutine that may be conflicting with another common, just no way of seeing it from the viewpoint of the program without commons.

Jon



------------------------------
Jon Kristofferson
Pick Programmer
Snap-on Credit LLC
Libertyville IL US
------------------------------

Jon,

Within a specific program execution there is only one unnamed COMMON block and it must be consistent throughout all the program code executed, including any subroutines called. Named common is different in that you can have multiple different COMMONs by declaring a name for the COMMON block. Nevertheless the named COMMON block must be defined the same way everywhere it is referenced.

Named COMMON is also preserved through a database session whereas unnamed  COMMON is commonly cleared each time you return to ECL/TCL.

I suspect either an attempt to redefine either the single unnamed COMMON block or a specific named COMMON block.

Hopefully this helps,

Regards

JJ

Does this help? 



------------------------------
John Jenkins
Thame, Oxfordshire
------------------------------

I have a number of named and unnamed common variables used throughout my programs. I'm getting a common miss-match error on a program with no commons at all. How can I tell what common variables are causing the problem. Is there a way to display named and unnamed common variables active at a given time? I'm sure the code is running a subroutine that may be conflicting with another common, just no way of seeing it from the viewpoint of the program without commons.

Jon



------------------------------
Jon Kristofferson
Pick Programmer
Snap-on Credit LLC
Libertyville IL US
------------------------------

Jon,

As a thought - run the program in debug mode and step through.

Regards

JJ



------------------------------
John Jenkins
Thame, Oxfordshire
------------------------------

I have a number of named and unnamed common variables used throughout my programs. I'm getting a common miss-match error on a program with no commons at all. How can I tell what common variables are causing the problem. Is there a way to display named and unnamed common variables active at a given time? I'm sure the code is running a subroutine that may be conflicting with another common, just no way of seeing it from the viewpoint of the program without commons.

Jon



------------------------------
Jon Kristofferson
Pick Programmer
Snap-on Credit LLC
Libertyville IL US
------------------------------

When you get this error, do you get a line number as well?  I would suspect if so, that that line is defining/setting a variable that is actually used in Common as a different defined type.



------------------------------
Will Johnson
Systems Analyst
Rocket Forum Shared Account
------------------------------