You can use any expression valid in a virtual attribute. So: list thisfile eval "EXTRACT(@RECORD,40,0,0):'|':EXTRACT(@RECORD,53,0,0):'|':EXTRACT(@RECORD ,<<Third_Value>>,0,0)"
In this case the <<Third_Value>> will prompt you for the attribute number to use.... Hth Colin Alfke Calgary, Alberta >-----Original Message----- >From: Jeff Powell > >I am trying to use eval to format a response from a uniquery >list. This works if I use dictionary items but for some >attribute there either is not a dictionary or it is pointing >to an incorrect attribute. > >How can I use an attribute directly? > >Hypothetical Dictionary Example: >list thisfile eval "prod.num:'|':pck.qty:'|':something.else" fmt "255l" > >With a result of: >DT12345|2|RED > >prod.num = attrib 40 >pck.qty = attrib 53 >... > >UniData v6.0 > >Thanks in advance. > >Jeff ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/
