I have a code that converts a character to numeric using the informat and I'm using length function as the value of informat.

However, I'm having error with this approach.

Background of this problem is that the informat before was fixed value. I want to enhance the code for the informat to be flexible and remove the fixed value.

Before code:

```
data work.test;
emp_input = '168643123'
emp_value = input(emp_input, 6.);
run;

```

My current testcode:

```
data work.test;
emp_input = '168643123'
emp_value = input(emp_input, length(emp_input).);
run;

```

I expect the result that character '168643123' would be converted to numeric 168643123.

Using before code the output for this would be: numeric 168643.