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: 7931
Location: Bellevue, IA

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
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts Underlying DB2 VSAM LDS - SMF recording vasanthz All Other Mainframe Topics 6 Thu Jan 05, 2017 4:20 am
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm


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