Can anyone point me in the direction of the origins of the COB2XSD
DLLs/libraries supplied with legstar? I don't think this is from
legstar as there is no source - is this an IBM tool or something?, I
wasn't able to find a lot of reference to it on Google. I'm just a bit
wary of something I don't have the source for or any licence
information.
Apart from this question - all seems to work well - I've successfully
converted my copybooks to XSD... now digging a little further.
Thanks
Steve
--
Refactor
Engage. Succeed. Repeat.
PO Box 5658, GCMC, Q 9726, Australia
tel: +61 (0)7 5668 3424 web: refactor.com.au
Thanks for the nice comment.
You can use the binding capabilities without the transport/messaging
stuff. Legstar is very modular, perhaps too much actually. Originally
the web site simply listed all modules and you would have to pick and
choose the ones you needed. That was not simple for newcomers so we
bundled the entire thing together for simplicity. You can still download
individual modules though.
Using ant scripts or Eclipse plugins, you can do COBOL > XSD > Binding
classes. The Binding classes include Transformers which are a high level
API. At this stage you have everything necessary to convert mainframe
data to java or XML. There is a section on using transformers here:
http://www.legsem.com/legstar/legstar-coxbgen/release-notes.html.
Let us know how it goes.
Fady
The topic of handling REDEFINES have come up recently on the list and I
thought it was time to write a wiki on the subject. I just posted this
first attempt: http://code.google.com/p/legstar/wiki/HandlingRedefines.
I think it might help you understand the default behavior and what you
can do if you need to customize it.
When you unmarshal COBOL data to Java. You should get a non-null
alternative and the others should be null. If you are getting all nulls
then there might be a bug somewhere. Would you mind posting your COBOL
structure (I suggest changing the COBOL data item names if there are
confidentiality issues).
Thanks
Fady