Set DCB attributes

Discussion of Co:Z sftp, a port of OpenSSH sftp for z/OS
Post Reply
Steve.Harman
Posts: 9
Joined: Fri Jun 15, 2012 6:54 am

Set DCB attributes

Post by Steve.Harman »

Sorry, I'm pretty new to Co:Z... I'm wondering if it's possible to use the SFTPPROC to transfer from an MVS dataset to another system MVS dataset. Well, actually I know it's possible to do that, but how do I override the DCB attributes on the receiving side where the new file is created?

I always seem to get the defaults, like recfm=u and I want recfm=fb.

Thanks for any pointers.
Steve.Harman
Posts: 9
Joined: Fri Jun 15, 2012 6:54 am

Re: Set DCB attributes

Post by Steve.Harman »

I got a job to work, probably not the most elegant solution:

//SFTPIN DD *
pwdsn="@DVG143.HARM.JCL(ATPW)"
user=@DVG143
host=MVS9
. $script_dir/sftp_connect.sh << EOB
ls /+mode=text
ls /+recfm=fb
ls /+lrecl=300
lcd //@DVG143
cd //@DVG143
put TEST.COZFB TEST.COZ123
EOB
/*
Post Reply