IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

FTP EBCDIC files to mainframe


IBM Mainframe Forums -> IBM Tools
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
dchristensen

New User


Joined: 26 Jul 2006
Posts: 30
Location: Des Moines, Iowa

PostPosted: Fri Sep 11, 2009 6:39 pm
Reply with quote

We're experimenting with trying to move long-term file archival from the mainframe to the LAN environment (Windows) to reduce costs. I can move fixed block files and smaller variable blocked files back and forth without issue. Note that we could have the need to move files back to the mainframe in order to execute recovery jobs, etc.

My problem comes when I try to FTP a large file back to the mainframe. If I just execute the command line FTP from my workstation, the transfer fails because I'm not able to set up the proper catalog entries needed to allocate enough space.

Does anyone know how to perform a workstation generated FTP operation that allocates appropriate space catalog entries on the mainframe?

Note that I've also tried to use the Micro Focus Drag N'Drop tool that is part of the Mainframe Access tools Micro Focus provides. While I can allocate the file, the Drag N Drop of the file from the LAN to the mainframe fails. Thus far, I haven't been able to use the tool to move the file.

For background information, the file DCB information is:
VB
LRECL = 15830
BLKSIZE=27998
TRK=35000
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Sep 11, 2009 7:10 pm
Reply with quote

You could either preallocate the data set before the FTP, or use QUOTE SITE to set the primary and secondary space allocations for the data set.
Back to top
View user's profile Send private message
dchristensen

New User


Joined: 26 Jul 2006
Posts: 30
Location: Des Moines, Iowa

PostPosted: Fri Sep 11, 2009 11:47 pm
Reply with quote

I was going to report that I'd discovered that the IBM FTP server allowed extensions to the SITE command (through use of QUOTE) that allow you to set record format, block size, record length, etc. THis material is located at:

publibz.boulder.ibm.com/epubs/pdf/f1a1b970.pdf

Thanks again, Robert.
Back to top
View user's profile Send private message
dchristensen

New User


Joined: 26 Jul 2006
Posts: 30
Location: Des Moines, Iowa

PostPosted: Fri Sep 11, 2009 11:48 pm
Reply with quote

I did try pre-allocating the dataset, but could not seem to get that to work. Not sure what I was not doing correctly, but the QUOTE SITE syntax worked out great.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Sep 11, 2009 11:50 pm
Reply with quote

Glad to hear you got it working, then! icon_smile.gif
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sat Sep 12, 2009 12:21 am
Reply with quote

Good to hear it is working - thanks for letting us know icon_smile.gif

Quote:
I did try pre-allocating the dataset, but could not seem to get that to work.
If you explain why this did not work, someone may be able to offer a suggestion.

So far, i've not had a correctly pre-allocated file fail. . .
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> IBM Tools

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 5
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Mainframe openings in Techmahnidra fo... Mainframe Jobs 0
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Compare only first records of the fil... SYNCSORT 7
Search our Forums:

Back to Top