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
This will issue all command in a single command simply by issuing command 'F lservstc, READ REMFILE1'.
This can be used for batch maintenance.