Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 8196
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
No new posts File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
No new posts Compare VSAM files using DFSORT pshongal DFSORT/ICETOOL 5 Thu Nov 23, 2017 10:24 am
No new posts Moving a PS file as body of a mail! Vignesh Sid JCL & VSAM 4 Tue Nov 21, 2017 9:23 pm
No new posts unable to set RC = 4 when empty file migusd SYNCSORT 1 Tue Nov 21, 2017 1:21 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us