hexagon logo

How to Create multiple fields based on number of load case.

I am trying to create multiple fields based on load case count using PCL. My requirement is every time the field name should be changed. I used concatenate option. But it doesn't work. Any other way it can be done ? 
Please find my code below .
#########################
######### Create fields
#########################
Function field_create()
## Variable declarations
STRING s_name[31]
STRING s_group[32]
STRING s_type[32]
INTEGER i_extrap_method
STRING s_coord[32]
INTEGER i_result_flag
INTEGER i_return_value
INTEGER j
INTEGER lc_count
# Count all the load cases
db_count_load_cases(lc_count)
db_get_all_load_cases()
# Create FEM field
FOR (j=1 TO lc_count)
s_name  =  "field"//(j)
s_group = "GFEM_Elms"
s_type  = "Scalar"
i_extrap_method = 1
s_coord = "Coord 0"
i_result_flag = 0
i_return_value = fields_create_fem ( s_name, s_group, s_type, i_extrap_method, @
         s_coord, i_result_flag )
      
END FOR
END FUNCTION