ddlgen is a command line utility just like isql and bcp provided by SAP/Sybase.
It is a tool to extract metadata in SQL/DDL format that is ready for use.
It allows you to connect to an existing ASE instance and extract metadata about various objects from both system databases like master and user databases as you may have.
ddlgen can be used creatively to start with a baseline repository of SQL for your logins, devices, databases and objects (tables, triggers, indexes, ......) within databases. You can also maintain version control by using changes thereafter.
With this SQL you can re-create what you need
- in case of DR scenario, and
- for database refreshes from production into other non-production environments.
It can be used to create a shell database with structure just like an existing database. New database (scaled down or up) will be with empty objects if you just want metadata and not the actual data to be copied.
As a production support DBA I frequently use it during change management. I extract existing logic (procedures, triggers, etc.) to have a backup of what is currently running/active, just in case we have to roll back the changes.
HTH
Avinash