I am attempting to pass a variable into a SUBROUTINE and use it to access 
the data through the dictionary name.

SUBROUTINE fieldLookup(....., ATTRIBUTE, ....)
.
.
.
READ @RECORD FROM F.FILE, @ID THEN
        RESULT = {ATTRIBUTE}
END ELSE
        RESULT = ""
END

The part that isn't working is the RESULT = {ATTRIBUTE}

As written here it is looking for a dictionary attribute named ATTRIBUTE. 
I tried forcing it to evaluate the variable ATTRIBUTE to the value in 
ATTRIBUTE by putting it in parenthesis, but it complained that it was 
expecting a variable when it was compiling.
Is there a way to use a variable in the curly braces so that I can make 
this a generic subroutine?

Charles Shaffer
Senior Analyst
NTN-Bower Corporation
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to