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]
Tags: 
xml
csv
dfsort
|
A need has arisen for pretty printing XML. This post includes some Python code to do it.
I've been working with the OpenOffice.org ODP presentation file format recently: I want to generate presentations from application code.
An ODP file is a structured zip file. Among other items it contains an XML file - content.xml - which describes the pages in the presentation. content.xml... [More]
Tags: 
ziip
xml
jython
zaap
formatting
z/os
openoffice
odp
minidom
python
java
jar
|
I've written about Hackday in the past. See My HackDay 6 Project - Mashing Up RMF , My HackDay 5 Project - z/OS System Logger Analysis and Hackday4 and Referer URLs (though I don't know why I didn't write about Hackday 7 or Hackday 8). So, this year I participated in Hackday 9 (last Friday). My entry follows on from this recent blog post: BPXWUNIX - z/OS' Best Kept Secret? . Graham Harris, in... [More]
Tags: 
xalan
hackday
xpath
rexx
java
z/os
hackday9
bpxwunix
rmf
xml
|
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]
Tags: 
dfsort
xml
|
Over the weekend I decided to try my hand at writing a JSON parser in REXX. I developed the technique outlined in this post to enable me to do that. I think it's new. Certainly I've not seen it before. (I don't want at this point to get into a discussion about why JSON parsing might be a useful thing to do. Suffice it to say it is possibly going to be second only to XML as a common data format in... [More]
Tags: 
json
schema
programming
xml
parsing
interpret
rexx
procedure
|
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]
Tags: 
android
xml
keytool
jarsigner
programming
java
tablet
|
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]
Tags: 
xml
wlm
php
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]
Tags: 
sff
dfsort
when=init
parse
z/os
icetool
xalan
saxon
symbols
csv
xml
xslt
|
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]
Tags: 
xsl
icetool
xml
saxon
zaap
unix
dfsort
ziip
java
json
schema
csv
parse
xalan
xslt
ebcdic
z/os
|
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]
Tags: 
eee
twitter
twhirl
asus
programming
notepad++
mozilla
xml
dojo
air
adobe
html
xulrunner
flex
|
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]
Tags: 
xml
xslt
saxon
rexx
csv
dfsort
xpath
|
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]
Tags: 
xml
xslt
document()
saxon
dfsort
|
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]
Tags: 
endbefr
dfsort
wlm
jfy
outfil
startaft
ifthen
removecc
when=group
fixlen
uk90007
parse
uk90006
uk90013
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]
Tags: 
xml
dfsort
|
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]
Tags: 
xml
xslt
storedprocedures
applicationenvironments
xpath
wlm
db2
|