ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

PDSMAN : Batch use of ADDSPACE command

book

Article ID: 236900

calendar_today

Updated On:

Products

PDSMAN

Issue/Introduction

Can ADDSPACE be run in batch?

If so - are you able to provide a sample JCL.

I have tried a variety of options.

Environment

Release : 7.7

Component : PDSMAN for OS/390

Resolution

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

Additional Information


ADDSPACE command

Using EZYEDIT in Batch