| View previous topic :: View next topic | 
	
	
		| Author | Message | 
	
		| Cogito-Ergo-Sum Advanced
 
 
 Joined: 15 Dec 2002
 Posts: 637
 Topics: 43
 Location: Bengaluru, INDIA
 
 | 
			
				|  Posted: Fri Feb 17, 2006 8:18 am    Post subject: XML GENERATE compile error in Enterprise COBOL for z/OS |   |  
				| 
 |  
				| 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 |  | 
	
		|  | 
	
		| kolusu Site Admin
 
  
 
 Joined: 26 Nov 2002
 Posts: 12394
 Topics: 75
 Location: San Jose
 
 | 
			
				|  Posted: Fri Feb 17, 2006 8:39 am    Post subject: |   |  
				| 
 |  
				| 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 |  | 
	
		|  | 
	
		| Cogito-Ergo-Sum Advanced
 
 
 Joined: 15 Dec 2002
 Posts: 637
 Topics: 43
 Location: Bengaluru, INDIA
 
 | 
			
				|  Posted: Fri Feb 17, 2006 9:16 am    Post subject: |   |  
				| 
 |  
				| Kolusu, I tried with your compiler options and the compilation still fails.
   
 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 |  | 
	
		|  | 
	
		| Cogito-Ergo-Sum Advanced
 
 
 Joined: 15 Dec 2002
 Posts: 637
 Topics: 43
 Location: Bengaluru, INDIA
 
 | 
			
				|  Posted: Fri Feb 17, 2006 9:26 am    Post subject: |   |  
				| 
 |  
				| 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!
  _________________
 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 |  | 
	
		|  | 
	
		|  | 
	
		|  |