{"id":83,"date":"2009-03-19T04:23:58","date_gmt":"2009-03-18T22:23:58","guid":{"rendered":"http:\/\/techsatwork.com\/blog\/?p=83"},"modified":"2016-01-07T11:31:14","modified_gmt":"2016-01-07T05:31:14","slug":"a-simple-script-to-dynamically-create-db2-reorg-script","status":"publish","type":"post","link":"https:\/\/techsatwork.com\/?p=83","title":{"rendered":"Simple DB2 Reorg Script &#8211; Take 1"},"content":{"rendered":"<p>I used to run a script that did went thru the reorgchk output and build a script out of it. Even though it worked, I often found it difficult to pick the right index. I rewrote it for scalability and flexiblity. This currently reorgs offline for tables and r\/w mode for indexes and will only do non SYSIBM objects.\u00c2\u00a0\u00c2\u00a0 I thought of making it an inplace reorg. What I don&#8217;t like about inplace reorg is , its all asynchronous , so there can be mulitple of them running.\u00c2\u00a0 But I have an idea to make it run synchronously and I am working on it. but until then this is what I have.\u00c2\u00a0 Feel free to customize it the way that suits you&#8230;oh Iam sure y&#8217;all will do that.\u00c2\u00a0 Here is it :\u00c2\u00a0 <a href=\"https:\/\/techsatwork.com\/blog\/wp-content\/uploads\/2009\/03\/reorg.txt\" target=\"_blank\">reorg<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I used to run a script that did went thru the reorgchk output and build a script out of it. Even though it worked, I often found it difficult to pick the right index. I rewrote it for scalability and flexiblity. This currently reorgs offline for tables and r\/w mode for indexes and will only [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-container-style":"default","site-container-layout":"default","site-sidebar-layout":"default","site-transparent-header":"default","disable-article-header":"default","disable-site-header":"default","disable-site-footer":"default","disable-content-area-spacing":"default","footnotes":""},"categories":[3],"tags":[31,943,28],"class_list":["post-83","post","type-post","status-publish","format-standard","hentry","category-db2","tag-automation","tag-db2","tag-script"],"_links":{"self":[{"href":"https:\/\/techsatwork.com\/index.php?rest_route=\/wp\/v2\/posts\/83","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techsatwork.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techsatwork.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techsatwork.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/techsatwork.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=83"}],"version-history":[{"count":9,"href":"https:\/\/techsatwork.com\/index.php?rest_route=\/wp\/v2\/posts\/83\/revisions"}],"predecessor-version":[{"id":1554,"href":"https:\/\/techsatwork.com\/index.php?rest_route=\/wp\/v2\/posts\/83\/revisions\/1554"}],"wp:attachment":[{"href":"https:\/\/techsatwork.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=83"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techsatwork.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=83"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techsatwork.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=83"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}