The use of CD works particularly well for Windows and UNIX files (including
HFS files). To PUT a file with a long Windows path name you might do

CD \SomeLongPathNamePartOne\PathNamePartTwo
CD SomeMoreOfThePathName\StillMoreLongPath\AndMore
CD StillMore\TheFinalPartOfThePathName
PUT MVS.DATASET.NAME WindowsFile.Ext

Be careful where you do and do not use leading slashes in the Windows file
specification.

You may want to test with interactive TSO FTP first to make sure you are
getting it right.

The entire path name (\SomeLongPath...\WindowsFile.Ext) would never have fit
on one card, and to my knowledge, you can only continue (split, in other
words) an FTP command between operands (between the command and the first
file name, or between the first and second file names, e.g.). Does anyone
know that you can split a single operand?

Charles



-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf
Of Gray, Larry - Larry A
Sent: Wednesday, October 12, 2005 10:52 AM
To: [email protected]
Subject: Re: FTP continuation character


For the mainframe file, you can also reference the file as a DD name.
That drops you down to 11 characters max of the local file name.  

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On
Behalf Of Martin Kline
Sent: Wednesday, October 12, 2005 1:31 PM
To: [email protected]
Subject: Re: FTP continuation character


> I have a batch job that makes an FTP from the Mainframe (acting as
> FTP client) to a Windows machine (acting as FTP server).
> It works fine, but because of the file names being very long,
> the 72 limit of JCL is insufficient.

Try using the CD and LCD FTP commands to get to the lower level
qualifier.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to