But, do I get a VSAM file on the other end :) ??

Dave Gibney
Information Technology Services
Washington State University


> -----Original Message-----
> From: IBM Mainframe Discussion List [mailto:[email protected]] On
> Behalf Of Frank Swarbrick
> Sent: Thursday, March 26, 2009 4:31 PM
> To: [email protected]
> Subject: FTP of VSAM file
> 
> Did you know that, in some circumstances you *can* FTP a VSAM file?
> Use "DD name support".  See the following:
> 
> //FTP1     JOB CLASS=A,MSGCLASS=X,NOTIFY=&SYSUID
> //EXEC     EXEC FTP,SERVER=10.1.112.95
> //FTP.INPUT DD DISP=SHR,DSN=FJS.WORK.FTPDATA(PEPVSE)
> //         DD *
> cd inetcat
> structure record
> binary
> get ach.prod.ksds.achtotl //DD:ACHTOTL
> quit
> /*
> //ACHTOTL  DD DISP=OLD,DSN=FJS.VSAM.ACHTOTL
> 
> FJS.VSAM.ACHTOTL is a KSDS.  I can't see that it's documented anywhere
> that this works, but it does in fact work.
> 
> Maybe you all knew this, but I've seen many statements that FTP does
> not
> support VSAM.  And doing it most other ways it does not.
> 
> Frank
> 
> BTW, this is my FTP proc:
> //FTP       PROC PORT=,
> //            AUTH=,
> //            FTPDATA=,
> //            EXIT='-e',
> //            TIMEOUT='-w 20'
> //FTP       EXEC PGM=FTP,REGION=0M,
> //            PARM='&FTPDATA &AUTH &EXIT &TIMEOUT &SERVER &PORT'
> //          PEND
> 
> ----------------------------------------------------------------------
> 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

----------------------------------------------------------------------
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