Hi ,
I have to create about 400 new tables from scratch. I have volumetrics , table names and column names and attributes in a spreadsheet for each table. Has somone tried the automation of this to produce a text file of the DDLs for Tablespaces, Tables and Primary Indexes (for minimum) ? Then to transfer to Z/os .
Many thanks in advance - Pete
Genearating DDL via spreadsheet and trafer to Z/os
- prino
- Posts: 641
- Joined: Wed Mar 11, 2009 12:22 am
- Skillset: PL/I - CICS - DB2 - IDMS - REXX - JCL, most in excess of three decades
- Referer: Google
- Location: Vilnius, Lithuania
- Contact:
Re: Genearating DDL via spreadsheet and trafer to Z/os
I'm sure some clever-clogs can do it with Excel, but if I would be in your place, I'd save the lot as CSV file(s), transfer them to z/OS and write an edit macro to convert them to DDL. If the CSV format has a clearly defined format for each table, that has indicators as to what is what, my estimate for the time to write something is about half a day, but that might be too pessimistic. (Yes, pessimistic!)
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
robert.ah.prins @ the.17+Gb.Google thingy
Re: Genearating DDL via spreadsheet and trafer to Z/os
Thanks Rob, can you please point me to a good refrence material on edit macro ? Even if it take couple of days it is still useful in the future too!
Regards,
Pete
Regards,
Pete
-
- Global moderator
- Posts: 3025
- Joined: Sun Jul 04, 2010 12:13 am
- Skillset: JCL, PL/1, Rexx, Utilities and to a lesser extent (i.e. I have programmed using them) COBOL,DB2,IMS
- Referer: Google
- Location: Pushing up the daisies (almost)
Re: Genearating DDL via spreadsheet and trafer to Z/os
Try the ISPF Edit & Edit Macro manual.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
Regards
Nic