PDS member to Unix System Services

Discussion of Co:Z sftp, a port of OpenSSH sftp for z/OS
Post Reply
zond2tmx
Posts: 8
Joined: Wed Aug 05, 2015 8:10 am

PDS member to Unix System Services

Post by zond2tmx »

Hello.

I am trying to send a PDS member from one LPAR to a directory in Unix System Services in another LPAR. When the file arrives in the destination directory there are no line breaks. The file is one long line. I've tried various combinations of linerule and lrecl but I can't get the file format properly. I'm certain I have set this up incorrectly. Any help would be greatly appreciated.

pwdsn="SYS2.USS.CNTL(COZPSWD)" # Password
user=ZOND2TMX # Userid
host=SYSJ.LIFECO.COM # Connect to SYSJ
lzopts="mode=text,clientcp=ISO8859-1,linerule=flexible"
lfile=//"ZOND2TMX.CLIST(RELDATEX)" # Send this file to SYSJ
rfile=/u/zondttmx/bin/scripts/reldate.rexx # Destination

. $script_dir/sftp_connect.sh <<EOB
lzopts $lzopts
put $lfile $rfile
EOB
coz
Posts: 391
Joined: Fri Jul 30, 2004 5:29 pm

Re: PDS member to Unix System Services

Post by coz »

Your options indicate that your source (client) data (in the PDS member) is in codepage ISO8859-1. Are you sure this is correct?

What source and destination codepages are you trying to specify?
zond2tmx
Posts: 8
Joined: Wed Aug 05, 2015 8:10 am

Re: PDS member to Unix System Services

Post by zond2tmx »

The code page is IBM-037. My mistake. Don't mind me; I'm an idiot.
Post Reply