Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Work Areas

Former Member
0 Kudos

The following code initializes a component of my

work area called field_1. But the field is not compacted,

as I would expect. Instead it contains spaces, meaning

that I cannot simply pass it to a SQL statement without

first removing the blank spaces.

READ TABLE myTable INDEX 1 INTO myWorkArea.

myTable-field_1 = "ABC" --- Character length 10

myWorkArea-field_1 = " ABC ". -- Character length 10

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Check if the field that you are using in WHERE clause for the query has type Char10

3 REPLIES 3

former_member191735
Active Contributor
0 Kudos

Try assigning into string and/or use condense statement

Former Member
0 Kudos

Normally it should not happen if your work area is line type of my table.

Former Member
0 Kudos

Hi,

Check if the field that you are using in WHERE clause for the query has type Char10