Thanks for the idea - what I'm trying to avoid is copying (cp) the z/OS dataset 
to OMVS unless it has changed by comparing it's hash to the hash of the OMVS 
copy.  Guess either way a copy will have to be done so I might as well just 
copy the z/OS to OMVS regardless.


Lionel B. Dyck <sdg><
Website: http://www.lbdsoftware.com

"Worry more about your character than your reputation.  Character is what you 
are, reputation merely what others think you are." - John Wooden

-----Original Message-----
From: IBM Mainframe Discussion List <[email protected]> On Behalf Of Al 
Ferguson
Sent: Sunday, January 12, 2020 2:49 PM
To: [email protected]
Subject: Re: Using OMVS cksum with z/OS datasets

Lionel,

Access to MVS Files from OMVS via "//‘your.filename.goes.here’” only works for 
some commands. Pre-Allocated DD’s are not available to the OMVS thread 
(usually). But you might try a stream … try

        [cat | cp] "//‘your.filename.goes.here’” | cksum 

I believe you can cat (copy to stdout) or cp (copy to stdout) using the 
"//‘your.filename.goes.here’” format. And then Pipe it to “cksum”. In this case 
I do not think you will see a major performance hit (as you are tossing out the 
copy anyway). Try both and pick the best performing one.


_______________

Al Ferguson       | mailto:[email protected]
Milwaukee, WI USA |   http://www.neptunescove.org

Dulcius ex Asperis

> On 12 January 2020, at 14:34, Lionel B Dyck <[email protected]> wrote:
> 
> Is there a way to use the OMVS cksum command against a z/OS dataset?
> 
> 
> 
> I tried:  cksum "//'hlq.test.file'"
> 
> 
> 
> And it objects but it works great on OMVS files.
> 
> 
> 
> tia
> 
> 
> 
> 
> 
> Lionel B. Dyck <sdg><
> Website:  <http://www.lbdsoftware.com/> http://www.lbdsoftware.com
> 
> "Worry more about your character than your reputation.  Character is 
> what you are, reputation merely what others think you are." - John 
> Wooden
> 
> 
> 
> 
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions, send 
> email to [email protected] with the message: INFO IBM-MAIN
> 


----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
[email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to