Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Creating XML Files - XML GENERATE, XML PARSE

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
shanmudhaya

New User


Joined: 03 Jun 2008
Posts: 3
Location: Inida

PostPosted: Mon Sep 15, 2008 8:55 pm    Post subject: Creating XML Files - XML GENERATE, XML PARSE
Reply with quote

Hi,
I have one main module that contains the XML generate statement and the submodule does the XML parsing. I have open and close statments for the output files in both the modules and write the XML data in the output file in the called module. Since it calls the submodule so many times, the job took much time to complete. I tried removing the open and close statements in called module and retain only write statements in the called module. But i got the protection exception. Could anyone help me on this?

Mainmodule: XXXXMAIN
Sub Module: XXXXSUB

XML GENETARE:
XML GENERATE WS-XML-OUTPUT-DATA
FROM INPUTDATA
COUNT IN WS-XML-CHAR-COUNT.

XML PARSING IN SUBMODULE:
XML PARSE XXXXSUB-XML-IN-REC
PROCESSING PROCEDURE 03100-XML-PARSE
ON EXCEPTION
DISPLAY 'PROBLEM IN ' XXXXSUB-PGM-NAME
DISPLAY 'XML ERROR CODE: ' XML-CODE
DISPLAY 'XML RECORD: ' XXXXSUB-XML-IN-REC
MOVE WS-LAST-PARA
TO XXXXSUB-ERROR-PARA
SET XXXXSUB-INVALID-INPUT
TO TRUE
MOVE WS-INVALID-INPUT-XML
TO XXXXSUB-ERROR-MSG
END-XML

or

Is there any option to reduce the running time and space?

Thanks!!!
Regards,
Raja
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Sep 15, 2008 11:22 pm    Post subject:
Reply with quote

Hello,

Quote:
But i got the protection exception
A protection exception is usually not a space issue. Protection exceptions often occur when storage gets "walked on".

Quote:
the job took much time to complete.
Please define "much time". Do you mean cpu time or elapsed time or something else?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Comparing two sequential files Mohan Kothakota COBOL Programming 14 Mon Apr 16, 2018 6:35 pm
No new posts SORT 3 files,extract specific fields ... Kiransr DFSORT/ICETOOL 13 Fri Mar 23, 2018 10:54 am
No new posts How to Generate JCL using Sort naveen katkuri DFSORT/ICETOOL 7 Tue Mar 13, 2018 3:50 pm
No new posts How to build one file from two input ... daniele DFSORT/ICETOOL 5 Tue Feb 27, 2018 6:45 pm
No new posts PARSE GDG name to separate generation... Abid Hasan SYNCSORT 2 Sun Feb 11, 2018 3:40 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us