search cancel

SYSVIEW : APF Authorize a LOADLIB in Batch

book

Article ID: 253525

calendar_today

Updated On:

Products

SYSVIEW Performance Management

Issue/Introduction

SYSVIEW has a batch interface for running commands. One of the functions that is able to be done in batch is to APF authorize a load library for use by a software product.

Environment

Z/OS

Release : R16, R17

Resolution

Refer to Use the Batch Interface

The sample JCL can be found in your SYSVIEW  hlq.CNM4BSAM(EXECBAT)  member.  CNM4BSAM - SAMPLIB Members

Example JCL:

your job card
//*
//* AN EXAMPLE OF RUNNING SYSVIEW IN BATCH TO APF AUTHORISE A LIBRARY
//*
//STEP1    EXEC PGM=GSVXBAT,PARM='LINECNT=66,SHOWINP=NO'
//SYSPRINT DD SYSOUT=*,DCB=(LRECL=81,BLKSIZE=8100,RECFM=FBA)
//SYSIN    DD  *
COMMAND=(APFLIST)
COMMAND=(ADD HLQ.PRODUCT.LOADLIB.PDSE *)
COMMAND=END
//*

When submitted the sysout will show:

-------------------------------------------------------------------------------
1=HELP 2=SPLIT 3=RETURN 5=FIND 7=UP 8=DOWN 9=SWAP 10=LEFT 11=RIGHT 12=RECALL
SYSVIEW 16.0 sys1 ------------ APFLIST, APF List ------------ mm/dd/yy hh:mm:ss
Command ====>                                                 Scroll *===> PAGE
APFL012I Entry added - HLQ.PRODUCT.LOADLIB.PDSE SMS011 - Lvl 2 Row 1-58/12061

To see if it has been done enter at the SYSVIEW main menu and step down the menus:
2 MENU MVS                       MVS displays
11 MENU     DATASETS                    Data sets
1 APFLIST                               APF list data sets

OR

At the main SYSVIEW menu, enter the APF command in the option field : Option ====> APF

Then scroll down the list to find your entry. The FIND command ...FIND HLQ.PRODUCT.LOADLIB.PDSE will get you there fast!

SYSVIEW 16.0 sys1 ------------ APFLIST, APF List ------------ mm/dd/yy hh:mm:ss
Command ====>                                                 Scroll *===> CSR
------------------------------------------------------- Lvl 4 Row 400-434/12089
Status    SRT NoLIM NoSEL NoDST NoPFX NoOWN NoUPD NoPRT NoCAP
-------------------------------------------------------------------------------
Cmd Dataset-Name                                 Volser Status
___ HLQ.PRODUCT.LOADLIB.PDSE                   SMS011

The loadlib will remain APF authorized until the next IPL or until the dataset is deleted from the APFLIST via the SYSVIEW DELETE line command on the APF list screen or in batch.

 

 

Additional Information

CNM4BSAM - SAMPLIB Members

Use the Batch Interface