Copybook to DataStage schema file
Moderators: chulett, rschirm, roy
Copybook to DataStage schema file
Does anybody know a UNIX command line utility that allows to convert COBOL copybook to DataStage schema files?
I am not sure if one exists and if it does then pardon my ignorance. I know there are some softwares out there that will read a copy book and convert it into xml. You will have to cook something up. Would'nt be hard to create a shell script that achieves this.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
-
- Participant
- Posts: 47
- Joined: Wed Aug 20, 2008 7:31 am
- Location: New jersey
Found this on search http://sourceforge.net/projects/cb2xml/. A java parser job can be used to populate the required.
sunny
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Import the COBOL copybook into DataStage. Then open the table definition, go to the Layout tab, open the Parallel option and (right click to) save the record schema in a file. Voila!
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
I know it is that simple. Unfortunately I need to do it dynamically before the job runs. I use this schema file in the job. It is not xml I am converting to, but really a schema file.ray.wurlod wrote:Import the COBOL copybook into DataStage. Then open the table definition, go to the Layout tab, open the Parallel option and (right click to) save the record schema in a file. Voila! ...
Any idea? I am writing DataStage job to do it, but there is too many variations in copybook syntax that it is going to be difficult.