Skip to Content
0
Former Member
Jun 30, 2006 at 05:34 AM

excuting unix program.

44 Views

Hi.

I just want excute java.exe in bw unix without using function 'SXPG_CALL_SYSTEM'.

cause that function has limit number of command string.

I think I can use this command but somehow it returns null.

don't know what is problem and actually not sure usage of CALL 'SYSTEM' function.

anyone can fix this problem?

DATA: INFO_SGL(700) TYPE C OCCURS 0 WITH HEADER LINE.

data: COMMAND_STR type string.

data: CODE_number_500 type string.

CODE_number_500 = '43423424324........'.

concatenate '/opt/java1.3/bin/java -jar'

' test_v2.jar'

CODE_number_500

INTO COMMAND_STR.

CALL 'SYSTEM' ID 'COMMAND' FIELD COMMAND_STR ID 'TAB' FIELD INFO_SGL-SYS.

loop at info_sgl.

return_value = info_sgl.

endloop.

thank you.