MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

XML GENERATE compile error in Enterprise COBOL for z/OS

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
Cogito-Ergo-Sum
Advanced


Joined: 15 Dec 2002
Posts: 637
Topics: 43
Location: Bengaluru, INDIA

PostPosted: Fri Feb 17, 2006 8:18 am    Post subject: XML GENERATE compile error in Enterprise COBOL for z/OS Reply with quote

Hi,
We are at IBM Enterprise COBOL for z/OS and OS/390 3.2.0. I am trying the XML GENERATE statement as follows:
Code:

XML GENERATE XML-DOCUMENT FROM DATA-GROUP
    COUNT IN XML-NUM-CHARS
END-XML .


The compilation fails with:
Code:
IGYPS0148-S "GENERATE" is a reserved word related to language not supported by this compiler.  The statement was discarded.


How to fix this?

I find this very strange as with the same compiler, I am able to compile and run XML PARSE statement successfully.

I have also searched the IBM site for any pointers to IGYPS0148-S; but, they do not seem to directly this issue.
_________________
ALL opinions are welcome.

Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes.


Last edited by Cogito-Ergo-Sum on Fri Feb 17, 2006 9:17 am; edited 1 time in total
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12369
Topics: 75
Location: San Jose

PostPosted: Fri Feb 17, 2006 8:39 am    Post subject: Reply with quote

Cogito,

I was able to successfully the example code shown here

http://publib.boulder.ibm.com/infocenter/pdthelp/v1r1/index.jsp?topic=/com.ibm.entcobol3.doc/tpxgn04e.htm


And below are the compiler options.

Code:

PP 5655-G53 IBM Enterprise COBOL for z/OS  3.3.1
Options in effect:                               
    NOADATA                                     
    NOADV                                       
      APOST                                     
      ARITH(COMPAT)                             
      AWO                                       
      BUFSIZE(31744)                             
    NOCICS                                       
      CODEPAGE(1140)                             
    NOCOMPILE(S)                                 
    NOCURRENCY                                   
      DATA(31)                                   
    NODATEPROC                                   
    NODBCS                                       
    NODECK                                       
    NODIAGTRUNC                                 
    NODLL                                       
    NODUMP                                       
    NODYNAM                                     
    NOEXIT                                       
    NOEXPORTALL                                 
      FASTSRT                                   
      FLAG(I,I)                                 
    NOFLAGSTD                                   
      INTDATE(ANSI)                             
      LANGUAGE(EN)                               
      LIB                                       
      LINECOUNT(60)                             
    NOLIST                                       
      MAP                                       
    NONAME                                       
      NSYMBOL(DBCS)                             
    NONUMBER                                     
      NUMPROC(NOPFD)                             
      OBJECT                                     
    NOOFFSET                                     
      OPTIMIZE(STD)                             
      OUTDD(SYSOUT)           
      PGMNAME(COMPAT)         
      RENT                     
      RMODE(AUTO)             
      SEQUENCE                 
      SIZE(MAX)               
      SOURCE                   
      SPACE(1)                 
    NOSQL                     
    NOSSRANGE                 
    NOTERM                     
    NOTEST                     
    NOTHREAD                   
      TRUNC(OPT)               
    NOVBREF                   
    NOWORD                     
      XREF(FULL)               
      YEARWINDOW(1900)         
      ZWB       


Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Cogito-Ergo-Sum
Advanced


Joined: 15 Dec 2002
Posts: 637
Topics: 43
Location: Bengaluru, INDIA

PostPosted: Fri Feb 17, 2006 9:16 am    Post subject: Reply with quote

Kolusu,
I tried with your compiler options and the compilation still fails. Sad

This is another message below the one that I have pasted in my earlier post.
Code:
IGYPS0088-S   The "XML" statement was invalid.  Expected "PARSE", but found "GENERATE".  The statement was discarded.

_________________
ALL opinions are welcome.

Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes.
Back to top
View user's profile Send private message
Cogito-Ergo-Sum
Advanced


Joined: 15 Dec 2002
Posts: 637
Topics: 43
Location: Bengaluru, INDIA

PostPosted: Fri Feb 17, 2006 9:26 am    Post subject: Reply with quote

Guess what? XML GENERATE support was added only in Version 3 Release 3. See PREFACE.1.8.2 Version 3 Release 3 (February 2004)

And, I was thinking, XML PARSE and GENERATE would go hand in hand.

I must learn to read the prefaces too! Mr. Green
_________________
ALL opinions are welcome.

Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group