On Thu, 30 Mar 2000 11:46:06 +0100, "Richard Bellis"
<[EMAIL PROTECTED]> wrote:

>Hello,
>
>Does anyone know how I can map a delimited M global via the Object Architect
>or using CDL?
>

Andre has aswered most of the points.....
you can do it with the Architect in 3.2 (the previous version did not
work) there is still a bug in 3.2 whereby you go into an infinate
loop.

I find the best way is to start with a CDL and then add refinements in
the Architect

If you have *any* sort of Data Dictionary you can write a program to
do the CDL

On point that Andre did not cover is if you have fixed legs
eg
^gbl("abc",key1,0)=some data
^gbl("abc",key1,1)=some more data

class gbl
{
     description = "Description for global ^global";
     super = %Persistent;

     persistent = custom;
     index UniqueIndex{attributes = key1; extent = 0; idkey; unique; }

     attribute Key1 { type = %Numeric; calculated = 0; not final;
          multidimensional = 0; public; not required; sqlcomputed = 0;
          transient = 0; }
     more attributes.....
     ...
     ...

     storage custom
     {
         type = %CacheSQLStorage;
         sql 
           {
                map datamap
               {
                 global = ^gbl;
                 structure = delimited;
                 type = data;
                 subscript 1 { expression ="abc";}
                 subscript 2 { expression ={key1}; }
                 data line0a { delimiter = "["; piece =1;node=0 ;}
                 data line0a { delimiter = "["; piece =2;node=0 ;}
                 ......
                 data line1a { delimiter = "["; piece =1;node=1; }
                 data line1b { delimiter = "["; piece =1;node=1; }


        }
     }
   } 

}



Reply via email to