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 *
DSL MYHLQ.MIDDLE.*
ADDSPACE MYHLQ.MIDDLE.SQL * TRK(3)
Result:
EZYEDIT-in-Batch 7.70
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:
DSL MYHLQ.TEST.*
ADDSPACE MYHLQ.TEST.ADDSPACE * TRK(10)
OR
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.