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

FTP Parameters


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
bjr149

New User


Joined: 01 Jun 2005
Posts: 2

PostPosted: Tue Jun 14, 2005 8:30 pm
Reply with quote

Ok my ftp step works fine....

my control card has

*ip*
*user*
*pw*
put 'blah.blah' blah.txt
quit

what i need is the parameter so if the file already exists it will NOT overwrite it, anyone know it?
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Tue Jun 14, 2005 9:12 pm
Reply with quote

According to the "z/OS V1R6.0 CS:IP User's Guide and Commands":

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/F1A1B940/CCONTENTS?SHELF=EZ2ZO10E&DN=SC31-8780-04&DT=20040701154444

Section 5.69:

5.69 SUnique subcommand--Changes the storage method

Purpose

The SUnique subcommand changes the method of storing files on the foreign host.

Format

>> SUnique [On | Off] [NAME | NONAME] <<

Parameters

On
Turns on store unique.

Off
Turns off store unique.

NAME
When specified with ON or OFF, instructs the client to include a name when sending a store-unique command to the server.

NONAME
When specified with ON or OFF, instructs the client to omit a name when sending the store-unique command to the server.

Usage

By default, the SUnique setting is OFF NAME and FTP uses a store command (STOR) with the PUt and MPut subcommands. If the foreign host already has a data set or file with the name specified by foreign_file, the foreign host overwrites the existing data set or file.

If SUnique is set to ON, FTP uses a store-unique command (STOU) with the PUt and MPut subcommands and prevents you from overwriting or erasing the existing data set or file on the foreign host. If the default setting of NAME is in effect, a name string will be sent to the server with the store-unique command. The created foreign data set or file is stored with a unique name. FTP sends the unique name of the created foreign data set or file to the local host, where the data set or file name is displayed on your terminal.

SUnique with no parameters toggles the ON/OFF setting. If ON or OFF is specified, SUnique will be set to that value regardless of its current setting. The NAME/NONAME setting can be changed as SUnique is turned ON or OFF. It is in effect when SUnique is ON and does not change for the session until another NAME or NONAME setting is specified.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Passing Parameters to Programs Invoke... PL/I & Assembler 5
No new posts Injecting HTTPHEADER parameters in th... PL/I & Assembler 0
No new posts passing symbolic parameters through d... JCL & VSAM 3
No new posts Trim values of parameters in JCL JCL & VSAM 2
No new posts Alter User LOGON Script Parameters CLIST & REXX 11
Search our Forums:

Back to Top