I plan on writing some entries on creating and parsing XML with DFSORT (using the UK90006 / UK90007 functional enhancments that DFSORT Development recently announced). But here's a limbering up example - creating a CSV file from regular sequential file input. CSV files ( C omma- S eparated V alue (or V ariable if you prefer)) are of the form "JDLFJDJ DF",4146,"FKJFK" "JDJDJ JKJJ",12352,"EE... [More]
Marcações: 
xml
csv
dfsort
|
Following on from This entry on creating CSV files here's the first of several entries on manipulating XML with DFSORT... This is not intended to be a tutorial on XML but rather an exploration of how DFSORT can read (shred) and write (compose) XML. (I also use the terms ingest and emit synonymously.) Hopefully some of the basic concepts of XML will come across during the course of these blog... [More]
Marcações: 
dfsort
xml
|
In Generating XML Using DFSORT - Part I I described how to generate XML using some of DFSORT's new features. But the XML we generated was only one of the possible styles of XML: Most of the information was specified as attributes (with the values enclosed in quotes). Here's a sample line: <member surname="Mercury" firstname="Freddie" job="Singer" /> In this case the attribute job has the... [More]
Marcações: 
xml
dfsort
|
Following on from Generating XML Using DFSORT - Part II here are some thoughts on how to parse XML with DFSORT. NOTE: For more complex XML than this entry describes you probably want to use the XML Toolkit for z/OS . This provides C++ and Java parsers for XML and a stand-alone XSLT processor. In this example I'll show you how to take XML that looks like this and create a flat file from it:... [More]
Marcações: 
dfsort
xml
|
Many of you will have, by now, installed the Adobe AIR runtime. Most probably it will be to run something like Twhirl. At this point many of you will be asking "what's Twhirl?" If I said it was a nice desktop application that makes using Twitter so much easier I hope you don't ask "what's Twitter?" :-) So, we're beginning to see these desktop applications coded using Adobe AIR, which stands for... [More]
Marcações: 
eee
twitter
twhirl
asus
programming
notepad++
mozilla
xml
dojo
air
adobe
html
xulrunner
flex
|
This isn't particularly new - but I'm guessing most people who work with WLM don't know about this... For some time now you've been able to download a java application that enables you to convert your WLM Service Definition to and from XML. Perhaps more importantly, the application provides a nice way to edit the Service Definition - and that is actually its main purpose. You can... [More]
Marcações: 
xml
wlm
php
xpath♠
|
In Workload Manager Policy in XML Format - Part I I showed you how you can use PHP to extract Classification Rules information from the WLM Service Definition (once converted to XML format). This post gives an example of extracting a different set of information from the XML Service Definition, using javascript and, in particular, XMLHttpRequest (sometimes known as XHR). There is a slightly... [More]
Marcações: 
xhr
xml
xmlhttprequest
wlm
javascript
|
Here's another way to process a WLM Service Definition - once you've got it into XML format. XSLT (XML Stylesheet Transformations if you prefer) is another technology that's been around for a while. In simple terms you write another piece of XML (the stylesheet) that describes how to transform your original XML into something else. There's a lot of flexibility in this but the example in this post... [More]
Marcações: 
xml
xslt
storedprocedures
applicationenvironments
xpath
wlm
db2
|
So here's yet another way of parsing the WLM XML Service Definition. This time it's on z/OS, using DFSORT. Relatively recent features in DFSORT have made it easier to do useful things with XML. In this example I've made some attempt to make the output pretty - by creating a HTML table. Below is the SYSIN you need to parse the <SchedulingEnvironment> elements. I'm assuming you know how to... [More]
Marcações: 
jfy
wlm
dfsort
endbefr
outfil
startaft
ifthen
removecc
fixlen
when=group
uk90007
parse
uk90006
uk90013
xml
|
A while back I set myself a technical challenge: To learn how to program an Android device. NOTE: I don't have a real application in mind, just idle curiosity and a degree of annoyance at the prerequisites to be able to program an iPhone (apart from as a WebApp). Here's what I did and how I've got on: My Equipment I bought the cheapest Android tablet I could find. It's an Intempo I.D. Spirit. It... [More]
Marcações: 
android
xml
keytool
programming
jarsigner
java
tablet
|
I think people know better than to ask me for a trip report to a conference I've attended. They'll get what I think is important - and their priorities are probably different. So here is that trip report anyway... You'll probably have gathered by now I'm for a "for the journey" person than a "for the destination" one. But I won't bore you with the minor inconveniences on both... [More]
Marcações: 
tsam
infiniband
rmf
db2
z196
conference
z/os
vienna
smf113
xml
|
In the distant past I've written about using DFSORT to parse XML. This post (and two follow-on posts) will describe
an experiment to make such processing much more robust. In this post I'll talk about what the problem I'm trying to solve is. And why. And a brief outline of my solution. About XML This isn't meant to be the most detailed description of XML, nor a complete list of where it's used. I... [More]
Marcações: 
xsl
icetool
xml
saxon
zaap
unix
dfsort
ziip
java
json
schema
csv
parse
xalan
xslt
ebcdic
z/os
|
This is the second part of a (currently) three-part series on processing XML data with DFSORT, given a little help from standard XML processing tools. The first part - which you should read before reading on - is here . To recap, getting XML data into DFSORT is a two stage process: Flatten the XML data so that it consists of records with fields in sensible places. Process this flattened data with... [More]
Marcações: 
xml
xslt
saxon
rexx
csv
dfsort
xpath
|
Following on from this post and this one , this post discusses the DFSORT piece. The DFSORT code in this post parses the Comma-Separated Variable (CSV) file produced by XSLT processing. In this simple example it merely produces a flat file report, but the post has a few additional details you might find valuable. First, here's the SORTIN DD JCL statement. It's not like a regular sequential file... [More]
Marcações: 
sff
dfsort
when=init
parse
z/os
icetool
xalan
saxon
symbols
csv
xml
xslt
|
While I was putting together the original three posts in this series a number of thoughts struck me, amongst which two really cried out for further investigation: I don't know how your XML data arrives on z/OS but quite a lot of scenarios don't have the data all as one document (file). XSLT looks complex - particularly if recursion does your head in. Thought 2 I'll deal with in a... [More]
Marcações: 
xml
xslt
document()
saxon
dfsort
|