T.R | Title | User | Personal Name | Date | Lines |
---|
2998.1 | | CSC32::B_ALTMIRE | | Thu Feb 06 1997 18:04 | 6 |
| Lorrey,
I think $EXIST can only be used to check for a point in the source
tree "$EXIST(SCH{2})" . You can't use it to check for the existance of
a field in a record or an element in a segment.
Bill
|
2998.2 | Doc says - check for if exist | EDITEX::bjodial1_port9.bjo.dec.com::stoddart | Lorey K. Stoddart - EDI to go! | Fri Feb 07 1997 14:25 | 13 |
| Bill,
When you say check for a point, what to you mean?
The documentation says "Returns TRUE is specified node's instance exists"
That tells me it is checking for existance.
Should I log a formal call for this? Is it a bug?
Engineering - got any comments?
Lorey
|
2998.3 | to clarify some jargon | SYSTEM::newdial_2.reo.dec.com::JOHNSON | Richard Johnson , http://samedi.reo.dec.com | Fri Feb 07 1997 15:38 | 27 |
| Lorey
The function $EXIST(node) takes a node as a parameter.
The function will return TRUE if the node's instance exists in
the source tree, FALSE if it does not (the source tree can be seen
near the top of a debug output file. It is the internal representation of
the input data read from a .dat or .in_house file).
The 'node' can be qualified with an instance number i.e. node{1},
though this is not explicitly necessary.
The function will then ascertain whether that particulr instance
exists in the source tree(input data) or not.
What you are attempting I think is to pass a node{instance}:field
to $EXIST.
$EXIST does not understand the :field part of what you are passing.
It cannot check for the existance of particular element/field within a
segment/record, it can only check on the existance of the whole
segment/record.
Does that claify things?
Richard
EDI Engineering
|
2998.4 | Thanks - that worked | EDITEX::bjodial1_port11.bjo.dec.com::stoddart | Lorey K. Stoddart - EDI to go! | Fri Feb 07 1997 20:06 | 8 |
| Yep, I read the documentation wrong and tried using a field. Just used the
segment name (nose), and it looks good!
As ALWAYS,
Thanks,
Lorey
|