Skip to main content

Hi,

While compiling a Native COBOL file i am getting following error. Using Visual Studio 2019 and MF COBOL 7.0

1>COBOL : Object Code error : file 'odbcecm'
1>COBOL : error code: 153, pc=0, call=1, seg=0
1> 153 Subscript out of range (in d:\\Packages\\pkg_300025\\bln_748\\ESQL\\oecm\\odbcecm\\src\\oecmexc.cbl, line 2450)
1>

Regards

Renu


#subscriptoutofrange
#153

Hi,

While compiling a Native COBOL file i am getting following error. Using Visual Studio 2019 and MF COBOL 7.0

1>COBOL : Object Code error : file 'odbcecm'
1>COBOL : error code: 153, pc=0, call=1, seg=0
1> 153 Subscript out of range (in d:\\Packages\\pkg_300025\\bln_748\\ESQL\\oecm\\odbcecm\\src\\oecmexc.cbl, line 2450)
1>

Regards

Renu


#subscriptoutofrange
#153

I have never seen this error before.

Does this happen on one particular program or on more than one?

Is this error consistent in that it occurs every time this program is compiled?

If the problem can be reproduced with a particlar program then I would strongly suggest that you open up a support incident with Customer Care so that we can troubleshoot it.

Thanks


I have never seen this error before.

Does this happen on one particular program or on more than one?

Is this error consistent in that it occurs every time this program is compiled?

If the problem can be reproduced with a particlar program then I would strongly suggest that you open up a support incident with Customer Care so that we can troubleshoot it.

Thanks

Only one program. Other programs are fine. Getting this error always. It was working fine with COBOL 4.0 before. I Will open incident if I am unable to find solution.


I have never seen this error before.

Does this happen on one particular program or on more than one?

Is this error consistent in that it occurs every time this program is compiled?

If the problem can be reproduced with a particlar program then I would strongly suggest that you open up a support incident with Customer Care so that we can troubleshoot it.

Thanks

I raised incident but support person asking to submit source code to debug. That's not possible easily. Is there any other option to isolate the issue ? 

error clearly tells line number of your program. Kindly help.


I raised incident but support person asking to submit source code to debug. That's not possible easily. Is there any other option to isolate the issue ? 

error clearly tells line number of your program. Kindly help.

The line number in our source code is not enough to troubleshoot this issue as it only occurs on this one particular program and it works fine when compiling other programs.  We need to be able to reproduce the error on our system in order to troubleshoot it and isolate the problem. We only need the source and copyfiles for the program which is receiving the compiler error. We do not require all of your sources.

If you cannot provide us with the sources then you could try to cut down the program yourself by commenting out sections at a time until the error goes away or commenting out all sections and then adding them back until the error occurs. This will isolate the issue to a particular section of code that we can then look at.


Hi,

While compiling a Native COBOL file i am getting following error. Using Visual Studio 2019 and MF COBOL 7.0

1>COBOL : Object Code error : file 'odbcecm'
1>COBOL : error code: 153, pc=0, call=1, seg=0
1> 153 Subscript out of range (in d:\\Packages\\pkg_300025\\bln_748\\ESQL\\oecm\\odbcecm\\src\\oecmexc.cbl, line 2450)
1>

Regards

Renu


#subscriptoutofrange
#153

i think you variable is not big enough!

example:

max is pic 9

ind is your counter

when ind is 10 and you do a perform until max

show you code near line 2450


i think you variable is not big enough!

example:

max is pic 9

ind is your counter

when ind is 10 and you do a perform until max

show you code near line 2450

I believe he is saying that the error is occuring during the COMPILE phase, not the RUN phase.


I believe he is saying that the error is occuring during the COMPILE phase, not the RUN phase.

Hi Austin1,

a little tip!

please remove this commands from you source code and retype it completly as new insert!

There may be a not visible input on this command!

Is only a possibility, but i have this problem!

Or download a trial version of visual cobol 8.0 and see if this error is also found!

Do you have all patches from vc7.0?

cg


Hi Austin1,

a little tip!

please remove this commands from you source code and retype it completly as new insert!

There may be a not visible input on this command!

Is only a possibility, but i have this problem!

Or download a trial version of visual cobol 8.0 and see if this error is also found!

Do you have all patches from vc7.0?

cg

patched latest 9.0


Hi,

While compiling a Native COBOL file i am getting following error. Using Visual Studio 2019 and MF COBOL 7.0

1>COBOL : Object Code error : file 'odbcecm'
1>COBOL : error code: 153, pc=0, call=1, seg=0
1> 153 Subscript out of range (in d:\\Packages\\pkg_300025\\bln_748\\ESQL\\oecm\\odbcecm\\src\\oecmexc.cbl, line 2450)
1>

Regards

Renu


#subscriptoutofrange
#153

FYI — Renu has a support case opened with Micro Focus Support, and he was finally able to provide a way to reproduce the issue today.

The build fails when the host variable in the INTO clause is a group item that contains at least one FILLER. There is no issue when there is no FILLER.

The issue can be reproduced with Visual COBOL 7.0 (base through Patch Update 10 RC) and 8.0, and it was raised with the development team as a defect.


Hi,

While compiling a Native COBOL file i am getting following error. Using Visual Studio 2019 and MF COBOL 7.0

1>COBOL : Object Code error : file 'odbcecm'
1>COBOL : error code: 153, pc=0, call=1, seg=0
1> 153 Subscript out of range (in d:\\Packages\\pkg_300025\\bln_748\\ESQL\\oecm\\odbcecm\\src\\oecmexc.cbl, line 2450)
1>

Regards

Renu


#subscriptoutofrange
#153

FYI — Renu has a support case opened with Micro Focus Support, and he was finally able to provide a way to reproduce the issue today.

After further investigation, the Support team was able to pinpoint the issue. The build fails when the host variable in the INTO clause is a group item that contains at least one FILLER. There is no issue when there is no FILLER.

The issue can be reproduced with Visual COBOL 7.0 (base version through Patch Update 10 RC) and 8.0. This was raised as a defect, and the development team is looking into it.