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?
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.