|
re .0:
1) records do require that all fields be present, that means the
field name and some value. Defaults are not supported for fields
in a record. This is described in the SRM. In the data types
chapter you will note the BNF shows all fields as required, and
in the enrollment chapter you will note that the MSL syntax does
not support defaults within records.
About the only thing I can suggest is that you consider using
a variant record when availble, but even that will not make it
much nicer. I would need more information about what exactly
you are trying to do to see what can be done about it.
2) There is still some contention around variable records. During
the last two months it has come to light that what we were planning
and what some (not everyone) people were expecting, were not
the same. As soon as this is settled you will have your variant
records. My current speculation is EFT update.
3) Current SET, and SEQUENCE are not supported. We only support
SET OF and SEQUENCE OF. There are implementation problems with
trying to support SET and SEQUENCE; more on these two when decided.
As far as RECORD goes it is supported now, I would need to know
what baselevel kit you are working with to determine if it was
supported in that release.
4) Okay from this one (I should have looked at the example more
closely) I know what you are using and why RECORD doesn't work.
In the release you have constructed data types are not supported
inside an attribute list. Therefor the record type could not
be used for an attribute. The ILV mode error is because the TRM
was incorrectly setting the ILV mode on the RECORD to list instead
of native mode.
The <field> <value> format is correct, and what is documented
in the SRM. But...your point is well taken, this seems very
inconsistent. I will look into what it will take to make the
= optional.
|
| RE .1:
Jill,
Thanks for your reply. Here are some decisions that I have made:
1) I will try to avoid records that have more than a few fields requiring the
user to expicitely set them.
2) I will try to avoid Variable records unless they become available and they
are absolutely needed.
3) I really meant 'SET OF' and 'SEQUENCE OF' not SET and SEQUENCE,
respectively. I will wait for the EFT to use and test these types.
4) I think that the optional "=" for assigning a value to a record field makes
a lot of sense. Hope it is not a lot work for you.
PROBLEM with subrange. Here is the problem:
I define,
TYPE AlphaString= 16 Latin1String [48..57,65..90,97..122] ;
in order to restrict a latin1string to the following (0..9, A..Z, a..z)
I enter the following TRM commands:
MCC> set subsystem sub queue q pid="ABC"
%MCC-E-OUTOFSUBRANGE, Value not in subrange
MCC> set subsystem sub queue q pid="012"
MCC> ! accepts it
I redefine the type by reversing the order of the first two pairs in the
subrange,
TYPE AlphaString= 16 Latin1String [65..90,48..57,97..122] ;
and I enter the following,
MCC> set subsystem sub queue q pid="ABC"
MCC> ! accepts it
MCC> set subsystem sub queue q pid="012"
%MCC-E-OUTOFSUBRANGE, Value not in subrange
It seems that the problem is: it is trying to validate the string by checking
the subrange according to the first pair in the subrange definition and not
according to all the pair(s) {or subsequent ones}.
Regards,
Phil
|
|
>> PROBLEM with subrange. Here is the problem:
>>
>> TYPE AlphaString= 16 Latin1String [48..57,65..90,97..122] ;
>>
>> in order to restrict a latin1string to the following (0..9, A..Z, a..z)
I asked about subranges such as the one you described above, in
note 29.*. I contacted Dave Moore through mail as suggested in
29.3, and was told that only a single subrange is supported within
a subrange definition (the SRM is incorrect, and the MSL should not
accept multiple subranges). What you are attempting above is not
supported, according to the latest info I have.
Lynne
|
| Lynne is right. It is my understanding that we should be getting
to it soon, but right now we are trying to pull together all of
the remaining lose ends, and then prioritize the remaining work.
I will let you know more when we have definitive dates for the
remaining TRM work.
jill
|