![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
All, I have a question that I am assuming has a simple answer. I have a file with 2 attributes. One attribute is the date the record was created, the other attribute is a multi-valued list of product numbers. I want to create dictionary which concatenates the 2 with an exclamation point. I.e., PD223!12797 And, in the records where there are multiple products, I would like to list the date next to each value. i.e.: PD223!12797 HG332!12797 BBB!12797 My initial attempt at this was a dictionary along the lines of: PRODUCT:"!":INT.DATE (with product being the product field and int.date being the date field in internal format) Using the data from above, this returns: PD223 HG332 BBB!12797 I wrote a subroutine to do it, but, apparently when you are using Uniobjects to write to a file and the file has an index on a field that uses an external subroutine, Uniobjects blows up. I put this in here because we ran into this problem and I could not find mention of it anywhere. So, my question would be how to get the date concatenation to replicate for each value in the product field. We are running Unidata on AIX. Thanks in advance for your assistance. Baker |
#3
| |||
| |||
|
|
All, I have a question that I am assuming has a simple answer. I have a file with 2 attributes. One attribute is the date the record was created, the other attribute is a multi-valued list of product numbers. I want to create dictionary which concatenates the 2 with an exclamation point. I.e., PD223!12797 And, in the records where there are multiple products, I would like to list the date next to each value. i.e.: PD223!12797 HG332!12797 BBB!12797 My initial attempt at this was a dictionary along the lines of: PRODUCT:"!":INT.DATE (with product being the product field and int.date being the date field in internal format) Using the data from above, this returns: PD223 HG332 BBB!12797 I wrote a subroutine to do it, but, apparently when you are using Uniobjects to write to a file and the file has an index on a field that uses an external subroutine, Uniobjects blows up. I put this in here because we ran into this problem and I could not find mention of it anywhere. So, my question would be how to get the date concatenation to replicate for each value in the product field. We are running Unidata on AIX. Thanks in advance for your assistance. Baker |
#4
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |