I am trying to make a field that holds the values of 20 other fields so that I can create a drop down list for a parameter. For example I have twenty fields which are labels (label1, label2, label3, label4, label5, etc.) I would like a new field that holds all of the values from the labels so that I have one list of all labels.
Is there a way to take the values of 20 different fields and combine them into a new field name.
Below is my attempt at a new define, however I only obtained data from BUSCODE1 and all remaining BUSCODE fields were ignored once it found data in BUSCODE1.
DEFINE FILE AUTHORIZATIONS
BUS_VALUE/A50=
IF BUSCODE1 NE '' THEN BUSCODE1 ELSE
IF BUSCODE2 NE '' THEN BUSCODE2 ELSE
IF BUSCODE3 NE '' THEN BUSCODE3 ELSE
IF BUSCODE4 NE '' THEN BUSCODE4 ELSE
IF BUSCODE5 NE '' THEN BUSCODE5 ELSE
IF BUSCODE6 NE '' THEN BUSCODE6 ELSE
IF BUSCODE7 NE '' THEN BUSCODE7 ELSE
IF BUSCODE8 NE '' THEN BUSCODE8 ELSE
IF BUSCODE9 NE '' THEN BUSCODE9 ELSE
IF BUSCODE10 NE '' THEN BUSCODE10 ELSE
IF BUSCODE11 NE '' THEN BUSCODE11 ELSE
IF BUSCODE12 NE '' THEN BUSCODE12 ELSE
IF BUSCODE13 NE '' THEN BUSCODE13 ELSE
IF BUSCODE14 NE '' THEN BUSCODE14 ELSE
IF BUSCODE15 NE '' THEN BUSCODE15 ELSE
IF BUSCODE16 NE '' THEN BUSCODE16 ELSE
IF BUSCODE17 NE '' THEN BUSCODE17 ELSE
IF BUSCODE18 NE '' THEN BUSCODE18 ELSE
IF BUSCODE19 NE '' THEN BUSCODE19 ELSE
IF BUSCODE20 NE '' THEN BUSCODE20 ELSE 'NONE';
END
7.6.8
Windows xp
html