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: 

integer counter giving error

Former Member
0 Kudos

hi all,

I am using the following logic for counter:

data: count type i.

count = count + 1.

but when the value gets to double figures i.e. 10 for count then the count value becomes *. giving error at this stage.

Any suggestions. Thanks.

Regards,

FS

1 ACCEPTED SOLUTION

former_member705122
Active Contributor
0 Kudos

Hi FS,

i tried your code but iam not getting any error ,

run this code

data: count type i.

do 20 times.

count = count + 1.

enddo.

write: count.

Regards

Adil

2 REPLIES 2

former_member705122
Active Contributor
0 Kudos

Hi FS,

i tried your code but iam not getting any error ,

run this code

data: count type i.

do 20 times.

count = count + 1.

enddo.

write: count.

Regards

Adil

Former Member
0 Kudos

Hi,

declare counter as character and check.

data: variable(4).

Reward points