We are using cozbatch for sftp of a text file from the mainframe(client) to a windows sftp server. The spaces(hex 40) at the end of the file are getting dropped. I thought using the option NOtrim would have kept the spaces at the end of the record. Any help is appreciated, thanks.
I also tried to use the pad option but could not get the format correct. cozsftp> lzopts mode=text,pad=40 mode=text ?pad=40 cozsftp> lzopts mode=text,pad(40) mode=text ?pad(40) CD CS_Letters/OSLOS lzopts mode=text,NOtrim PUT //P.PNPAAW20.NPAA15.NPDO001 mdazzo_junk.txt QUIT cozsftp> lzopts mode=binary,servercp=ISO8859-1,mount mode=binary mount servercp=ISO8859-1 cozsftp> CD CS_Letters/OSLOS cozsftp> lzopts mode=text,NOtrim mode=text NOtrim cozsftp> lzopts -a clientcp=IBM-1047 conddisp=catlg estsize jeslrecl=80 jesowner=ST1MAT jesrecfm=f jesstatus=* loglevel=I mode=text mount replace servercp=ISO8859-1 smf NOblksize NObufno NOcopies NOdataclas NOdest NOdir NOdisp NOdsntype NOdsorg NOforms NOgdgnt NOhold NOjesblksize NOjesincsysin NOjesjobname NOjesjobwait NOlabel NOlike NOlinerule NOlrecl NOmaxcscnt NOmaxdsndirlevels NOmaxvol NOmgmtclas NOnorecall NOoutdes NOoverflow NOpad NOrecfm NOrelease NOreqexits NOreset NOretpd NOsequence NOshowall NOspace NOspin NOstorclas NOsysout NOtechnique NOtrim NOtrtab NOtrtch NOucount NOunit NOunixls NOvol NOwriter cozsftp> PUT //P.PNPAAW20.NPAA15.NPDO001 mdazzo_junk.txt Uploading //P.PNPAAW20.NPAA15.NPDO001 to /CS_Letters/OSLOS/mdazzo_junk.txt cozsftp> QUIT ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
