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 

PGM output in XML format

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
raajesh_gs
Beginner


Joined: 09 May 2006
Posts: 1
Topics: 1

PostPosted: Tue May 09, 2006 6:24 am    Post subject: PGM output in XML format Reply with quote

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
View user's profile Send private message
SureshKumar
Intermediate


Joined: 23 Jan 2003
Posts: 211
Topics: 21

PostPosted: Tue May 09, 2006 7:18 am    Post subject: Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Tue May 09, 2006 8:13 am    Post subject: Reply with quote

raajesh_gs,

Please search before posting. Check this link which shows an example of XML generation

http://mvsforums.com/helpboards/viewtopic.php?p=28341#28341

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
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