9.209 SYSTEM_COMMAND

Note: Built-In Function Rules     Usage Options

Executes an operating system command.

Arguments

No

Type

Req/ Opt

Description

Min Len

Max Len

Min Dec

Max Dec

1

A

Req

Command Execution option:

X = Execute via synchronous process.

B = Execute via synchronous process in silent mode.

S = Execute via the "system" command interface in a command interpreter window.

H = Execute via the "ShellExecute" command interface.

A = Execute via asynchronous process.

W = Backward compatibility only. Use "S" instead.

For IBM i:
All options result in synchronous execution of the command.

1

1

 

 

2

A

Opt

Command string part 1

1

256

 

 

3

A

Opt

Command string part 2

1

256

 

 

4

A

Opt

Command string part 3

1

256

 

 

5

A

Opt

Working Directory

1

256

 

 

 

Return Values

No

Type

Req/ Opt

Description

Min Len

Max Len

Min Dec

Max Dec

1

N

Req

Return/Response Code from the operating system.

For IBM i:
0 = command successfully executed
1 = command failed to execute successfully.

3

7

0

0

 

Technical Notes - all platforms

Technical Notes - Windows & Linux

Technical Notes - IBM i

     If this does not suit your site security policy, then use this command:

CHGPGM PGM(M@SYEXEC) USRPRF(<your value>) USEADPAUT(<your value>)

     You should check these values after any upgrade to your LANSA system.