Can ADDSPACE be run in batch?
If so - are you able to provide a sample JCL.
I have tried a variety of options.
Release : 7.7
Component : PDSMAN for OS/390
//EZYED2 EXEC PGM=PDSEASY
//SYSPRINT DD SYSOUT=*
//EZYPRINT DD SYSOUT=*
//SYSIN DD *
ADDSPACE MYHLQ.MIDDLE.SQL * TRK(3)
Command Rc Message
DSL MYHLQ.MIDDLE.* 0
ADDSPACE MYHLQ.MIDDLE.SQL * TRK(3) 0 ADDSPACE successful
** Processing complete. Highest Rc= 0 **
There are THREE positional parameters to the ADDSPACE command.
So as another example:
ADDSPACE MYHLQ.TEST.ADDSPACE * TRK(10)
ADDSPACE * * TRK(10)
which would add space to all the datasets in the dataset list.
The DSL command is required to make a list of datasets for the ADDSPACE to match on.