View previous topic :: View next topic |
Author |
Message |
raajesh_gs Beginner
Joined: 09 May 2006 Posts: 1 Topics: 1
|
Posted: Tue May 09, 2006 6:24 am Post subject: PGM output in XML format |
|
|
Hi,
Can any one help me in this regard.
Query,
If you have any sample COBOL program which writes the O/P file in XML format......
Please help in this regard.
Thank you, |
|
Back to top |
|
|
SureshKumar Intermediate
Joined: 23 Jan 2003 Posts: 211 Topics: 21
|
Posted: Tue May 09, 2006 7:18 am Post subject: |
|
|
raajesh_gs,
It's a simple statement to generate the XML o/p. try this, you can also find many examples in the manuals. thanks
Code: |
01 WS-WORK-AREA.
10 XML-DATA PIC X(100) VALUE SPACES.
10 WS-COUNT PIC S9(09) BINARY VALUE +0.
01 WS-RECORD.
10 ws-1 PIC X(10).
10 WS-2 PIC 9(10).
10 WS-3 PIC x(10).
XML GENERATE XML-DATA FROM WS-RECORD COUNT IN WS-COUNT
ON EXCEPTION
perform error logic
NOT ON EXCEPTION
Continue processing
END-XML.
|
|
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12369 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
|
|