IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

FTP with OUTTRAP


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Ricardo Viegas

New User


Joined: 18 Oct 2012
Posts: 39
Location: Brasil

PostPosted: Thu Oct 15, 2015 7:27 am
Reply with quote

With OUTTRAP I can trap the output from an FTP session invoked under TSO/ISPF, but this does not prevent the display of the output at the terminal, as occurs with the TSO commands.
Are there any way to do that? (I suspect that it should be done by some kind of FTP subcommand and/or parameter, but my knowledge of FTP is very poor)
Below a sample REXX exec to test it:
Code:

/* TTFTPTRP - Testing FTP with OUTTRAP       [REXX] */
Queue 'QUIT'                                         
otrap = OutTrap('lin.')                               
'FTP 10.0.0.19'           /* "userid.NETRC" exists */
otrap = OutTrap('OFF')                               
Do ctr = 1 To lin.0                                   
  Say 'Line' ctr':' lin.ctr                           
  End                                                 
Exit                                                                                                         
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts OUTTRAP Equivalent function in CLIST CLIST & REXX 5
No new posts Error when compiling a REXX exec with... CLIST & REXX 2
No new posts Reg: Outtrap command execution in batch CLIST & REXX 12
No new posts Finding difficulty in using OUTTRAP f... CLIST & REXX 16
No new posts REXX code - Outtrap is not working TSO/ISPF 9
Search our Forums:

Back to Top