Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

XML Generate - compilation error

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
yogeshwar_ade

Active User


Joined: 31 Aug 2006
Posts: 103
Location: INDIA

PostPosted: Thu May 14, 2009 10:06 am    Post subject: XML Generate - compilation error
Reply with quote

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
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu May 14, 2009 11:46 am    Post subject:
Reply with quote

Hello,

Suggest you post the compilation error - including the message id(s).
Back to top
View user's profile Send private message
yogeshwar_ade

Active User


Joined: 31 Aug 2006
Posts: 103
Location: INDIA

PostPosted: Thu May 14, 2009 12:19 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1288
Location: Chennai, India

PostPosted: Thu May 14, 2009 3:11 pm    Post subject: Reply to: XML Generate - compilation error
Reply with quote

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
View user's profile Send private message
yogeshwar_ade

Active User


Joined: 31 Aug 2006
Posts: 103
Location: INDIA

PostPosted: Thu May 14, 2009 3:22 pm    Post subject: Reply to: XML Generate - compilation error
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7931
Location: Bellevue, IA

PostPosted: Thu May 14, 2009 5:19 pm    Post subject:
Reply with quote

Post in BBcode format the actual compiler output. Also post the definition for TRANSACTION.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts S922 Error yuvan ABENDS & Debugging 3 Fri Dec 02, 2016 6:58 pm
No new posts Invoke Webservice Fails with DFHPI100... divated CICS 2 Thu Nov 24, 2016 5:57 pm
No new posts Error during restore rename archanamuthukrishnan All Other Mainframe Topics 2 Fri Oct 14, 2016 3:30 pm
No new posts Error IEC161I 052(009,XXXRS00)-084 wh... amitc23 JCL & VSAM 10 Wed Oct 12, 2016 5:00 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us