Page 2 of 3

Re: Batch utility for =3.4 ?

PostPosted: Fri Oct 12, 2012 1:38 am
by dick scherrer
Hello,

You might look into using the LISTPDS function of IEHLIST.

There is also a free-standing utility called PDSLIST that may do what you want (if it is installed on your system).

Re: Batch utility for =3.4 ?

PostPosted: Fri Oct 12, 2012 1:52 am
by c62ap90
Akatsukami wrote:Obviously an option field is not going to be useful to you in the batch environment. Otherwise, however, I suggest that you do an IDCAMS LISTCAT on the entries of interest, and then massage that output into your desired format with the language of your choice.


A LISTCAT "batch utility process" job will only give you information about a 'dataset' but nothing about the 'members'. I'm trying to find a "batch utility process" job that will list a PDS dataset 'members' attributes; Name, Size, Created, Changed, ID, etc.

...but thanks for the reply.

Re: Batch utility for =3.4 ?

PostPosted: Fri Oct 12, 2012 2:02 am
by c62ap90
dick scherrer wrote:Hello,

You might look into using the LISTPDS function of IEHLIST.

There is also a free-standing utility called PDSLIST that may do what you want (if it is installed on your system).


Actually, I did run IEHLIST with LISTPDS but that gave me only attribute Members but no attributes like Size, Created, Changed, and ID (=3.4 attributes).

Thanks.

Re: Batch utility for =3.4 ?

PostPosted: Fri Oct 12, 2012 2:02 am
by Akatsukami
c62ap90 wrote:
Akatsukami wrote:Obviously an option field is not going to be useful to you in the batch environment. Otherwise, however, I suggest that you do an IDCAMS LISTCAT on the entries of interest, and then massage that output into your desired format with the language of your choice.


A LISTCAT "batch utility process" job will only give you information about a 'dataset' but nothing about the 'members'. I'm trying to find a "batch utility process" job that will list a PDS dataset 'members' attributes; Name, Size, Created, Changed, ID, etc.

This had not been entirely clear from your initial post. However, the LMMLIST services will return the ISPF user statistics in a library's directory (if they exist; I presume that you know that they are maintained by ISPF itself, not by MVS). I suggest, then, a program that invokes LMMLIST (and other necessary services) that is run under background ISPF.

Re: Batch utility for =3.4 ?

PostPosted: Fri Oct 12, 2012 2:10 am
by c62ap90
Akatsukami wrote:
c62ap90 wrote:
Akatsukami wrote:Obviously an option field is not going to be useful to you in the batch environment. Otherwise, however, I suggest that you do an IDCAMS LISTCAT on the entries of interest, and then massage that output into your desired format with the language of your choice.


A LISTCAT "batch utility process" job will only give you information about a 'dataset' but nothing about the 'members'. I'm trying to find a "batch utility process" job that will list a PDS dataset 'members' attributes; Name, Size, Created, Changed, ID, etc.

This had not been entirely clear from your initial post. However, the LMMLIST services will return the ISPF user statistics in a library's directory (if they exist; I presume that you know that they are maintained by ISPF itself, not by MVS). I suggest, then, a program that invokes LMMLIST (and other necessary services) that is run under background ISPF.


Thanks, I do more research from the link you provided for LMMLIST.
http://publib.boulder.ibm.com/infocente ... mmlist.htm

Re: Batch utility for =3.4 ?

PostPosted: Sat Oct 13, 2012 6:29 am
by steve-myers
In other words, you want a utility to produce output like
LIST SRC


SRC       XXXX25  XXXXXX.ASM

ADDSTATS  0000110F 01.00 08/03/11 08/03/11 07:42:20    282    282      0 XXXXXX

       60 directory entries
       11 used directory blocks
       15 allocated directory blocks


LIST LOAD


LOAD      XXXX08  XXXXXX.LOAD

$DYNPGM   0001072C 000002E8 00000000           0 ANY  31 RN RF RU
$PGMCALL  000107B1 000002E8 00000000 $DYNPGM   0 ANY  31 RN RF RU
$PGMDEL   000107B1 000002E8 00000000 $DYNPGM   0 ANY  31 RN RF RU
$PGMLOAD  000107B1 000002E8 00000000 $DYNPGM   0 ANY  31 RN RF RU
ABEND0C3  0034152C 00000010 00000000           0  24  24
ABPRT     00341C2C 00000080 00000000           0  24  24
ADDALIAS  00010E2C 00001000 00000000           0  24  24 RN RF RU

      206 directory entries
       33 used directory blocks
       50 allocated directory blocks

The SRC and LOAD text on the LIST command is a DD name.

Re: Batch utility for =3.4 ?

PostPosted: Sun Oct 14, 2012 11:22 pm
by c62ap90
steve-myers wrote:In other words, you want a utility to produce output like
LIST SRC


SRC       XXXX25  XXXXXX.ASM

ADDSTATS  0000110F 01.00 08/03/11 08/03/11 07:42:20    282    282      0 XXXXXX

       60 directory entries
       11 used directory blocks
       15 allocated directory blocks


LIST LOAD


LOAD      XXXX08  XXXXXX.LOAD

$DYNPGM   0001072C 000002E8 00000000           0 ANY  31 RN RF RU
$PGMCALL  000107B1 000002E8 00000000 $DYNPGM   0 ANY  31 RN RF RU
$PGMDEL   000107B1 000002E8 00000000 $DYNPGM   0 ANY  31 RN RF RU
$PGMLOAD  000107B1 000002E8 00000000 $DYNPGM   0 ANY  31 RN RF RU
ABEND0C3  0034152C 00000010 00000000           0  24  24
ABPRT     00341C2C 00000080 00000000           0  24  24
ADDALIAS  00010E2C 00001000 00000000           0  24  24 RN RF RU

      206 directory entries
       33 used directory blocks
       50 allocated directory blocks

The SRC and LOAD text on the LIST command is a DD name.


Yes, I'm looking for a batch utility process I can run that will give me the results comparable to TSO browsing in =3.4. - Name, Prompt, Size, Created, Changed, ID, etc.
Do you have or know of a batch job that will do this? Thanks.
BROWSE            PBCL.GYM.TEXT80                           Row 00001 of 00036
Command ===>                                                  Scroll ===> CSR 
           Name     Prompt       Size   Created          Changed          ID   
_________ #NOTES                    1  2012/08/15  2012/08/15 08:02:01  LIDO1QH

Re: Batch utility for =3.4 ?

PostPosted: Mon Oct 15, 2012 12:12 am
by steve-myers
One could write a batch program that would provide a data set list comparable to ISPF 3.4, but without the interaction, what would be the point?

Re: Batch utility for =3.4 ?

PostPosted: Mon Oct 15, 2012 1:12 am
by enrico-sorichetti
but without the interaction, what would be the point?

who the heck knows....
and who in heaven is ever going to look at the data for 79.000 members




and it works also for concatenated datasets
 000006 //ISP     EXEC PGM=IKJEFT1A,PARM='ISPSTART CMD(PDSLIST)'
 000007 //STEPLIB   DD DISP=SHR,DSN=ENRICO.ISPF.LOAD
 000008 //SYSPROC   DD DISP=SHR,DSN=ENRICO.ISPF.EXEC
 000009 //ISPPROF   DD DISP=(,PASS),DSN=&&ISPPROF,
 000010 //             UNIT=SYSDA,SPACE=(CYL,(2,0,44)),
 000011 //             DCB=(RECFM=FB,LRECL=80)
 000012 //ISPPLIB   DD DISP=SHR,DSN=ISP.SISPPENU
 000013 //ISPMLIB   DD DISP=SHR,DSN=ISP.SISPMENU
 000014 //ISPSLIB   DD DISP=SHR,DSN=ISP.SISPSLIB
 000015 //ISPTLIB   DD DISP=SHR,DSN=ISP.SISPTENU
 000016 //SYSPRINT  DD SYSOUT=*
 000017 //SYSTSPRT  DD SYSOUT=*
 000018 //SYSTSIN   DD DUMMY
 000019 //SYSLIB    DD DISP=SHR,DSN=ENRICO.ISPF.JCL
 000020 //          DD DISP=SHR,DSN=ENRICO.ISPF.EXEC


the unformatted output just to show the data for a FB/VB pds

MEMBER       $$SKEL
ZLCDATE      11/10/14
ZLCNORC         63
ZLC4DATE     2011/10/14
ZLINORC         62
ZLLIB        2
ZLLMU        PDF
ZLMDATE      12/10/10
ZLMNORC          0
ZLMOD        03
ZLMSEC       25
ZLMTIME      11:19
ZLM4DATE     2012/10/10
ZLUSER       ENRICO
ZLVERS       01
ZMEMCNT      00000043
ZSCLM        N
ZLLIB        2
ZMEMCNT      00000043


the same for a LOAD ( recfm U )

 000006 //ISP     EXEC PGM=IKJEFT1A,PARM='ISPSTART CMD(PDSLIST)'
 ==CHG> //STEPLIB   DD DISP=SHR,DSN=ENRICO.ISPF.LOAD
 000008 //SYSPROC   DD DISP=SHR,DSN=ENRICO.ISPF.EXEC
 000009 //ISPPROF   DD DISP=(,PASS),DSN=&&ISPPROF,
 000010 //             UNIT=SYSDA,SPACE=(CYL,(2,0,44)),
 000011 //             DCB=(RECFM=FB,LRECL=80)
 000012 //ISPPLIB   DD DISP=SHR,DSN=ISP.SISPPENU
 000013 //ISPMLIB   DD DISP=SHR,DSN=ISP.SISPMENU
 000014 //ISPSLIB   DD DISP=SHR,DSN=ISP.SISPSLIB
 000015 //ISPTLIB   DD DISP=SHR,DSN=ISP.SISPTENU
 000016 //SYSPRINT  DD SYSOUT=*
 000017 //SYSTSPRT  DD SYSOUT=*
 000018 //SYSTSIN   DD DUMMY
 000019 //SYSLIB    DD DISP=SHR,DSN=ENRICO.ISPF.LOAD

MEMBER       BR14
ZLLIB        1
ZMEMCNT      00000014
ZLAC         00
ZLALIAS
ZLAMODE       31
ZLATTR
ZLLIB        1
ZLRMODE      ANY
ZLSIZE       00000028
ZLSSI
ZLTTR        000435
ZMEMCNT      00000014


obviously once the info to be displayed has been chosen the data must be formatted on one line
took about 40 minutes to IPL, write, test, post

Re: Batch utility for =3.4 ?

PostPosted: Mon Oct 15, 2012 1:33 am
by c62ap90
enrico-sorichetti wrote:
but without the interaction, what would be the point?

who the heck knows....
and who in heaven is ever going to look at the data for 79.000 members


The batch job is going to "look" at the 79,000 members and from certain criteria I have (i.e. when PDS Member Changed and certain ID's) I will be reporting my results to my Leads.