D
dkmd_nielsen
I'm sure you don't get too many mainframe related questions. First the
code, then my blather.
f = Net::FTP.open("wouldntyou.liketoknow.com","anonymous")
f.chdir("'#{prj.mainframe_prefix}'")
f.site("LOCSITE BLOCKS BLKSIZE=0 LRECL=124 RECFM=FB PRIMARY=500
SECONDARY=500")
f.puttextfile("#{prj.networkfolder}\\#{prj.deptrun}_flc_cards.txt","FLC")
f.site("LOCSITE BLOCKS BLKSIZE=0 LRECL=60 RECFM=FB PRIMARY=500
SECONDARY=500")
f.puttextfile("#{prj.networkfolder}\\#{prj.deptrun}_flc_cards.txt","PRTY")
f.close
I'm attempting to ftp a network based text file to the mainframe (ascii
to ebcdic). Everything operates without error, but only the first
record of the file is transmitted. I added a code block to the
puttextfile function and a puts to display everything being sent. Yep,
just one line. Each text line does have a CRLF at the end. I tried it
without the CRLF. That was no go, too.
I tried setting TYPE A and then using just put. put sent the file
binary, anyway. But atleast the binary gobbldee gook appears to have
sent all the records.
Your thoughts are appreciated,
dvn - I've googled everything I can possibly think of.
dvn
code, then my blather.
f = Net::FTP.open("wouldntyou.liketoknow.com","anonymous")
f.chdir("'#{prj.mainframe_prefix}'")
f.site("LOCSITE BLOCKS BLKSIZE=0 LRECL=124 RECFM=FB PRIMARY=500
SECONDARY=500")
f.puttextfile("#{prj.networkfolder}\\#{prj.deptrun}_flc_cards.txt","FLC")
f.site("LOCSITE BLOCKS BLKSIZE=0 LRECL=60 RECFM=FB PRIMARY=500
SECONDARY=500")
f.puttextfile("#{prj.networkfolder}\\#{prj.deptrun}_flc_cards.txt","PRTY")
f.close
I'm attempting to ftp a network based text file to the mainframe (ascii
to ebcdic). Everything operates without error, but only the first
record of the file is transmitted. I added a code block to the
puttextfile function and a puts to display everything being sent. Yep,
just one line. Each text line does have a CRLF at the end. I tried it
without the CRLF. That was no go, too.
I tried setting TYPE A and then using just put. put sent the file
binary, anyway. But atleast the binary gobbldee gook appears to have
sent all the records.
Your thoughts are appreciated,
dvn - I've googled everything I can possibly think of.
dvn