On Wed, 20 May 2020 14:56:39 -0500, J Ellis wrote:

>i would like to use the bpxwunix function to run, either HOST or DIG or 
>nslookup commands, seems pretty straightforward ...
>but I can not get the put to com back to me, it has to be something silly i am 
>overlooking, any help would be appreciated
>
>/*  rexx  */                                           
>say 'hostname running'                                 
>RC = SYSCALLS('ON')                                    
>If RC<0 | RC>4 Then Exit RC                            
>address TSO 'Execio * Diskr input (STEM ipaddr. finis' 
>Address SYSCALL 
>
Address SYSCALL is superfluous.  BPXWUNIX is a function to
which host environment is irrelevant.
                                       
> Do i = 1 to ipaddr.0                                  
>    call bpxwunix 'host ',ipaddr.i,out. 
>
No.  BPXWUNIX should be called with a stem, such as "ipaddr.",
not "ipaddr.i".
               
>    say 'inaddr ' ipaddr.i                             
>    say 'out ' out.                                    
> Address tso                                           
> 'Execio 1 Diskw ddout (STEM out. '                    
> End                                                   
> "EXECIO 0 DISKW ddout (FINIS)"                        
> Exit  

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to