Re: Using DFSORT over DCOLLECT to get dataset extent number

2022-09-29 Thread Jack Zukt
Thank you Kolusu,

I am going to try it,

Best Regards,
Jack

On Wed, 28 Sept 2022 at 14:20, Sri h Kolusu  wrote:

> >> I am using OUTREC IFTHEN=(WHEN=( I have been reading the DFSORT
> Application Programming Guide but I have not been finding what I need. As
> far as I can tell, as soon as one of the IFTHEN=(WHEN is met, all the
> others are ignored. So, how do I test different positions on a INREC/OUTREC
> statement?
>
> Jack,
>
> You need to use HIT=NEXT which Specifies that IFTHEN processing should
> continue even if the logical expression is true. By default (if HIT=NEXT is
> not specified), IFTHEN processing stops if the logical expression is true.
>
> Thanks,
> Kolusu
> DFSORT Development
> IBM Corporation
>
>
> --
> 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: Using DFSORT over DCOLLECT to get dataset extent number

2022-09-28 Thread Sri h Kolusu
>> I am using OUTREC IFTHEN=(WHEN=( I have been reading the DFSORT Application 
>> Programming Guide but I have not been finding what I need. As far as I can 
>> tell, as soon as one of the IFTHEN=(WHEN is met, all the others are ignored. 
>> So, how do I test different positions on a INREC/OUTREC statement?

Jack,

You need to use HIT=NEXT which Specifies that IFTHEN processing should continue 
even if the logical expression is true. By default (if HIT=NEXT is not 
specified), IFTHEN processing stops if the logical expression is true.

Thanks,
Kolusu
DFSORT Development
IBM Corporation


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


Re: Using DFSORT over DCOLLECT to get dataset extent number

2022-09-28 Thread Jack Zukt
Hi,
I am trying to convert the DCOLLECT type "D" record fields  DCDDSORG and
DCDRECRD from its bits to a meaningful display (PS and VB, for instance). I
am using OUTREC IFTHEN=(WHEN=(
I have been reading the DFSORT Application Programming Guide but I have not
been finding what I need. As far as I can tell, as soon as one of the
IFTHEN=(WHEN is met, all the others are ignored. So, how do I test
different positions on a INREC/OUTREC statement?
Your help will be, as always, greatly aprecciated
Jack

On Fri, 23 Sept 2022 at 09:24, Mike Schwab  wrote:

> Yes.  There are Unpack field types to do this.
>
> On Fri, Sep 23, 2022 at 2:59 AM Jack Zukt  wrote:
> >
> > Hi all,
> >
> > I have a rexx that reads a DCOLLECT output, processes the type "D"
> records
> > and creates a file with a list of datasets that have over 200 extents.
> As I
> > am using a SORT between the DCOLLECT and the rexx in order to have only
> the
> > type "D" records, I was wondering if it would be possible to process the
> > DCOLLECT output with DFSORT and get the same result.
> > My output file has this layout::
> >
> +1+2+3+4+5+6+7+8+9+
> > Data Set NameOrg Alloc  Used
> Perc%
> > #Extn  Lrecl RFM  Blksz
> > PROD.FILE.WORKPS  24423325   6105811
> 100.0%
> >  8599452  FB  27572
> > Thank you all for any suggestions
> > Regards
> > Jack
> >
> > --
> > For IBM-MAIN subscribe / signoff / archive access instructions,
> > send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
>
>
>
> --
> Mike A Schwab, Springfield IL USA
> Where do Forest Rangers go to get away from it all?
>
> --
> 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: Using DFSORT over DCOLLECT to get dataset extent number

2022-09-23 Thread Mike Schwab
Yes.  There are Unpack field types to do this.

On Fri, Sep 23, 2022 at 2:59 AM Jack Zukt  wrote:
>
> Hi all,
>
> I have a rexx that reads a DCOLLECT output, processes the type "D" records
> and creates a file with a list of datasets that have over 200 extents. As I
> am using a SORT between the DCOLLECT and the rexx in order to have only the
> type "D" records, I was wondering if it would be possible to process the
> DCOLLECT output with DFSORT and get the same result.
> My output file has this layout::
> +1+2+3+4+5+6+7+8+9+
> Data Set NameOrg Alloc  Used  Perc%
> #Extn  Lrecl RFM  Blksz
> PROD.FILE.WORKPS  24423325   6105811 100.0%
>  8599452  FB  27572
> Thank you all for any suggestions
> Regards
> Jack
>
> --
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN



-- 
Mike A Schwab, Springfield IL USA
Where do Forest Rangers go to get away from it all?

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


Using DFSORT over DCOLLECT to get dataset extent number

2022-09-23 Thread Jack Zukt
Hi all,

I have a rexx that reads a DCOLLECT output, processes the type "D" records
and creates a file with a list of datasets that have over 200 extents. As I
am using a SORT between the DCOLLECT and the rexx in order to have only the
type "D" records, I was wondering if it would be possible to process the
DCOLLECT output with DFSORT and get the same result.
My output file has this layout::
+1+2+3+4+5+6+7+8+9+
Data Set NameOrg Alloc  Used  Perc%
#Extn  Lrecl RFM  Blksz
PROD.FILE.WORKPS  24423325   6105811 100.0%
 8599452  FB  27572
Thank you all for any suggestions
Regards
Jack

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