IBM Sterling Data Exchange Connect: Network, learn, and share with experts in Sterling Data Exchange Join / Log in
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.
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.
Thanks for the reply!Forgot to mention, this is to move files from one network share folder to another network share folder.
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.
See this example
IFCPY0 IF (CPY0 EQ 0) THEN
RUN TASK PNODE SYSOPTS='mv /tmp/test01.txt /tmp/test01.txt.delete'
Thanks for the reply!This is to move files from one network share folder to another network share folder.
/* BEGIN_REQUESTER_COMMENTS $PNODE$='CD_LINUX' $PNODE_OS$='UNIX' $SNODE$='VM_SI_CD' $SNODE_OS$='UNIX' $OPTIONS$='' END_REQUESTER_COMMENTS*/COPY2SFG PROCESSSNODE=VM_SI_CDSNODEID=(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