FTPing to a dataset with specific paramters



IBM OS/370, MVS, OS/390, Linux, TPF, VM/CMS, VM/ESA, VSE/ESA, z/VM, z/VSE, z/OS, z/OS.e etc...

FTPing to a dataset with specific paramters

Postby TheSilverFox » Mon Mar 11, 2013 1:01 am

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?
TheSilverFox
 
Posts: 12
Joined: Wed Nov 28, 2012 10:42 pm
Has thanked: 0 time
Been thanked: 0 time

Re: FTPing to a dataset with specific paramters

 

Re: FTPing to a dataset with specific paramters

Postby steve-myers » Mon Mar 11, 2013 1:55 am

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.
steve-myers
Global moderator
 
Posts: 2041
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 221 times

Re: FTPing to a dataset with specific paramters

Postby TheSilverFox » Mon Mar 11, 2013 2:05 am

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.
TheSilverFox
 
Posts: 12
Joined: Wed Nov 28, 2012 10:42 pm
Has thanked: 0 time
Been thanked: 0 time


Return to Operating Systems

 


  • Related topics
    Replies
    Views
    Last post