automate iseries navigator generate sql command

寵の児 提交于 2019-12-14 02:33:56

问题


I occasionally use iseries navigators "generate sql" to convert out DDS objects into sql code. Is there a way to automate this? or perhaps a green screen equivalent command? what I'm really after is a way to translate a keyed logical file into a set of sql indexes.


回答1:


You want to use the Generate Data Definition Language (QSQGNDDL) API...

http://www-01.ibm.com/support/knowledgecenter/ssw_ibm_i_71/apis/qsqgnddl.htm

There's at least two published utilities that use this API.
http://www.ibmsystemsmag.com/ibmi/developer/general/Generating-DDL-Source-Using-a-CL-Command/
http://www.itjungle.com/mgo/mgo060502-story01.html



来源:https://stackoverflow.com/questions/25855217/automate-iseries-navigator-generate-sql-command

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!