Go Back   Attunity Integration Technology Forum > Integration Technology > Data Access > ODBC Drivers > ODBC for Adabas


Contact Us to hear more about

What about arrays?

Attunity AIS - Data Integration Technology - ODBC for Adabas


Post New Thread Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-24-2006, 03:56 AM
Patricio Patricio is offline
Junior Member
 
Join Date: Aug 2006
Posts: 5
My Photos: (0)
Rep Power: 0
Patricio is on a distinguished road
Talking What about arrays?

Thanks, Andre for such a comprehensive answer! If we're on the subject, I'd like to ask then about array handling in Adabas via Attunity.

Thanks again in advance,
Patricio
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 08-24-2006, 07:57 AM
Andre Andre is offline
Documentation Manager
 
Join Date: Aug 2006
Posts: 147
My Photos: (0)
Rep Power: 6
Andre is on a distinguished road
Default Arrays - MU and PE fields

Cheers Patricio. No sweat.

Attunity Connect fully supports MU and PE fields (including MU inside of a PE).
These constructs are mapped as arrays and can be used with the standard AIS array handling infrastructure. Some specific points to Adabas arrays are as follows:

■ A counter field is automatically added to the table for every array. For the LANG (AZ) MU field in the EMPLOYEES sample table, Attunity Connect will automatically add a field called C_LANG which will translate to AZC in the
Adabas format buffer.

■ Whenever any data from an MU/PE is included in the query, Attunity
Connectwill automatically add the relevant counter field in the format buffer so that the correct number of rows is returned.

■ For an MU inside a PE, a counter field is created for the MU field. The Adabas format buffer interpretation for this field is a bit more complex as it will generate an explicit format buffer field for every PE instance (e.g., AA1C, AA2C, AA3C…).

■ Adabas arrays support INSERT/UPDATE/DELETE operations when using the virtual array tables. All these operations are implemented using the Adabas A1
command. The following notes apply:
-A DELETE operation sets MU/PE fields to their empty value (zeros or spaces).
So a delete of the 3rd member of the ’AZ’ MU will cause an A1 operation with
format buffer ’AZ3.’ and record buffer with spaces.

– An INSERT operation adds another member to the end of the array. The _
ROWNUM provided is ignored.
■ Adabas arrays can have up to 191 members. It is, however, highly recommended to use a lower dimension which represents the maximum expected number if members. When using Adabas Predict, this ’applicative’ dimension is read from Predict. If Predict specifies no dimension, the defaultOccurrences configuration attribute is used (10 if unspecified). Note that if a record is read with a larger number of array members than the given dimension, the driver will return an error (Bad metadata on array for column….).

■ Attunity Connect arrays are naturally row-wise arrays. When accessing PE
members, Adabas returns the results in a column-wise order. For example, a PE called INCOME (AQ) in the EMPLOYEES sample table has members like CURR_CODE (AS) and SALARY (AS). The format buffer will include AR1-40 and AS1-40 which is a column-wise ordering (all instances of AR followed by all instances of AS). This is different than equivalent definitions in VSAM, for
example, where you would have AR1, AS1, AR2, AS2, etc. The Attunity
ConnectAdabas driver will represent the metadata as an array of CURR_CODE
followed by an array of SALARY to match the physical layout of the buffer, but it will add a groupEntry attribute on the structure in order to expose this logically as a single array. Note that this different ordering is transparent to the user.

I reckon this will point you on your way.

Regards,
Andre
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Post New Thread Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Virtual tables for Adabas, CISAM, DBMS, DISAM, Enscribe, RMS, and VSAM arrays Andre Data Access 0 09-26-2006 05:53 AM
Are arrays supported in the Natural driver? Costi Zaboura JDBC Drivers 0 08-29-2006 06:19 AM


All times are GMT -4. The time now is 08:30 PM.


Content Relevant URLs by vBSEO 3.0.0
© 2009 Attunity Ltd. All rights reserved.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235