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.
Can you please provide some code that would be helpful
Thanks
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.
Can you please provide some code that would be helpful
Thanks
First you would have to get a SFTP server running on the mainframe.
so i am presently using a ndm so for sftp do we need to have sftp running on those server??
if suppose i have a sftp server running on it then can you please give an example
someone please help out here its really very urgent
If ssh is not configured, there will be a password prompt. Following are the commands for sftp
sftp user@server
password:
put whicheverfile
quit
--ahamed
hi 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 ;
Yes, you have to have sftp running on those servers. Unless you expect ndm to somehow magically understand sftp.
Hi fpmurphy,
Thank you for your reply if suppose i have an sftp server running on the mainframe server can you please tell me what would be the changes for the below below code
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 ;
Presently i am using the above code for the ndm what i need to chage for sftp.
---------- Post updated 09-07-11 at 04:41 AM ---------- Previous update was 09-06-11 at 07:03 AM ----------
could someone please help me out with the script its really very urgent for me