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

create SQL run by batch -certain record

Former Member
0 Likes
298

hi all , i have created one program , and i have execute more than 40000 record. the problem is, when i run this background job with 40000 record, i got DBIF_RSQL_INVALID_RSQL error. if i run 100 record it will display.

how i want to modified my pgram which is , its run 100 record by 100 record until 40000 record, then it is will i have the same problem? DBIF_RSQL_INVALID_RSQL?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
252

yeah..u can handle your select -options with less number of records like this:

s_guidt[] = s_guid[].

REFRESH s_guid[].

LOOP AT s_guidt .

MOVE-CORRESPONDING s_guidt TO s_guid .

APPEND s_guid .

cnt = cnt + 1 .

IF cnt > 50 .

cnt = 0.

PERFORM get_header.

REFRESH s_guid[].

ENDIF.

ENDLOOP .

1 REPLY 1
Read only

Former Member
0 Likes
253

yeah..u can handle your select -options with less number of records like this:

s_guidt[] = s_guid[].

REFRESH s_guid[].

LOOP AT s_guidt .

MOVE-CORRESPONDING s_guidt TO s_guid .

APPEND s_guid .

cnt = cnt + 1 .

IF cnt > 50 .

cnt = 0.

PERFORM get_header.

REFRESH s_guid[].

ENDIF.

ENDLOOP .