Skip to main content

Problem:

If you're html code contains a colon, the HTML preprocessor will treat the charaters that follow as a variable.  When you go to build, you will get an error message saying operand not declared

Resolution:

For Example, if you are using an html tag like the following:

<html xmlns="http://www.w3.org/19999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">

you will get the following build errors:

Operand V not declared

Operand SCHEMAS-MICROSOFT-COM not declared

Operand VML not declared

To get around this, you would need to add code like the following to your COBOL program:

.....

Working-Storage.

.....

01 temp1 pic x(2).

01 temp2 pic x(22)

01 temp3 pic x(4)

.....

PROCEDURE DIVISION.

.....

move ":v" to temp1.

move ":schemas-microsoft-com" to temp2.

move ":vml" to temp3.

.....

You would then right click on your html file and select edit as text and instead of having:

<html xmlns="http://www.w3.org/19999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">

you would have:

<html xmlns="http://www.w3.org/19999/xhtml" xmlns:temp1="urn:temp2:temp3">

Note that you will have to re-add the html code noted above after any form designer save

Old KB# 3945