Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Error when trying to open VSAM file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Error when trying to open VSAM file
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: 8117
Location: East Dubuque, Illinois, USA

PostPosted: Fri Oct 30, 2009 6:49 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us