View previous topic :: View next topic
|
Author |
Message |
yogeshwar_ade
Active User
Joined: 31 Aug 2006 Posts: 103 Location: INDIA
|
|
|
|
Hi everyone,
I am able to run below instruction.
XML GENERATE WS-BUFFER-ONE FROM TRANSACTION
COUNT IN WS-XML-COUNT
but when I am coding with encoding ....it's giving me compilation error.
What does it mean to me?
Does it have any issue with COBOl version I am using?
XML GENERATE WS-BUFFER-ONE FROM TRANSACTION
COUNT IN WS-XML-COUNT
WITH ENCODING 1208
WITH XML-DECLARATION
END-XML |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Suggest you post the compilation error - including the message id(s). |
|
Back to top |
|
|
yogeshwar_ade
Active User
Joined: 31 Aug 2006 Posts: 103 Location: INDIA
|
|
|
|
Plx find the error massage.
XML GENERATE WS-BUFFER-ONE FROM TRANSACTION
COUNT IN WS-XML-COUNT
WITH ENCODING 1208
IGYPS2072-S "WITH" was invalid. Skipped to the next verb, period or procedure-name
definition.
WITH XML-DECLARATION
END-XML |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
Hi,
From the manuals
Quote: |
To transform COBOL data to XML, use the XML GENERATE statement as in the example below.
XML GENERATE XML-OUTPUT FROM SOURCE-REC
COUNT IN XML-CHAR-COUNT
ON EXCEPTION
DISPLAY 'XML generation error ' XML-CODE
STOP RUN
NOT ON EXCEPTION
DISPLAY 'XML document was successfully generated.'
END-XML
|
I have always used this SYNTAX and it works. I seriously doubt whether "WITH" can be used. |
|
Back to top |
|
|
yogeshwar_ade
Active User
Joined: 31 Aug 2006 Posts: 103 Location: INDIA
|
|
|
|
This syntax will not include version and encoding information in my XML output.(<?xml version="1.0" encoding="utf-8" standalone="yes"?>) |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Post in BBcode format the actual compiler output. Also post the definition for TRANSACTION. |
|
Back to top |
|
|
|