Re: FTP option help

2010-10-05 Thread Larry Macioce
Well I was 180 degrees wrong. When I got a chance too look at the job here 
is waht I found:
GET FROM-WINBL-2010-05-24.TXT 'TEST.YYY.WWHSINBX' (REPLACE
So we are gettin the file from windows and putting it on the mainframe

mace

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


Re: FTP option help

2010-10-05 Thread McKown, John
 -Original Message-
 From: IBM Mainframe Discussion List 
 [mailto:ibm-m...@bama.ua.edu] On Behalf Of Larry Macioce
 Sent: Tuesday, October 05, 2010 7:01 AM
 To: IBM-MAIN@bama.ua.edu
 Subject: Re: FTP option help
 
 Well I was 180 degrees wrong. When I got a chance too look at 
 the job here 
 is waht I found:
 GET FROM-WINBL-2010-05-24.TXT 'TEST.YYY.WWHSINBX' (REPLACE
 So we are gettin the file from windows and putting it on the mainframe
 
 mace

Ah! You want to MOD onto the mainframe. I'd try:

//FTP EXEC PGM=FTP,PARM='(EXIT'
//SYSPRINT DD SYSOUT=*
//OUTPUT DD SYSOUT=*
//INPUT DD *
windows-server
userid
password
GET FROM-WINBL-2010-05-25.TXT //DD:FILEO
/*
//FILEO DD DISP=(MOD,CATLG),DSN=TEST.YYY.WWHSINBX,
//* OTHER JCL TO CREATE DSN IF IT DOESN'T EXIST.
//

--
John McKown 
Systems Engineer IV
IT

Administrative Services Group

HealthMarkets(r)

9151 Boulevard 26 * N. Richland Hills * TX 76010
(817) 255-3225 phone * (817)-691-6183 cell
john.mck...@healthmarkets.com * www.HealthMarkets.com

Confidentiality Notice: This e-mail message may contain confidential or 
proprietary information. If you are not the intended recipient, please contact 
the sender by reply e-mail and destroy all copies of the original message. 
HealthMarkets(r) is the brand name for products underwritten and issued by the 
insurance subsidiaries of HealthMarkets, Inc. -The Chesapeake Life Insurance 
Company(r), Mid-West National Life Insurance Company of TennesseeSM and The 
MEGA Life and Health Insurance Company.SM

 

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


Re: FTP option help

2010-10-04 Thread Greg Shirey
What syntax did you give them?  

Here's what I see when I request help for the PUT command on my
mainframe system: 
help put 
 EZA1574I Usage : PUT localfile foreignname
 EZA1575Isend localfile to remote host and store as foreignname  

I don't see any option for replace or append. 

Greg Shirey
Ben E. Keith Company 

-Original Message-
From: IBM Mainframe Discussion List On Behalf Of Larry Macioce
Sent: Monday, October 04, 2010 1:35 PM
To: IBM-MAIN@bama.ua.edu
Subject: FTP option help

We ftp a file form the mainframe to a windows box,that is the easy part.
My app dev folks want to append the file instead of replace, so I have
them 
try append in place of replace..nope
and then they try a few more things and nothing works, so I go online
and 
look.
I give them the syntax append local file remote file and think I am
done.
I get back form lunch only to find out nope again doesn't work.
Could someone please help me out?? I know you can so would someone
please 
help me out?

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


Re: FTP option help

2010-10-04 Thread Starr, Alan
Mace,

I'm assuming that you're using a z/OS FTP client to put into a Windows server 
(perhaps IIS). If you cannot get the append subcommand to work (and I believe 
that it should), the following subcommands may work instead:


put z/OS-file-name   temporary-file-name

!type temporary-file-name  permanent-file-name

delete temporary-file-name


Note that permanent-file-name is the file to which the data is to be appended.

Cheers,
Alan
  

-Original Message-
From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of 
Larry Macioce
Sent: Monday, October 04, 2010 11:35
To: IBM-MAIN@bama.ua.edu
Subject: FTP option help

We ftp a file form the mainframe to a windows box,that is the easy part.
My app dev folks want to append the file instead of replace, so I have them try 
append in place of replace..nope and then they try a few more things and 
nothing works, so I go online and look.
I give them the syntax append local file remote file and think I am done.
I get back form lunch only to find out nope again doesn't work.
Could someone please help me out?? I know you can so would someone please help 
me out?
thanks
Mace

--
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
lists...@bama.ua.edu 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 lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


Re: FTP option help

2010-10-04 Thread McKown, John
APPEND localfile remotefile

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/f1a1b990/5.3

quote
 Purpose

Use the APpend subcommand to append a local data set to a remote host.

Format

Click here to display pages in Accessible mode


__APpend__local_data_set__destination_file

Parameters

local_data_set
The name of the data set on your local host to be appended.

destination_file
The name of the file on the remote host to which your data set is appended. 
If the destination file does not already exist at the remote host, a new file 
is created. If the server is a z/OS UNIX server, the local file can be appended 
to a z/OS UNIX file or an MVS data set.

/quote

--
John McKown 
Systems Engineer IV
IT

Administrative Services Group

HealthMarkets(r)

9151 Boulevard 26 * N. Richland Hills * TX 76010
(817) 255-3225 phone * (817)-691-6183 cell
john.mck...@healthmarkets.com * www.HealthMarkets.com

Confidentiality Notice: This e-mail message may contain confidential or 
proprietary information. If you are not the intended recipient, please contact 
the sender by reply e-mail and destroy all copies of the original message. 
HealthMarkets(r) is the brand name for products underwritten and issued by the 
insurance subsidiaries of HealthMarkets, Inc. -The Chesapeake Life Insurance 
Company(r), Mid-West National Life Insurance Company of TennesseeSM and The 
MEGA Life and Health Insurance Company.SM

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


Re: FTP option help

2010-10-04 Thread Starr, Alan
OOPS! Sorry, I forgot that the ! subcommand must be prefixed with quote to 
get Windows to execute it:


quote !type temporary-file-name  permanent-file-name



As I already said, it's an alternative to use only if you can't get append to 
do what you want.

  

-Original Message-
From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of 
Larry Macioce
Sent: Monday, October 04, 2010 11:35
To: IBM-MAIN@bama.ua.edu
Subject: FTP option help

We ftp a file form the mainframe to a windows box,that is the easy part.
My app dev folks want to append the file instead of replace, so I have them try 
append in place of replace..nope and then they try a few more things and 
nothing works, so I go online and look.
I give them the syntax append local file remote file and think I am done.
I get back form lunch only to find out nope again doesn't work.
Could someone please help me out?? I know you can so would someone please help 
me out?
thanks
Mace

--
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
lists...@bama.ua.edu 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 lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html