Managed File Transfer

Sterling Managed File Transfer

Come for answers, stay for best practices. All we're missing is you.


#Sterling
#Supplychain
 View Only
  • 1.  File Transfer between two folders using CD server

    Posted 08/25/23 11:26 AM

    Can Connect direct move file from one folder to another?

    Both these folders are mounted to this CD server.

    We have to keep track of all the file movements between both these folders and hence we are considering Connect direct.



    ------------------------------
    Meenakshi Shukla
    ------------------------------


  • 2.  RE: File Transfer between two folders using CD server

    Posted 08/28/23 05:01 AM

    Yes, you could submit a PNODE-SNODE process with a local RUN TASK step. In the RUN TASK step, issue a CMD(move ~"srcfile~" ~"destfile~") command to move the file, same as you would do on a CMD command line. The additional ~" at the begining and end of each file name will wrap it within double quotes, in case the file contains spaces.

    Though, I would find it a bit odd to use CD for moving local files.



    ------------------------------
    Volker Friedrich
    ------------------------------



  • 3.  RE: File Transfer between two folders using CD server

    Posted 08/29/23 08:32 AM

    Hello Volker

    Thanks for the reply!

    Forgot to mention, this is to move files from one network share folder to another network share folder.



    ------------------------------
    Meenakshi Shukla
    ------------------------------



  • 4.  RE: File Transfer between two folders using CD server

    Posted 08/31/23 10:31 AM

    Hello Meenakshi,

    if your files are on different servers, then ideally you want to have Connect:Direct installed on both servers and let it do the file transfer over the network. This is what Connect:Direct is for.



    ------------------------------
    Volker Friedrich
    ------------------------------



  • 5.  RE: File Transfer between two folders using CD server

    Posted 08/28/23 09:00 PM

    See this example

    /* BEGIN_REQUESTER_COMMENTS
       $PNODE$='CD_LINUX' $PNODE_OS$='UNIX'
       $SNODE$='VM_SI_CD' $SNODE_OS$='UNIX'
       $OPTIONS$=''
       END_REQUESTER_COMMENTS*/
    
    COPY2SFG PROCESS
    SNODE=VM_SI_CD
    SNODEID=(demo_drjohndoe,passw0rd)
    
    CPY0 COPY
      FROM (
        FILE='/tmp/test01.txt'
        PNODE
      )
      TO (
        FILE='/newserver/test01.txt'
        SNODE
        DISP=RPL
      )
    
    IFCPY0 IF (CPY0 EQ 0) THEN
      RUN TASK PNODE SYSOPTS='mv /tmp/test01.txt /tmp/test01.txt.delete'
    EIF



    ------------------------------
    ENIO RUBENS BASSO
    ------------------------------



  • 6.  RE: File Transfer between two folders using CD server

    Posted 08/29/23 08:30 AM

    Hello Enio,

    Thanks for the reply!

    This is to move files from one network share folder to another network share folder.



    ------------------------------
    Meenakshi Shukla
    ------------------------------