Submitting long command to L-Serv in Batch
search cancel

Submitting long command to L-Serv in Batch

book

Article ID: 13792

calendar_today

Updated On:

Products

CIS COMMON SERVICES FOR Z/OS

Issue/Introduction

Long L-Serv commands that do not fit in the command line can be submitted in Batch, this document explains how.

Environment

Release: All 
Component: L-Serv

Resolution

Submitting long command to L-Serv can be performed using batch CA SYSVIEW or other tools allowing to submit command within batch.

To do so in the easiest way, create a member in LServ library CCCSOPTN.

To add file under L-Serv file server, create a member, for Example 'ADDFILE1' in the CCCSOPTN file and copy the following L-Serv command :
ADDFILE LSVDDN01 yourdata.setname.managed.with.LServ POOL(n)
where n is the type of VSAM buffer pool that L-Serv should use for this file

Then you can simply issue this Modify command 'F lservstc,READ ADDFILE1' using a batch utility or via a console command."

This command can be issued at any time when necessary, thus it could be keep for future usage. Comments could be added to explain the purpose.

Additional Information

Command can be issued in batch with utilities such as GSVXBAT available with CA SYSVIEW.
Here is a sample of command;
COMMAND=(MVS F lsrvstcid, DISPLAY TASK(FILESERVER) DATABASE)