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 check error.

Former Member
0 Likes
498

Hi i am getting one syntax check error while extended error checking as 'The READ variant is obsolete. You should specify the key in the form "k1 = v1 ...' in the code line READ TABLE BUFFER_DIR WITH KEY DIR_KEY BINARY SEARCH. wot shud i do to avoid this??

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
474

Hi Krish,

Instead of:

READ TABLE BUFFER_DIR WITH KEY DIR_KEY BINARY SEARCH.

you should write

READ TABLE BUFFER_DIR WITH KEY field1 = (Part of dir_key that you have concatenate earlier) field2 = (Part of dir_key that you have concatenate earlier).

Regards,

Ravi

3 REPLIES 3
Read only

Former Member
0 Likes
474

Hello,

In this staetment

READ TABLE BUFFER_DIR WITH KEY DIR_KEY <b>= 'XXX'</b> BINARY SEARCH

You need to mention = something in the read statement

Vasanth

Read only

Former Member
0 Likes
475

Hi Krish,

Instead of:

READ TABLE BUFFER_DIR WITH KEY DIR_KEY BINARY SEARCH.

you should write

READ TABLE BUFFER_DIR WITH KEY field1 = (Part of dir_key that you have concatenate earlier) field2 = (Part of dir_key that you have concatenate earlier).

Regards,

Ravi

Read only

RaymondGiuseppi
Active Contributor
0 Likes
474

You need to use all the individual keys fields of the table

READ TABLE my_table

WITH KEY

key1 = work-key1

key2 = work-key2.

Regards.