IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Error when trying to open VSAM file


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Mekala Shanmugam

New User


Joined: 11 Jun 2009
Posts: 4
Location: India

PostPosted: Fri Oct 30, 2009 6:47 pm
Reply with quote

Hi All,

I have created a VSAM file udsing the below mentioned attributes

AAAA.BBBB.file
AAAA.BBBB.file.data
AAAA.BBBB.file.index

//STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=H
//SYSIN DD *
DEFINE CLUSTER +
(NAME(AAAA.BBBB.file') +
CYLINDERS(4 1) +
KEYS(40 0) +
IMBED +
RECORDSIZE(264 32000) +
SHAREOPTIONS(4,3) +
SPEED +
SPANNED +
UNIQUE) +
INDEX(NAME(AAAA.BBBB.file.INDEX') -
) +
DATA(NAME(AAAA.BBBB.file.DATA') -
CISZ(2048) +
FREESPACE(50 50) +
)
/*

//STEP2 EXEC PGM=IDCAMS
//INPUT DD *
/*
//OUTPUT DD DSN=AAAA.BBBB.file,DISP=SHR
//SYSPRINT DD SYSOUT=H
//SYSIN DD *
REPRO INFILE(INPUT) OUTFILE(OUTPUT)
/*
//*


While trying to move the code from one level to another level via SCLM, iam getting the below error as this VSAM file is used for versioning purpose.

FLM04030 - ERROR OPENING PROJECT VSAM DATA SET
GROUP: SYS, DATABASE: VERSION/AUDIT
INTENT: READ, CODE: 12
MACRO: FLMCNTRL
DATA SET: AAAA.BBBB.file
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Oct 30, 2009 6:49 pm
Reply with quote

You cannot REPRO an empty file to initialize a VSAM file -- you must actually write a record into it (which can then be deleted). Until you have done this, you cannot read from it.

And, by the way, IMBED has been obsolete for quite some time and may cause your define to not work under z/OS 1.11 (I haven't confirmed that but I do know the 1.11 announcement talked about IMBED).
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Error when install DB2 DB2 2
Search our Forums:

Back to Top