ERROR Varying File ONLINE when adding new journal dynamically
search cancel

ERROR Varying File ONLINE when adding new journal dynamically

book

Article ID: 123977

calendar_today

Updated On:

Products

IDMS IDMS - Database

Issue/Introduction

A new disk journal is added to the DMCL.

Syntax used:

CREATE DISK JOURNAL IDMSDMCL.SYSJRNL4 
FILE SIZE 11000 BLOCKS 
ASSIGN TO SYSJRNL4 
;

Generated, punched and linked the updated DMCL, allocated and formatted the new disk journal file using the new DMCL, and did DCMT V DMCL NC and the changes were displayed correctly but the command received  "ERROR Varying File ONLINE". Why can this new file not be varied online?  

Environment

Release: All supported releases.

Resolution

In order for the CV to allocate and open a dynamically defined database or disk journal file, it would need to know the DSNAME.

In this case, since the startup JCL did not include a DD/DSN for the new disk journal file AND the new definition added to the DMCL did not include the DSNAME clause, the CV cannot know the dataset name to allocate and open the newly created/formatted file.

Example of correct syntax that would allow dynamic allocation for the new disk journal file:

CREATE DISK JOURNAL IDMSDMCL.SYSJRNL4 
FILE SIZE 11000 BLOCKS 
ASSIGN TO SYSJRNL4 
DSNAME 'IDMS.CV01.SYSJRNL4'
;