Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

processing a XML file in PL/1

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
grvtomar

New User


Joined: 29 Apr 2015
Posts: 4
Location: Germany

PostPosted: Fri Jun 09, 2017 1:07 pm    Post subject: processing a XML file in PL/1
Reply with quote

Hello everybody,

I want to process a xml file in PL1 without using any extenal parser.
Steps, which I want to process.

1. Read a xml file. save the data into local variables.
2. Process the data(fatching/update database)
3. rewrite a xml file.

Can anybody please help me to understand this ?

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

prino

Senior Member


Joined: 07 Feb 2009
Posts: 1031
Location: Oostende, Belgium

PostPosted: Fri Jun 09, 2017 1:55 pm    Post subject: Re: processing a XML file in PL/1
Reply with quote

grvtomar wrote:
I want to process a xml file in PL1 without using any extenal parser.

You either use the PL/I built-in parser, or the standard z/OS system XML parser, although it may already be used internally by the PL/I builtin parsers.

Any other approach would totally and completely insane!

grvtomar wrote:
Steps, which I want to process.

1. Read a xml file. save the data into local variables.

And how do you plan to handle the 42 zillion different local variables that you need, or handle data that flows from one record of the input file into the next, or next 42?

grvtomar wrote:
2. Process the data(fatching/update database)

Even this line in this post makes no sense, what the flipping 'ell is "fatching"????

grvtomar wrote:
3. rewrite a xml file.

Sure, and given that you're a beginner according to your profile, this will be easy.
Back to top
View user's profile Send private message
grvtomar

New User


Joined: 29 Apr 2015
Posts: 4
Location: Germany

PostPosted: Fri Jun 09, 2017 2:25 pm    Post subject: Reply to: processing a XML file in PL/1
Reply with quote

hello Prino,

Thanks for your quick reply.
Yes, I am a beginner !

1.
You either use the PL/I built-in parser, or the standard z/OS system XML parser, although it may already be used internally by the PL/I builtin parsers.

Any other approach would totally and completely insane!

me:- I will use builtin parser ! thanks icon_smile.gif

2. And how do you plan to handle the 42 zillion different local variables that you need, or handle data that flows from one record of the input file into the next, or next 42?

me:- records are not more than 30. its a packet of 30 datasets for a single customer. and these 30 variables can be reuse for each customer. I am planning to read for only a customer and process it and again for another customer. your suggestion would be appreciated icon_smile.gif

3. Sure, and given that you're a beginner according to your profile, this will be easy.

me:- your suggestion on this aswell please.


Thanks,
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 -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Match two files using multiple keys a... santoshks1987 SYNCSORT 10 Fri Aug 18, 2017 10:50 am
No new posts Multiple VSAM files single output fil... Mohan Kothakota DFSORT/ICETOOL 11 Wed Aug 09, 2017 7:57 pm
This topic is locked: you cannot edit posts or make replies. rexx code to create a ps file Bharath Vikraman CLIST & REXX 4 Mon Aug 07, 2017 10:30 am
No new posts Split file based on comparsion to 2 f... Div Grad DFSORT/ICETOOL 3 Thu Jul 27, 2017 9:16 pm
No new posts Extra character appears in file when ... Balu5491 All Other Mainframe Topics 1 Wed Jul 26, 2017 2:39 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us