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

FTP: Tape to Tape


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

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Thu Apr 22, 2010 2:34 pm
Reply with quote

Hi,

I am trying to FTP a tape file to a Tape.
I used the below FTP job.

Code:
//XXXXX    EXEC PGM=FTP,REGION=2M,PARM='(EXIT TIMEOUT 900'       
//SYSFTPD  DD DISP=SHR,DSN=some dataset   
//SYSTCPD  DD DISP=SHR,DSN=another dataset
//FILEIN   DD DSN=XXXXX.YYYYY.ZXZZZ,DISP=SHR                             
//SYSPRINT  DD SYSOUT=*                                         
//OUTPUT   DD  SYSOUT=*                                         
//SYSPRINT DD  SYSOUT=*                                         
//INPUT    DD  *                                                 
DESTINATION ADDRESS                                 
USER ID                                                         
PASSWORD                                                         
LOCSTAT                                                         
STAT                                                             
SITE RECFM=VB LRECL=512 BLKSIZE=0                               
SITE UNIT=CART                                                   
SITE DATAC=TAPEVTS STOR=TAPEVTS                                 
BINARY                                                           
PUT //DD:FILEIN 'DESTINATION TAPE'             
CL                                                               
QUIT                                                             
/*                                                               

But the job gives an error
Code:
.EZA1736I PUT //DD:FILEIN 'DESTINATION TAPE'
.EZA1685W Invalid local file identifier



The JCL DD statement excuted fine and there was no DATASET NOT FOUND JCL ERROR. But the FTP was unable to recognise the dataset.

When tried PUT 'XXXXX.YYYYY.ZXZZZ' 'DESTINATION TAPE' the error message was

Code:
.EZA2324I 'XXXXX.YYYYY.ZXZZZ' is not on a direct access volume.
.EZA1684W Local file not found.


How can the FTP be asked to refer tape volumes.?

Could you please shed some light on this.

P.S - The input tape cannot be copied to DASD as its a pretty big dataset.
Thanks,
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Apr 22, 2010 4:11 pm
Reply with quote

I vaguely, and I do mean a few years ago recall that the AUTOMOUNT parameter was needed for a tape input file.

Although things may well have changed, it is the only thing that I can think of.
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Thu Apr 22, 2010 4:29 pm
Reply with quote

Thanks for responding.

The STAT command has the below log output,

Code:
.EZA1701I >>>STAT                                                       
.211-Server FTP talking to host ::ffff:xxxxxxxxx, port 19923         
.211-User: yyyyyyy  Working directory: yyyyyyy.                         
.211-The control connection has transferred 122 bytes                   
.211-There is no current data connection.                               
.211-The next data connection will be actively opened                   
.211-to host ::ffff:xxxxxxx, port 19923,                           
.211-using Mode Stream, Structure File, type ASCII, byte-size 8         
.211-Automatic recall of migrated data sets.                           
.211-Automatic mount of direct access volumes.                         
.211-Auto tape mount is allowed.                                       
.211-Inactivity timer is set to 300                                     
.211-Timer FTPKEEPALIVE is set to 60                                   
.211-Timer FIFOOPENTIME is set to 60                                   
.211-Timer FIFOIOTIME is set to 20



The log says Automatic tape mount is allowed though icon_eek.gif
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Thu Apr 22, 2010 4:55 pm
Reply with quote

Also the SYSFTPD DD has the configuration,

Code:
AUTOTAPEMOUNT TRUE            ; automatic mount of TAPE volumes   


Still the same failure sterb050.gif
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu Apr 22, 2010 4:59 pm
Reply with quote

Code:
PUT //DD:


Is your z/OS release level high enough to support this function?
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Thu Apr 22, 2010 5:21 pm
Reply with quote

Kevin,
Thanks for responding.

We have
Code:
ZOS390RL S N z/OS   01.09.00


Not sure if this is good enough though. icon_confused.gif

Is the command support related to FTP version rather than Z/OS version?


Thanks,
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Thu Apr 22, 2010 5:46 pm
Reply with quote

You need to consult with your site support group -- there may be a security problem preventing FTP from accessing tape drives, or the issue may be something else entirely. I've done FTP from a tape before so I know it can be done.
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 Deleting a Tape file JCL & VSAM 14
No new posts JCL and TAPE drives: how to maximize ... JCL & VSAM 9
No new posts ADR324E-VOL/DATASET SPECIFIED BY DDNA... JCL & VSAM 6
No new posts Record count of RECFM=U tape file DFSORT/ICETOOL 17
No new posts Using Virtual Tape Server TS7700 as c... All Other Mainframe Topics 0
Search our Forums:

Back to Top