Re: EMPTYTST program - Test if a non-VSAM dataset is empty

2018-02-05 Thread Anthony Google Babonas
Df/sort does this, various options to handle

GMAIL, via the "Mail" app for Windows 10

From: Jon Butler
Sent: Monday, February 5, 2018 12:26 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: EMPTYTST program - Test if a non-VSAM dataset is empty

I don't know the detail of what your module does, but you can do the same thing 
with IEBPTPCH.  Set the SYSIN to PUNCH MAXFLDS=1 and if the dataset is empty 
the RC=4; if it contains data the RC=0.

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: EMPTYTST program - Test if a non-VSAM dataset is empty

2018-02-05 Thread Jon Butler
I don't know the detail of what your module does, but you can do the same thing 
with IEBPTPCH.  Set the SYSIN to PUNCH MAXFLDS=1 and if the dataset is empty 
the RC=4; if it contains data the RC=0.

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


EMPTYTST program - Test if a non-VSAM dataset is empty

2018-02-01 Thread Sam Golob

Hi Folks,

    Because of some interest on this list, we just wrote a tool that 
might help people in long jobstreams.  It is called EMPTYTST and it is a 
batch program which can tell if a PS dataset or a PO member is empty or not.


    EMPTYTST uses SYSUT1 for the input dataset, and returns a code of 0 
if that dataset is not empty, a code of 4 if it is empty, and a code of 
8 if a pds member does not exist.  If the SYSUT1 DD name is missing, it 
returns a code of 12.


    EMPTYTST has two optional additional outputs--a WTO to the log, and 
a SYSPRINT output, either or both of which can help if you are looking 
through a long jobstream.


    EMPTYTST is on File 971 of the Updates page of www.cbttape.org and 
(of course) it is free.  All CBT Tape caveats and disclaimers apply, as 
with everything else in the CBT Tape collection.


    We hope it will help.

    All the best of everything to all of you.

Sincerely,    Sam

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN