Rexx - Instructions address



This function is used to display the current command environment.

Syntax

address() 

Parameters

None

Return Value

The return value is the current command environment.

Example

/* Main program */ 
options arexx_bifs 
say address()

When we run the above program we will get the following result.

Output

SYSTEM 

Lets take a look at some more variations of the address command.

Syntax

address environment command 

Parameters

  • environment − This is the current environment to which the command will be sent to.

  • command − This is the operating system command sent to the environment.

Return Value

The return value is the output of the command sent to the operating system.

Example

/* Main program */ 
options arexx_bifs 
say address() 
address system dir 

When we run the above program we will get the following result. The output depends from system to system. The following is an example of how the output would look like.

Output

SYSTEM 
Volume in drive H is Apps 
 Volume Serial Number is 8E66-AC3D  
Directory of H:\Apps\Programs  
06/29/2016  09:33 PM    <DIR>          . 
06/29/2016  09:33 PM    <DIR>          .. 
06/30/2016  12:55 PM                73 main.rexx 
               1 File(s)             73 bytes 
               2 Dir(s)  313,090,973,696 bytes free 
rexx_instructions.htm
Advertisements