Batch utility for =3.4 ?



Ask queries about other IBM Tools like Tivoli, COBTEST, Fault Analyzer, z/OS File Manager, Workload Simulator, APA, SCLM, Merge & Migration Tools etc...

Re: Batch utility for =3.4 ?

Postby dick scherrer » Fri Oct 12, 2012 1:38 am

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).
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Batch utility for =3.4 ?

Postby c62ap90 » Fri Oct 12, 2012 1:52 am

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.
c62ap90
 
Posts: 125
Joined: Thu Oct 11, 2012 10:24 pm
Has thanked: 1 time
Been thanked: 7 times

Re: Batch utility for =3.4 ?

Postby c62ap90 » Fri Oct 12, 2012 2:02 am

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.
c62ap90
 
Posts: 125
Joined: Thu Oct 11, 2012 10:24 pm
Has thanked: 1 time
Been thanked: 7 times

Re: Batch utility for =3.4 ?

Postby Akatsukami » Fri Oct 12, 2012 2:02 am

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.
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day

These users thanked the author Akatsukami for the post:
c62ap90 (Fri Oct 12, 2012 4:41 pm)
User avatar
Akatsukami
Global moderator
 
Posts: 1058
Joined: Sat Oct 16, 2010 2:31 am
Location: Bloomington, IL
Has thanked: 6 times
Been thanked: 51 times

Re: Batch utility for =3.4 ?

Postby c62ap90 » Fri Oct 12, 2012 2:10 am

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
c62ap90
 
Posts: 125
Joined: Thu Oct 11, 2012 10:24 pm
Has thanked: 1 time
Been thanked: 7 times

Re: Batch utility for =3.4 ?

Postby steve-myers » Sat Oct 13, 2012 6:29 am

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.
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

Re: Batch utility for =3.4 ?

Postby c62ap90 » Sun Oct 14, 2012 11:22 pm

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
c62ap90
 
Posts: 125
Joined: Thu Oct 11, 2012 10:24 pm
Has thanked: 1 time
Been thanked: 7 times

Re: Batch utility for =3.4 ?

Postby steve-myers » Mon Oct 15, 2012 12:12 am

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?
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

Re: Batch utility for =3.4 ?

Postby enrico-sorichetti » Mon Oct 15, 2012 1:12 am

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
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2994
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times

Re: Batch utility for =3.4 ?

Postby c62ap90 » Mon Oct 15, 2012 1:33 am

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.
c62ap90
 
Posts: 125
Joined: Thu Oct 11, 2012 10:24 pm
Has thanked: 1 time
Been thanked: 7 times

PreviousNext

Return to Other IBM Tools

 


  • Related topics
    Replies
    Views
    Last post