Want to execute Librarian LIBLIST INFO and LIBLIST HIST TSO commands in batch
search cancel

Want to execute Librarian LIBLIST INFO and LIBLIST HIST TSO commands in batch

book

Article ID: 244669

calendar_today

Updated On:

Products

Librarian

Issue/Introduction

Tried running in batch using IKJEFT01.  The command ends with rc=0, but the file SYSTSPRT is empty.

How can the LIBLIST INFO or HIST information be obtained in Batch?

Environment

Release : 4.4

Component : Librarian

Resolution

The Librarian TSO commands cannot be run in batch. Instead use the Batch command -SEL with the LIST and LISTH options:

//LIBRSEL  EXEC PGM=AFOLIBR,PARM='NRJS,NJTA'              
//SYSPRINT DD  SYSOUT=*                                   
//LIST     DD  SYSOUT=*                    
//MASTER   DD  DISP=SHR,DSN=your.master.file
//OSJOB    DD  DUMMY   
//SYSIN    DD  *                                          
-SEL memname,pswd,LIST,LISTH                              
-END                                                      
/*