mrc logo mrc logo
  • m-Power m-Power
    What is m-Power?
    Overview Demos Build Process Case Studies Specs Pricing Trial
    m-Power Resources
    Overview How-To Videos Webinars & Podcasts White Papers Fact Sheets
  • Solutions Solutions
    What does m-Power build?
    Overview Database Front-Ends Reporting CRM Systems Business Intelligence Dashboards Inventory Management Mobile Apps ERP Enhancements Modernization Spreadsheets to the web MS Access to the web B2B/Web Portals Scheduling Embedded Analytics Web Forms Workflow Data Exploration Budgeting & Forecasting APIs and Web Services Db2 Web Query Alternative
    Solutions by Industry
    Overview Manufacturing Government Foodservice Software Vendors Logistics & Supply Chain Software Consultants Healthcare
  • Services Services
    Development Services Training Mentoring
  • About About
    Overview Partners Press Releases Careers Events Contact Blog
  • Support Support
    Support Home FAQ Documentation Customer Portal Enhancements Updates Roadmap Techblog
Try m-Power

m-Power Manual

Browse:

  • Home
  • General
  • Utilizing Multi-Member Files in m-Power
Back to Manual

Utilizing Multi-Member Files in m-Power

 

Many m-Power users believe that they are unable to utilize their multi-member files in m-Power because m-Power was designed to work over Databases other than DB2. Since these other databases do not have multi-member files, we removed the ability from the interface to access these multi-member files.

However, there is a very easy way to load member tables into your Data Dictionary using SQL Aliases.

Since m-Power, by default, has no way to differentiate between two different members in one file, we will use aliases to help distinguish between the two. Let's say I have a file called CUSMAS, with two members titled member1 and member2. For this example, we are going to only need member2.

Enter an SQL command line, and enter the following command:

CREATE ALIAS SCHEMANAME/NEWFILENAME FOR SCHEMANAME/CUSMAS (member2)

Press Enter.

You have now created an SQL Alias, that now allows us to differentiate member2 from member1.

Lastly, we need to register this new alias to m-Power. Since the alias is not a physical file or an SQL view, m-Power will not allow you to add it. You can, however, create a dummy table in a separate data dictionary with the same name as your alias that contains no data but matches the same structure as your alias (same field names, same field sizes, same field precision). Load this table into m-Power. Then, click the table in the "Manage Tables" list, and point the table to the library that contains the alias. m-Power will allow you to make this change, and it will retain all of the original field name and attributes from your dummy table. However, when you build applications, they will be built over your alias.

Enter the Schema and Table name, and click Register Table.

Build your application over the newly created Alias!

Created: February 29, 2008 | Modified: December 23, 2011

Search


Browse By Category

Build Process (13)
Starting with m-Power (8)
Retrievals (10)
Reports (15)
Summaries (4)
Maintainers (17)
Graphs (8)
m-Power Data Explorer (4)
General (24)
Calculations (5)
Utilities (9)
m-Power Administration (23)
Security (11)
Freemarker (6)
m-Painter (29)
Form Validation (5)
External Objects & UDFs (12)
Deprecated Documentation (23)
Bootstrap Templates (7)

Popular Tags

Record Selections m-Painter mrc-Productivity Series Calculations Form Validation Summaries Administration Java Graphing Email Reports Parameters Excel Advanced Dates Freemarker Production SQL Retrievals Database Performance Retrieval Data Dictionary Maintainers Video Bootstrap Templates Admin Build Process Graphs Maintainer Compiling Graph Properties Prompt Screens Application Properties RPG App Properties Tomcat DB2 Dropdowns External Objects Popular Report Security Getting Started Bar Graphs

See all tags »

michaels, ross & cole, ltd. (mrc)

Privacy Policy Cookie Policy Cookie Settings Notice at Collection Do Not Sell or Share My Personal Information

mrc (US)

2001 Midwest Road
Suite 310
Oak Brook, IL 60523
630-916-0662

mrc (UK)

Mortlake Business Centre
20 Mortlake High Street
London, SW14 8JN
+44-20-335-59566


© 2024 mrc. All rights reserved.