The macdef is a macro. In the example, combines the PWD and the PUT in one 
command.  

In your case open an ftp client session:
  
    Type:
 
          Macdef lazy 

    and it will come back   

          
    Enter macro line by line, terminating it with a null line  
    
Enter the following:

      Runique
      get $1 $1
      <ENTER>  

Later  when you reopen the ftp session

   Type :$lazy  filename.filetype 
     

-----Original Message-----
From: Linux on 390 Port [mailto:[email protected]] On Behalf Of McKown, 
John
Sent: Wednesday, December 01, 2010 3:55 PM
To: [email protected]
Subject: Re: Need "unusual" Linux ftp client

Many thanks. I didn't really "get" what the macdef was about.

John McKown 

Systems Engineer IV

IT

 

Administrative Services Group

 

HealthMarkets(r)

 

9151 Boulevard 26 * N. Richland Hills * TX 76010

(817) 255-3225 phone * 

[email protected] * 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

 

> -----Original Message-----
> From: Linux on 390 Port [mailto:[email protected]] On 
> Behalf Of Paul Rogers
> Sent: Wednesday, December 01, 2010 2:36 PM
> To: [email protected]
> Subject: Re: Need "unusual" Linux ftp client
> 
> On Wed, Dec 1, 2010 at 1:57 PM, McKown, John
> <[email protected]> wrote:
> > I download data from z/OS. And I do it repetitively. 
> Basically, run a job on z/OS to generate a file. Download the 
> file. Process on Linux. Repeat. I do some intermediate work 
> on z/OS between runs. This work changes the output of the 
> job. I want to compare the output from the various runs. I 
> currently do this by starting up the Linux ftp client; do a 
> runique; then get the file. This results in the ftp client 
> creating a series of file on Linux with .1, .2, .3, and so 
> on. What I would like to do is not need to remember to do the 
> runique command, but have it be the client default. I cannot 
> change the z/OS ftp server's defaults. Well, I could, but I'd 
> catch you-know-what if I did. <grin>. Is there some way to 
> have the Linux ftp client do this for me? Why not just depend 
> on myself? Because I sometimes mess up. And it only takes 
> once to overwrite a file. Is there some other way to do this?
> 
> man netrc
> 
> $ cat .netrc
> machine zOS-hostname-or-ipaddress macdef init
> runique
> 
> $
> 
> > Oh, I guess that I could make an ftp step in the job with 
> an sunique and reverse the roles. However, I'm not actually 
> creating a file. I'm creating a SYSOUT report. And the z/OS 
> ftp server can then make that available to the Linux ftp 
> client. Saves me from creating the dataset and cleaning it up 
> later. I guess that I could do a GDG, but that's more of a 
> problem than I want to bother with. I'm lazy.
> 
> A lazy man is an efficient man!
> 
> Enjoy!
> 
> Paul
> 
> > John McKown
> > Systems Engineer IV
> > IT
> >
> > Administrative Services Group
> >
> > HealthMarkets(r)
> >
> > 9151 Boulevard 26 * N. Richland Hills * TX 76010
> > (817) 255-3225 phone *
> > [email protected] * 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 LINUX-390 subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO 
> LINUX-390 or visit
> http://www.marist.edu/htbin/wlvindex?LINUX-390
> ----------------------------------------------------------------------
> For more information on Linux on System z, visit
> http://wiki.linuxvm.org/
> 
> 
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/
Please consider the environment before printing this email.

Visit our website at http://www.nyse.com

****************************************************

Note:  The information contained in this message and any attachment to it is 
privileged, confidential and protected from disclosure.  If the reader of this 
message is not the intended recipient, or an employee or agent responsible for 
delivering this message to the intended recipient, you are hereby notified that 
any dissemination, distribution or copying of this communication is strictly 
prohibited.  If you have received this communication in error, please notify 
the sender immediately by replying to the message, and please delete it from 
your system.  Thank you.  NYSE Euronext.

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/

Reply via email to