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
- Set up the logical location to load from. This must include a mapping for R type components to an M physical location.
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.
- 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.
- If required, set up a change request for the take-on.
- Run the Load function from the Manager menu.
- Enter the logical location from stage 1.
- 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.
- Fill in the other prompts as usual and run the Load function.
Last reviewed: Dec 7, 2004
Back to top
Copyright 1997, 2005 George James Software.