Sorting On Jobname In Batch

book

Article ID: 50886

calendar_today

Updated On:

Products

CA CIS CA Common Services for z/OS CA 90s Services CA Database Management Solutions for DB2 for z/OS CA Common Product Services Component CA Common Services CA Datacom/AD CA ecoMeter Server Component FOC CA Easytrieve Report Generator for Common Services CA Infocai Maintenance CA IPC Unicenter CA-JCLCheck Common Component CA Mainframe VM Product Manager CA Chorus Software Manager CA On Demand Portal CA Service Desk Manager - Unified Self Service CA PAM Client for Linux for zSeries CA Mainframe Connector for Linux on System z CA Graphical Management Interface CA Web Administrator for Top Secret CA CA- Xpertware CA Compress Data Compression for MVS CA Compress Data Compression for Fujitsu CA Cross Enterprise Application Performance Management (APM) CA SYSVIEW Performance Management NXBRIDGE - SYSYVIEW/ENDEVOR

Issue/Introduction

Description:

SYSVIEW Batch Job lists all Started Tasks, but I need them sorted by JOBNAME.
How to get them sorted by JOBNAME?

Solution:

//yourjob JOB ,MSGCLASS=X,CLASS=B,NOTIFY=youruser   
//* ============================================================   
//SYSVBAT EXEC PGM=GSVXBAT,PARM='LINECNT=99,SHOWINP=NO,MENUOFF'   
//SYSPRINT DD SYSOUT=*   
//SYSIN DD *   
PRINTOFF   
COMMAND=(PREFIX *)   
COMMAND=(ACTIVITY)   
PRINTON   
COMMAND=(SORT JOBNAME)   
SCROLL   
COMMAND=(END)   
/*   
// 

would give you the expected list.

in SYSVIEW ADMIN Guide, Chapter 9: Using the Batch Interface on page 111
we found, that you need to define the activity first, then the command:
COMMAND=(SORT JOBNAME)
using MENUOFF and PRINTOFF can make your Output even more readable.

Environment

Release:
Component: CA90S