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: 

DO...ENDDO Statement in Unicode

Former Member
0 Kudos

Hi,

I turn on the Unicode Check and activate the report, i got a Syntax errors in DO..ENDDO Statement. Below is the statment i have it in the report

DO 12 TIMES VARYING .... FROM .... NEXT ......

IF ... .

EXIT.

ENDI.

ENDOD.

Error Message as : Type incompatable .

How i can correct this in UNICODE enabled report. Your suggestion is highly appreciated and rewarded as well.

Thanks,

-suresh

1 ACCEPTED SOLUTION

former_member191735
Active Contributor
0 Kudos

hi,

in unicode programs, the object after varying and after from have to be compatible.

Let us see with your example

data: test(10) type c, test1(10) type c,

test2(10) type c.

DO 12 TIMES VARYING test FROM test1 NEXT test2.

IF ... .

EXIT.

ENDIF.

ENDDO.

in the above example, test, test1 and test2 have to be compatible.

Reward if helpful.

1 REPLY 1

former_member191735
Active Contributor
0 Kudos

hi,

in unicode programs, the object after varying and after from have to be compatible.

Let us see with your example

data: test(10) type c, test1(10) type c,

test2(10) type c.

DO 12 TIMES VARYING test FROM test1 NEXT test2.

IF ... .

EXIT.

ENDIF.

ENDDO.

in the above example, test, test1 and test2 have to be compatible.

Reward if helpful.