Using PB 10.2.0 Build 8100 and SQL server. I am trying to use embedded SQL and I want to variable-ize the length parameter to SQL server function substring. In my script I tried Substring(column_name, 4, :ll_len) where I set the local long variable ll_len = 4 and then run the embedded SQL. I get no compile error but when I run the result is not based on the length variable I set. Is there a way to do this in script?