Application Development and Automation 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: 
Read only

syntax error

Former Member
0 Likes
479

Hi all,

I am working on upgrading project from 4.0b to 4.7. I found syntax error " we can't define length of integer".

Example: c_field(15) int i.

How can i rectify that error. What should I replace with?

Thanks,

Shiva

4 REPLIES 4
Read only

Former Member
0 Likes
451

c_field(15) int i.--->wrong

<b> c_field type i.</b>

or try using

c_field(15) type n.

Read only

0 Likes
451

Hi kishan negi,

But when we default length of integer is maximum 10. Variable length is 15. What to do?

Thanks.

SHiva

Read only

Former Member
0 Likes
451

You cannot use size specification for integer data type.

Use

EG: var1 type i.

c_field(15) int i -> is a wrong way to define integer data type

Message was edited by: vinodh balasubramaniam

Read only

Former Member
0 Likes
451

for integer we cannot specify any particular length

so write like this

DATA : c_FIELD type i.