John --

Not sure I fully understand, but sounds like you may get far using a little
shell pipes and either 'curl' or 'wget'.

'curl' writes a URL to standard output by default.  'wget' gets web files to
your current directory by default, but can write to stdout.  (I suppose you
could "get" to stdout with 'ftp', but I have found 'curl' and 'wget' to be
more forward moving.)  Obviously your URL would start with "ftp://";, so the
point is to move away from an FTP-only client to a general web client.

YOU MAY eventually not even use FTP on the z/OS box for the task you
describe.  I was going to suggest immediate use of HTTP there, but you
mentioned limits on how much you can change there (or ... limits on how much
you can change without getting your fingers chopped or pinched).  So that's
another reason for going with 'curl' or 'wget'.

Note that 'curl' also has a USS counterpart.  I don't believe I have ever
used it.

Now ... to the pipeline ...
With 'curl' or 'wget' the "file", which is really SYSOUT, becomes literally
"stdout" (of the web reader client).  Feed that through your choice of awk,
sed, grep and munge it any way you need to.  You could also wrap-up a couple
of pipelines into a single shell script, throw their output into temp files,
and maybe run 'diff' against them.

I hope this helps.

-- R;   <><
Rick Troth
Velocity Software
http://www.velocitysoftware.com/





On Wed, Dec 1, 2010 at 14:57, 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?
>
> 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.
>
> 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/

Reply via email to