lucky4u27
2011-09-07, 07:45
HI all
I need a script that would take the file from a mainframe to another server.Presently i am using a ndm but i am not knowing what the changes would be required to change to sftp.
i have given the script i use to do using ndm please mention me as what all do i need to change to change it to sftp
submit copyfile process snode=NDM.ab snodeid=(cd,ef) class=1
stepa copy from (file=gh.ij.kl(0)
disp=(SHR,KEEP)
sysopts="mgmtclas=SLOB,dataclas=SIZE1"
snode )
to (file=/u/scripts/kl.$1
sysopts="datatype=text:"
pnode
)
stepb copy from (file=gh.ij.mn(0)
disp=(SHR,KEEP)
sysopts="mgmtclas=SLOB,dataclas=SIZE1"
snode )
to (file=/u/scripts/mn.$1
sysopts="datatype=text:"
pnode
)
pend ;
Can you please provide some code that would be helpful
I need a script that would take the file from a mainframe to another server.Presently i am using a ndm but i am not knowing what the changes would be required to change to sftp.
i have given the script i use to do using ndm please mention me as what all do i need to change to change it to sftp
submit copyfile process snode=NDM.ab snodeid=(cd,ef) class=1
stepa copy from (file=gh.ij.kl(0)
disp=(SHR,KEEP)
sysopts="mgmtclas=SLOB,dataclas=SIZE1"
snode )
to (file=/u/scripts/kl.$1
sysopts="datatype=text:"
pnode
)
stepb copy from (file=gh.ij.mn(0)
disp=(SHR,KEEP)
sysopts="mgmtclas=SLOB,dataclas=SIZE1"
snode )
to (file=/u/scripts/mn.$1
sysopts="datatype=text:"
pnode
)
pend ;
Can you please provide some code that would be helpful