How to submit several command to LServ in one go?
search cancel

How to submit several command to LServ in one go?

book

Article ID: 13808

calendar_today

Updated On:

Products

CIS COMMON SERVICES FOR Z/OS 90S SERVICES DATABASE MANAGEMENT SOLUTIONS FOR DB2 FOR Z/OS COMMON PRODUCT SERVICES COMPONENT Common Services Datacom/AD CA ECOMETER SERVER COMPONENT FOC Easytrieve Report Generator for Common Services INFOCAI MAINTENANCE IPC UNICENTER JCLCHECK COMMON COMPONENT Mainframe VM Product Manager CHORUS SOFTWARE MANAGER CA ON DEMAND PORTAL CA Service Desk Manager - Unified Self Service PAM CLIENT FOR LINUX ON MAINFRAME MAINFRAME CONNECTOR FOR LINUX ON MAINFRAME GRAPHICAL MANAGEMENT INTERFACE WEB ADMINISTRATOR FOR TOP SECRET Xpertware Compress Data Compression for MVS Compress Data Compression for Fujitsu

Issue/Introduction

If you need to submit several command to Lserv and do not want to submit them separately, this document explains the way to complete this.



How to submit several command to LServ in one go?

Environment

Release: CA90SV00200-12-Common Services-for z/OS
Component:

Resolution

There is a way to submit several commands to LServ.


To achieve this, create a member in LServ library CCCSOPTN.

1 - For Example you want to create a member that add several files to LServ control.

Create member 'ADDFILE1' in the CCCSOPTN file and copy the following LServ commands :

ADDFILE LSVDDN01 your.dataset.LSVDDN01 POOL(n)
ADDFILE LSVDDN02 your.dataset.LSVDDN02 POOL(n)
ADDFILE LSVDDN03 your.dataset.LSVDDN03 POOL(n)
ADDFILE LSVDDN04 your.dataset.LSVDDN04 POOL(n)
ADDFILE LSVDDN05 your.dataset.LSVDDN05 POOL(n)
ADDFILE LSVDDN06 your.dataset.LSVDDN06 POOL(n)

This will issue all command in a single command simply by issuing command 'F lservstc, READ ADDFILE1'.

You may use this member at any time when necessary, so I suggest keep and comment them for future usage.

2 - Also you can create member to issue several command that remove these files from LServ control, for example:

- Create a Member to Remove all these files, for example member REMFILE1

REMOVEFILE LSVDDN01
REMOVEFILE LSVDDN02
REMOVEFILE LSVDDN03
REMOVEFILE LSVDDN04
REMOVEFILE LSVDDN05
REMOVEFILE LSVDDN06

This will issue all command in a single command simply by issuing command 'F lservstc, READ REMFILE1'.

This can be used for batch maintenance.