{"id":545,"date":"2008-02-06T12:16:16","date_gmt":"2008-02-06T12:16:16","guid":{"rendered":"http:\/\/www.mrc-productivity.com\/docs\/?p=545"},"modified":"2023-05-12T13:24:13","modified_gmt":"2023-05-12T19:24:13","slug":"using-multi-member-files-with-m-power","status":"publish","type":"ht_kb","link":"https:\/\/www.mrc-productivity.com\/techblog\/?ht_kb=using-multi-member-files-with-m-power","title":{"rendered":"Using multi-member files with m-Power"},"content":{"rendered":"<p>SQL and most data-bases other than DB2 have no concept of multi-member files. Since we designed m-Power to work with any data-base, we removed the member definitions that exist in the mrc-Productivity Series data dictionaries from the m-Power data dictionaries.<\/p>\n<p>At first glance, you might look at this and think that means m-Power cannot handle multi-member files. But you would be wrong. Using multi-member files with m-Power on a System i is different. I&#8217;m going to show you how easy it really is with m-Power.<\/p>\n<p>Suppose I have a multi-member physical file called &#8216;<em>myfile<\/em>&#8216; in a library called &#8216;<em>mylib<\/em>&#8216; with two members called &#8216;<em>mbr1<\/em>&#8216; and &#8216;<em>mbr2<\/em>&#8216;. Also suppose that I want to build an m-Power servlet over &#8216;<em>mbr2<\/em>&#8216;.<\/p>\n<p>All I have to do to accomplish this is go into SQL on the System i and create an alias for the file\/member combination I want to use. In this case, the SQL command would be:<\/p>\n<p>CREATE ALIAS <em>mylib\/newfilenm<\/em> FOR <em>mylib\/myfile(mbr2)<\/em><\/p>\n<p>What I have done here is created an alias called &#8216;<em>newfilen<\/em>m&#8217; in library &#8216;<em>mylib<\/em>&#8216;. I sign on to m-Power and import &#8216;<em>mylib\/newfilenm<\/em>&#8216; into my data dictionary just like I would any other physical file.<\/p>\n<p>That&#8217;s it, I am ready to use it to build servlets.<\/p>\n<p>The only functionality that you have with multi-member files in mrc-Productivity Series that you cannot get with m-Power is the ability to build something over the consolidation of all members. Perhaps, the multi-member file users out there should lobby IBM to allow a member name &#8216;<em>*ALL<\/em>&#8216; on the CREATE ALIAS command.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SQL and most data-bases other than DB2 have no concept of multi-member files. Since we designed m-Power to work with any data-base, we removed the member definitions that exist in the mrc-Productivity Series data dictionaries from the m-Power data dictionaries. At first glance, you might look at this and think&#8230;<\/p>\n","protected":false},"author":1,"comment_status":"closed","ping_status":"open","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[],"ht-kb-tag":[],"class_list":["post-545","ht_kb","type-ht_kb","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/ht-kb\/545","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=545"}],"version-history":[{"count":4,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/ht-kb\/545\/revisions"}],"predecessor-version":[{"id":906,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/ht-kb\/545\/revisions\/906"}],"wp:attachment":[{"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=545"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=%2Fwp%2Fv2%2Fht-kb-category&post=545"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=%2Fwp%2Fv2%2Fht-kb-tag&post=545"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}