Page 1 of 1

FTPing to a dataset with specific paramters

PostPosted: Mon Mar 11, 2013 1:01 am
by TheSilverFox
Hi everyone,

I'm currently using FTP+ with connect direct, and i'm trying to FTP a text file thats in a unix directory structure to a dataset with specific dcb parameters(Fixed Block with 80 LRECL)...



How would I do this?

The way i do the put is:

PUT /user/silverfox/test.txt "'MY.FIRST.DATASET""

With the unix file being the source file and the dataset being the destination file.

If anyone has done something similar...For the destination file, where would i specify the DCB Parameters?

Re: FTPing to a dataset with specific paramters

PostPosted: Mon Mar 11, 2013 1:55 am
by steve-myers
FTP+ and "connect direct" may queer this, but ... with "standard" FTP you have two options -
  1. Pre allocate the target dataset on the MVS systen with the DCB attributes you want OR
  2. Use the SITE FTP command as discussed in "Comm Svr: IP User's Guide and Commands" for your z/OS release to define the DCB parameters for the target data set.
Personally, I prefer the first option.

Re: FTPing to a dataset with specific paramters

PostPosted: Mon Mar 11, 2013 2:05 am
by TheSilverFox
Thank you very much for your response. :) The first option i was able to do but we were trying to create datasets on the fly hence the second option.