George James Software logo

KB0113

How do I Control Which Components are Taken On and Take On Components which are Not of Type "R"?

Applies to: VC/m

Hint

A routine called %vc413 is available which is a template for stages 2 and 3 below. If you do not have this, please ask us for the latest version.

Procedure

  1. Set up the logical location to load from. This must include a mapping for R type components to an M physical location.
  2. Set up the following global nodes for the components to be loaded:

    ^%vcsel(listName)=numberOfComponentsInList\R ^%vcsel(listName,componentType_"."_fullComponentName)=""

    For example:

    set ^%vcsel("workfile1")="3\R" set ^%vcsel("workfile1","MAC.abcdef")="" set ^%vcsel("workfile1","T.cam/web/index.htm")="" set ^%vcsel("workfile1","BIN.cam/images/logo.gif")=""

    If the components are binary or text files, you can pipe a directory listing to a file, then open this in M and read in the contents.

  3. If the object names do not correspond to the component names (which they probably won't if the components are binary or text files which include a path), write M code which will set up global nodes linking the component type, name and object name. See article KB0002 for details of this.
  4. If required, set up a change request for the take-on.
  5. Run the Load function from the Manager menu.
  6. Enter the logical location from stage 1.
  7. At the "Routine(s)" prompt, enter @ and the name of the list you created in stage 2, eg "@workfile1". The prompt text changes. Press <return> to move on from here.
  8. Fill in the other prompts as usual and run the Load function.

Last reviewed: Dec 7, 2004

Back to top