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

operating system commands

Former Member
0 Likes
670

Q] `What do we mean by operating system commands

Like we use in the OPEN DATASET STATEMENT

OPEN DATASET <dsn> FILTER<filt>.

Q] What all system commands are available with M/S & Unix----or rather how to see them?

2 REPLIES 2
Read only

Former Member
0 Likes
589

Check these links.

http://help.sap.com/saphelp_nw04s/helpdata/en/df/4eec39cf3d970be10000000a11402f/content.htm

Using different OS command

If you define the command for each operating system using transactions SM69 (You can test it with SM49) and then call it using SXPG_COMMAND_EXECUTE which contains a parameter defining the operating system (SY-OPSYS) then it does not matter which operating system is running, the function

module always calls the correct version of the command.

So, for example you could define a command 'OS_COMMAND' which deleted a file. This would have one version for Dos which said 'del', and a second version for unix which said 'rm'. The correct command would be specified by the call to SXPG_COMMAND_EXECUTE because the operating system

parameter differentiates between the two commands

Check this link for Unix Command from ABAP

http://www.sap-img.com/ab008.htm

Read only

Former Member
0 Likes
589

Hai,

Operating system commands :

VMS Any input line that begins with a dollar sign, $, is considered to be a DCL command. These commands are executed by spawning a subprocess.

UNIX Any input line that begins with a percent sign, %, is considered to be a UNIX command and are passed on to the shell.

check beloe links.

http://www.smd.qmul.ac.uk/statgen/dcurtis/lc/how2os.html

http://help.sap.com/saphelp_46c/helpdata/EN/87/56d00722c011d2954a0000e8353423/content.htm

the below links are useful for system commands with M/S & Unix.

http://en.wikibooks.org/wiki/Guide_to_Unix/Commands/System_Information

http://en.wikipedia.org/wiki/Unix

With Regards,

Sowjanya.B.