Skip to main content

[archive] AcuXML & Linux

  • August 4, 2006
  • 4 replies
  • 0 views

[Migrated content. Thread originally posted on 03 August 2006]

I have a Proof Of Concept application which parses an XML file using AcuXML. It works fine in Windows but when I try running the same code compiled on a Linux box it doesn't recognise that the file contains XML data.

I've copied over the XFD definition from Windows to Linux and have put an XML entry in the cblconfig file to tell AcuCobol that it's an XML file and I believe I'm running on Acucobol 6.2, but when I come to read the file it is treating it as a regular sequential file and not parsing the various XML elements.

I would be most grateful for any comments or suggestions on what else to look for or to learn of anyone else's experiences with AcuXML and Linux.

Thanks in advance,
Alun

4 replies

[Migrated content. Thread originally posted on 03 August 2006]

I have a Proof Of Concept application which parses an XML file using AcuXML. It works fine in Windows but when I try running the same code compiled on a Linux box it doesn't recognise that the file contains XML data.

I've copied over the XFD definition from Windows to Linux and have put an XML entry in the cblconfig file to tell AcuCobol that it's an XML file and I believe I'm running on Acucobol 6.2, but when I come to read the file it is treating it as a regular sequential file and not parsing the various XML elements.

I would be most grateful for any comments or suggestions on what else to look for or to learn of anyone else's experiences with AcuXML and Linux.

Thanks in advance,
Alun
Try running it in debug with a trace. When you tranferred the file did you transfer it as ASCII? Could be there are some line delimiter issues.

[Migrated content. Thread originally posted on 03 August 2006]

I have a Proof Of Concept application which parses an XML file using AcuXML. It works fine in Windows but when I try running the same code compiled on a Linux box it doesn't recognise that the file contains XML data.

I've copied over the XFD definition from Windows to Linux and have put an XML entry in the cblconfig file to tell AcuCobol that it's an XML file and I believe I'm running on Acucobol 6.2, but when I come to read the file it is treating it as a regular sequential file and not parsing the various XML elements.

I would be most grateful for any comments or suggestions on what else to look for or to learn of anyone else's experiences with AcuXML and Linux.

Thanks in advance,
Alun
Try running it in debug with a trace. When you tranferred the file did you transfer it as ASCII? Could be there are some line delimiter issues.

[Migrated content. Thread originally posted on 03 August 2006]

I have a Proof Of Concept application which parses an XML file using AcuXML. It works fine in Windows but when I try running the same code compiled on a Linux box it doesn't recognise that the file contains XML data.

I've copied over the XFD definition from Windows to Linux and have put an XML entry in the cblconfig file to tell AcuCobol that it's an XML file and I believe I'm running on Acucobol 6.2, but when I come to read the file it is treating it as a regular sequential file and not parsing the various XML elements.

I would be most grateful for any comments or suggestions on what else to look for or to learn of anyone else's experiences with AcuXML and Linux.

Thanks in advance,
Alun
Thanks Dilbert, the problem turned out to be of my own making but your tip about the trace was very helpful in discovering that I was adding my XML configuration entries to the WRONG config file. DOH!

Once I'd figured that out everything worked wonderfully...

[Migrated content. Thread originally posted on 03 August 2006]

I have a Proof Of Concept application which parses an XML file using AcuXML. It works fine in Windows but when I try running the same code compiled on a Linux box it doesn't recognise that the file contains XML data.

I've copied over the XFD definition from Windows to Linux and have put an XML entry in the cblconfig file to tell AcuCobol that it's an XML file and I believe I'm running on Acucobol 6.2, but when I come to read the file it is treating it as a regular sequential file and not parsing the various XML elements.

I would be most grateful for any comments or suggestions on what else to look for or to learn of anyone else's experiences with AcuXML and Linux.

Thanks in advance,
Alun
Thanks Dilbert, the problem turned out to be of my own making but your tip about the trace was very helpful in discovering that I was adding my XML configuration entries to the WRONG config file. DOH!

Once I'd figured that out everything worked wonderfully...