Thanks Steve for your reply,
unfortunately our EntCOB version is 3.4, so I've to see how to get the 
latest release.
It may take some time to upgrade, but I'll keep you posted about the 
result.

Werner 

IBM Mainframe Discussion List <IBM-MAIN@BAMA.UA.EDU> schrieb am 20.03.2008 
13:11:25:

> Werner Kuehnel wrote:
> > We're currently trying to generate XML output by a EntCOB program. 
> > Generally it works, however we couldn't yet manage to create the 
structure 
> > of 
> > <var id="..."       v="......."/> 
> > in the following example:
> > 
> > <dataApp id="Datenbeschaffer" 
> > callMode="SWITCH" 
> > callTerm="TERM" 
> > stencilId="SCL12345"> 
> > <var id="KDN"       v="1234567"/> 
> > <var id="KNAME"     v="KNAME"/> 
> > <var id="KSTRASSE"  v="KSTRASSE"/> 
> > <var id="KSTRASSE2" v="KSTRASSE2"/> 
> > <var id="KORT"      v="KORT"/> 
> > <var id="KPLZ"      v="KPLZ"/> 
> > </dataApp> 
> > 
> > Does anyone know the COBOL field structure to get the lines   <var 
> > id="..."       v="......."/>   ? 
> > Thanks,
> > 
> > Werner Kuehnel
> > Spezialist in der Abteilung Betrieb/Support
> 
> Werner,
> 
> You need to be at Enterprise COBOL V4R1; if you have
> this version of the compiler, and compile with option
> XMLPARSE(XMLSS), you can add the WITH ATTRIBUTES phrase
> to your XML GENERATE statement; in this case, data items
> that belong to a group are emitted as attributes of the
> group they belong to. So if your COBOL structure was
> something like this:
> 
> .
> .
> .
> 02 var.
>     03 id pic x(9).
>     03 v  pic x(10)
> .
> .
> .
> 
> 
> under the conditions I detailed above might solve your
> problem. Let me know.
> 
> <ad>
> Our 2-day class "Enterprise COBOL Update II: Unicode
> and XML Support" has been updated to include the
> V4R1 level of the Enterprise COBOL compiler. Details at:
> 
>    http://www.trainersfriend.com/COBOL_Courses/d705descr.htm
> 
> </ad>
> 
> Kind regards,
> 
> -Steve Comstock
> The Trainer's Friend, Inc.
> 
> 303-393-8716
> http://www.trainersfriend.com

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to