Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 8165
Location: East Dubuque, Illinois, USA

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 IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts FUSE - IBM MQ - CICS integration error Kevin Vaz CICS 1 Mon Sep 18, 2017 4:31 pm
No new posts Generate public-private key in batch ... vasanthz All Other Mainframe Topics 3 Fri Sep 15, 2017 9:20 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us