Announcement

Collapse
No announcement yet.

QMGTOOLS/STRSFTP - how to use parameters

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • QMGTOOLS/STRSFTP - how to use parameters

    Hi,
    I'm about to use QMGTOOLS/STRSFTP for different purposes as regular ftp transfer should be replaced.

    Qualified file transfer with parameter FUNCTION(*PUT) and FUNCTION(*GET) was an easy task and can also be called within a CL... BUT

    - I should send multiple files with generic file names (e.g. all files put_file* from IFS directory IFS/Temp/ to sFTP directory ReceiveData/ )
    - I should get multiple files with generic file names (e.g. all files get_file* from SFTP directory SendData/ to IFS directory IFS/Temp/)
    - I should rename files on the SFTP Server (e.g. putting a file sent_file.tmp and then rename to sent_file.dat)
    - I shuold move file(s) on the SFTP server after getting the file(s) from a diretory to another one (e.g. after getting file(s) from SFTP directory ReceiveData/ moving to ReceiveData/Archive/

    All the above mentioned actions I think should be possible to perform by using the Parameter FUNCTION(*CMD) and with the command line - bot how?

    Any idea how these transfers can be done? Thanks a lot

    Regards,
    Stephan

  • #2
    Hi,
    I got my problem resolved - thanks to my RPG-buddy!
    FUNTION(*CMD) is used to handle this pretty well with the command line for e.g. RMTCMD('mget /sFTPdirectory/SendData/get_file*.* /IFSdirectory/Temp/')

    Only the verification of success or not is still a bit doutful as the log file e.g. LOGDIR('IFS/MyLog.txt') ist not very easy to decipher.

    Thank you any way!

    Regards,
    Stephan

    Comment

    Working...
    X