Hi everyone, I am trying to dynamically create a dictionary in the CASL. In this case I will not know the dictionary keys until I am iterating through an array creating the dictionary. Below is example code of what I am trying to do with current output and what I want as an output. proc cas; count = {"one", "two", "three"}; do x over count; print x; temp_dic.x = "hi there"; end; print temp_dic; run; Current output: one two three {x=hi there} Wanted output: one two three {one = "hi there", two="hi there", three = "hi there"} Obviously this is a simplified example, but the thing that I am trying to find out is to evaluate x and use as a dictionary key. It seems odd that CAS evaluates x differently in side the loop. I also tried casting x as a string, and am all out of ideas. Is what I am trying to do possible? or am I unable to resolve x inside the loop as a dictionary key? Thanks!
... View more